ios Xcode 10.2.1 命令 PhaseScriptExecution 失败,退出代码非零
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/53289524/
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
Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
提问by Emin Kotan
Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks
Showing Recent Messages:-1: rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework" "/Users/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks"
Command PhaseScriptExecution
failed with a nonzero
exit code
命令PhaseScriptExecution
失败,出现nonzero
退出代码
I deleted derived data. i have tried :
我删除了派生数据。我试过了 :
keychain access -> right click on login -> lock & unlock again -> clear Xcode project
钥匙串访问 -> 右键单击登录 -> 再次锁定和解锁 -> 清除 Xcode 项目
Restarted machine, no use
重启机器,没用
How do I resolve "Command PhaseScriptExecution failed with a nonzero exit code
" error when trying to archive project.
Command PhaseScriptExecution failed with a nonzero exit code
尝试归档项目时如何解决“ ”错误。
And I am using those librarys
我正在使用这些库
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage', '~> 4.0'
pod 'KRPullLoader'
pod 'Paytm-Payments'
回答by fork
Go to
去
Keychain Access
-> Right-click on login
-> Lock & unlock again
-> Clean Xcode project
->Make build again
Keychain Access
-> Right-click on login
-> Lock & unlock again
-> Clean Xcode project
->Make build again
回答by Anurag Sharma
After trying all the solutions, I was missing is to enable this option in:
在尝试了所有解决方案后,我缺少的是在以下位置启用此选项:
Targets -> Build Phases -> Embedded pods frameworks
目标 -> 构建阶段 -> 嵌入式 pods 框架
In newer versions it may be listed as:
在较新的版本中,它可能被列为:
Targets -> Build Phases -> Bundle React Native code and images
目标 -> 构建阶段 -> 捆绑 React Native 代码和图像
- Run script only when installing
- 仅在安装时运行脚本
回答by Haseeb Javed
Xcode -> File -> Workspace Setting... -> change Build System to Legacy Build System.
Xcode -> File -> Workspace Setting... -> 将 Build System 更改为 Legacy Build System。
Thats it. Have Fun
就是这样。玩得开心
回答by Abhishek Bedi
Try the below:
试试下面的:
pod deintegrate
pod install
- XCode Clean build
pod deintegrate
pod install
- XCode 清洁构建
回答by Chandan Jee
I was able to resolve this error by remove file in Pods -> Targets Support Files -> Pods-AppName -> Pods-AppName-frameworks.sh. After removing that file again install pod using command pod install.
我能够通过删除 Pods -> Targets Support Files -> Pods-AppName -> Pods-AppName-frameworks.sh 中的文件来解决此错误。删除该文件后,再次使用命令 pod install 安装 pod。
OR.
或者。
Try this:
尝试这个:
-> quit xcode -> install pod(again) -> start xcode
-> 退出 xcode -> 安装 pod(再次)-> 启动 xcode
回答by bengoesboom
I had a similar error
我有一个类似的错误
/{path to project root}/Pods/Target Support Files/Pods-{project name}/Pods-{project name}-frameworks.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
In my case I had received a zip of a repo that included the Pods folder. It turns out that at some point between it being originally created and sent to me, the *.sh files in Pods/Target Support Files/Pods-{PROJECT}/
had all lost their execute permissions. Giving those files +x
was the solution
就我而言,我收到了一个包含 Pods 文件夹的 repo 的 zip。事实证明,在最初创建和发送给我之间的某个时间点,*.sh 文件Pods/Target Support Files/Pods-{PROJECT}/
都失去了执行权限。提供这些文件+x
是解决方案
回答by Kirti Verma
None of the above answers worked for me, rather a simple pod install
did the job.
以上答案都不适合我,而是一个简单pod install
的工作。
回答by Zaid Pathan
By mistake I had uninstalled carthage
from my system. Adding that fixed the issue for me.
我错误地carthage
从系统中卸载了。添加它为我解决了这个问题。
Step 1:Download & install latest carthage DMG here: Carthage
第 1 步:在此处下载并安装最新的迦太基 DMG:迦太基
Step 2:
第2步:
carthage update --platform iOS --cache-builds
Step 3:Run project & enjoy. :)
第 3 步:运行项目并享受。:)
回答by Piotr Badura
Probably you should do as follow:
可能你应该这样做:
- Remove
.xcworkspace
andPod
folder - Run
pod install
- Delete derived data
- Clean all project (press alt before click on click)
- 删除
.xcworkspace
和Pod
文件夹 - 跑
pod install
- 删除派生数据
- 清理所有项目(点击前按alt)
I tried above things and it worked for me.
我尝试了以上的事情,它对我有用。
回答by Van
In my case it was silly mistake...
就我而言,这是一个愚蠢的错误......
In the folders name I had space which was creating problem for frameworks complete path creation..
在文件夹名称中,我有空间为框架创建完整路径创建问题..
Just removed the spaces from folders names of all folders in path..
刚刚从路径中所有文件夹的文件夹名称中删除了空格..
Hope it may help someone like me...
希望它可以帮助像我这样的人......