Skip to content

Cannot find executables via a full path #14

Description

@lukesutton

I'm attempting to execute a binary which has been installed via Homebrew. I'm providing the full path to the Command(executablePath: "/opt/homebrew/bin/paneru"), but it returns an error:

Error Domain=NSCocoaErrorDomain Code=4 "The file “paneru” doesn’t exist." 
UserInfo={NSFilePath=/opt/homebrew/bin/paneru}

Since Homebrew symlinks binaries into its bin directory, I attempted again by specifying the full path. This gives me the same result. I've attempted this with multiple binaries installed via Homebrew.

As a counter example, if I specify the full path for a pre-installed binary, it works e.g. Command(executablePath: "/bin/ls")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions