Carthage: /usr/local/bin/carthage: No such file or directory Command PhaseScriptExecution

Created on 17 Jan 2021  ·  3Comments  ·  Source: Carthage/Carthage

  • carthage install method: [ ] .pkg, [x ] homebrew, [ ] source
  • which carthage:
  • carthage version: 0.36.1
  • xcodebuild -version:
  • Are you using --no-build? no
  • Are you using --no-use-binaries? no
  • Are you using --use-submodules? no
  • Are you using --cache-builds? no
  • Are you using --new-resolver? no

Cartfile

(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.

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

❯ 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.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings