ios - Xcode 11.1 - 找不到身份命令 PhaseScriptExecution 失败,退出代码非零

标签 ios xcode

我的项目运行得很好。昨晚我成功地将二进制文件上传到 AppStoreConnect。突然,当我去构建我的项目时,我收到此错误:

Code Signing /Users/Home/Library/Developer/Xcode/DerivedData/ImStuck-...../Build/Products/Debug-iphoneos/ImStuck.app/Frameworks/Alamofire.framework with Identity iPhone Developer: Lance Samaria (52Q24UJ38T) /usr/bin/codesign --force --sign D0519CCxxxxxxxxxx --preserve-metadata=identifier,entitlements '/Users/Home/Library/Developer/Xcode/DerivedData/ImStuck-...../Build/Products/Debug-iphoneos/ImStuck.app/Frameworks/Alamofire.framework' D0519CCxxxxxxxxxx: no identity found Command PhaseScriptExecution failed with a nonzero exit code

我清理了派生数据,然后尝试了 this answer但它不起作用。

它说缺少一些数字:

D0519CCxxxxxxxxxx: no identity found

在下图中,红色条是数字所在的位置:

enter image description here

最佳答案

  1. 我转到 Xcode > 蓝色项目图标 > Signing & Capabilites 并取消选中自动管理签名 然后再次检查以将其重新打开

  2. 我转到我的开发者帐户,然后转到证书、标识符和配置文件 > 证书 > 单击每个项目,然后单击下载您的证书 页面我选择下载

  3. 下载后,我双击了下载文件夹中的每一个。

  4. 我找到了原始的 p12 证书 key ,然后双击。

  5. 我转到 Xcode > 首选项 > 选择我的团队 ID,然后选择两个下载手动配置文件管理证书

  6. 我转到 Xcode > 蓝色项目图标 > Signing & Capabilites 并取消选中自动管理签名 然后再次检查以将其重新打开

  7. 从那里我关闭了项目,退出 Xcode,然后重新启动计算机,重新启动 Xcode 并按下“Build”。

一切重新启动后,错误就消失了。

关于ios - Xcode 11.1 - 找不到身份命令 PhaseScriptExecution 失败,退出代码非零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58596298/

相关文章:

ios - Swift – self.navigationController 在过渡后变为 nil

php - iOS 开发 - 如何将嵌套值发布到 php 服务器端

ios - 全局覆盖 UIView setFrame

ios - 安排每小时重复本地通知的问题

ios - ld : library not found for -lstdc++. 6

xcode - 为什么当 'official' clang 支持 C++11 thread_local 时,Apple clang 不允许它

iOS:可达性 - 返回应用程序后 startNotifier 失败

ios - XCTest UI 测试 : why does my attempt to swipe the last table cell upwards instead slide up the brightness and volume panel?

iphone - 检测是否触摸了 UIView

ios - Xcode ARC 项目添加了带有发布调用的 dealloc