Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error building iOS Framework: usr/local/bin/carthage: No such file or directory

I have this error when building my project that include several external Frameworks that I have installed using Carthage :

/Users/moneycup/Library/Developer/Xcode/DerivedData/MoneyCup-fawvvvubqmiqrzajrxdwjxeiaxbw/Build/Intermediates/MoneyCup.build/Debug-iphonesimulator/MoneyCup.build/Script-03D74C381DE83AC900F61FEE.sh: line 2: usr/local/bin/carthage: No such file or directory

I have absolutely no clue to what to do now. Thank you in advance for any suggestion.

like image 703
user3239711 Avatar asked Dec 02 '16 18:12

user3239711


Video Answer


1 Answers

You have a build script in your project:

/usr/local/bin/carthage copy-frameworks

(Find it in Build Phases), but Carthage can not be found.

To fix this:

  • Make sure the script has a leading slash (/usr/... not usr/)

If this is not the issue:

  • install Carthage or remove the build script.
like image 102
shallowThought Avatar answered Sep 22 '22 19:09

shallowThought