which carthage
:carthage version
: 0.36.1xcodebuild -version
: --no-build
? no--no-use-binaries
? no --use-submodules
? no--cache-builds
? no--new-resolver
? noCartfile
(doesn't matter)
Actual outcome
/usr/local/bin/carthage: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Expected outcome
Working project
So far the project was running on xcode 11.7, but after i change my computer i need to install xcode 12.3. unfortunately, despite the installation of everything as it should, I cannot build frameworks from xcframework and after manual rebuilding I get information that there is "/usr/local/bin/carthage: No such file or directory Command PhaseScriptExecution"
help.
brew install carthage
If you got an M1 Mac, Homebrew installs stuff in a different place, that's why they ask you to add which carthage
…
❯ which carthage
/opt/homebrew/bin/carthage
Not sure what's the advisable process for supporting both paths but if you're only using your computer on a project, maybe just change the path.
I had the same issue and fixed that with symlink:
ln -s /opt/homebrew/bin/carthage /usr/local/bin/carthage
But make sure you have /usr/local/bin
folder first
Or you can use full path in your build phase script
I also tried to update my PATH everywhere without any positive result so for now I just use symlinks to fix that
Most helpful comment
If you got an M1 Mac, Homebrew installs stuff in a different place, that's why they ask you to add
which carthage
…Not sure what's the advisable process for supporting both paths but if you're only using your computer on a project, maybe just change the path.