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")
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:Since Homebrew symlinks binaries into its
bindirectory, 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")