xcode 命令 PhaseScriptExecution 失败,退出代码非零 - 没有这样的文件或目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/54448710/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:53:51  来源:igfitidea点击:

Command PhaseScriptExecution failed with a nonzero exit code - No such file or directory

xcodexcode10

提问by Noah Schmidt

Every time I try to run my iOS app on Xcode 10, it fails and gives me the error "Command PhaseScriptExecution failed with a nonzero exit code"

每次我尝试在 Xcode 10 上运行我的 iOS 应用程序时,它都会失败并给我错误消息“Command PhaseScriptExecution failed with a nonzero exit code”

The full error description is:

完整的错误描述是:

bash: /Users/Noah 1/Library/Developer/Xcode/DerivedData/WeatherSando-dszhaqymmhxfptfiymvnuvshlbtb/Build/Products/Debug-iphoneos/WeatherSando.app/Frameworks/AerisCore.framework/strip-frameworks.sh: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code

bash: /Users/Noah 1/Library/Developer/Xcode/DerivedData/WeatherSando-dszhaqymmhxfptfiymvnuvshlbtb/Build/Products/Debug-iphoneos/WeatherSando.app/Frameworks/AerisCore.framework/strip-frameworks.sh 命令:没有这样的文件或目录PhaseScriptExecution 失败,退出代码非零

I removed all AerisWeather CocoaPods from my project, what is wrong?

我从我的项目中删除了所有 AerisWeather CocoaPods,有什么问题?

回答by Robert Dresler

For me worked what @Phillip Mills suggested. Build phase references the framework which has been removed.

对我来说,按照@Phillip Mills 的建议工作。构建阶段引用已删除的框架。

In my case I removed manually embedded framework which I replaced with CocoaPod dependency. I needed script which there was previouly no longer but I didn't remove it.

在我的情况下,我删除了手动嵌入的框架,我用 CocoaPod 依赖项替换了它。我需要以前不再存在的脚本,但我没有删除它。



So, look to Build Phasesfor your target and remove Run script

因此,请查看目标的构建阶段并删除运行脚本

enter image description here

在此处输入图片说明