xcode 构建 iOS 框架时出错:usr/local/bin/carthage: No such file or directory
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40938909/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error building iOS Framework: usr/local/bin/carthage: No such file or directory
提问by user3239711
I have this error when building my project that include several external Frameworks that I have installed using Carthage :
构建包含我使用 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
/Users/moneycup/Library/Developer/Xcode/DerivedData/MoneyCup-fawvvvubqmiqrzajrxdwjxeiaxbw/Build/Intermediates/MoneyCup.build/Debug-iphonesimulator/MoneyCup.build/Script-03D74C381DE83AC900F61/EE83AC900F61无此文件或目录
I have absolutely no clue to what to do now. Thank you in advance for any suggestion.
我完全不知道现在该做什么。预先感谢您的任何建议。
回答by shallowThought
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.
(在 中找到Build Phases
),但找不到迦太基。
To fix this:
要解决此问题:
- Make sure the script has a leading slash (
/usr/...
notusr/
)
- 确保脚本有一个前导斜杠(
/usr/...
不是usr/
)
If this is not the issue:
如果这不是问题:
- install Carthageor remove the build script.
- 安装 Carthage或删除构建脚本。