我的项目运行得很好。昨晚我成功地将二进制文件上传到 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
在下图中,红色条是数字所在的位置:
最佳答案
我转到
Xcode
>蓝色项目图标
>Signing & Capabilites
并取消选中自动管理签名
然后再次检查以将其重新打开我转到我的开发者帐户,然后转到
证书、标识符和配置文件
>证书
> 单击每个项目,然后单击下载您的证书
页面我选择下载
。下载后,我双击了下载文件夹中的每一个。
我找到了原始的
p12 证书
和key
,然后双击。我转到
Xcode
>首选项
> 选择我的团队
ID,然后选择两个下载手动配置文件
和管理证书
。我转到
Xcode
>蓝色项目图标
>Signing & Capabilites
并取消选中自动管理签名
然后再次检查以将其重新打开从那里我关闭了项目,退出 Xcode,然后重新启动计算机,重新启动 Xcode 并按下“Build”。
一切重新启动后,错误就消失了。
关于ios - Xcode 11.1 - 找不到身份命令 PhaseScriptExecution 失败,退出代码非零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58596298/