PhaseScriptExecution失败,退出代码非零

时间:2019-05-18 11:18:50

标签: ios swift xcode alamofire

我已经尝试过进行锁定和解锁键,更新Pod,清理构建文件夹,但是上面没有任何帮助。 请帮忙!

mkdir -p /Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Balaq.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Alamofire/Alamofire.framework" "/Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Balaq.app/Frameworks"
building file list ... done
Alamofire.framework/
Alamofire.framework/Alamofire
Alamofire.framework/Info.plist

sent 3452840 bytes  received 70 bytes  6905820.00 bytes/sec
total size is 3452177  speedup is 1.00
Stripped /Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Balaq.app/Frameworks/Alamofire.framework/Alamofire of architectures: armv7
Code Signing /Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Balaq.app/Frameworks/Alamofire.framework with Identity iPhone Developer: Aibek Rakhim (4FM85TMDZ7)
/usr/bin/codesign --force --sign 40E5552EA3812A40C344043B8F77C0DF2B504157  --preserve-metadata=identifier,entitlements '/Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Balaq.app/Frameworks/Alamofire.framework'
/Users/ulanzeniserov/Library/Developer/Xcode/DerivedData/Balaq-bnrzxotbjdjuukdlsfymccucvfgi/Build/Products/Debug-iphoneos/Balaq.app/Frameworks/Alamofire.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code

1 个答案:

答案 0 :(得分:0)

errSecInternalComponent与代码签名和钥匙串访问有关。请按照以下对我有用的步骤进行操作:

  • 在Xcode中打开项目后,按住Command + Option + Shift + K

  • 在出现提示时选择“清理”并关闭Xcode。

  • 打开“钥匙串访问”并在名为“本地/登录”的选项卡中找到iOS开发者证书。

  • 将证书从“本地/登录”拖放到“系统”选项卡。

  • 在出现提示时输入管理员密码。

  • 删除所有旧证书。

  • 启动Xcode并重新运行您的项目。