首页 > 解决方案 > Xcode 11 - 命令 CodeSign 因非零退出代码而失败。无法为签名者构建自签名根的链

问题描述

得到下面返回的错误。我已经查看了其他有关此问题的论坛并尝试过;

1.在“构建设置”中的“其他代码签名标志”中添加--deep。在目标的“Signing & Capabilities”中单击左上角的“+ Capability”并选择“Hardened Runtime”。然后在列表中打开“禁用库验证”。

  1. 锁定和解锁密钥访问

  2. 删除证书并自动生成新证书。

  3. 清理 Build 文件夹和构建

  4. 重启

还要注意在签名和​​功能选项卡中,签名证书在停止之前被创建、添加和撤销多次。查看 Key Access 控件,在 Keys 下创建了多个私钥,在证书下,多个证书都是重复的。

我创建了一个新的 Apple Development ID 并使用它遇到了同样的问题。

感谢您提前回复。

CodeSign /Users/UserArea/Library/Developer/Xcode/DerivedData/WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz/Build/Products/Debug-iphoneos/IntegrationApp.app(在项目'WebDriverAgent'的目标'IntegrationApp'中)cd /Applications/Appium.app/Contents /Resources/app/node_modules/appium-webdriveragent export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

签名身份:“Apple Development:test@test.com (673LRYR121)”供应配置文件:“iOS 团队供应配置文件:com.facebook.IntegrationAppTS”(e0544620-d226-4457-a02c-048c8b647bd6)

/usr/bin/codesign --force --sign 437E5B9C37FF997735052E28ADC85F8AE5F0AD72 --deep -o runtime --entitlements /Users/joshuahunt/Library/Developer/Xcode/DerivedData/WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/IntegrationApp.build/IntegrationApp.app.xcent --timestamp=none /Users/joshuahunt/Library/Developer/Xcode/DerivedData/WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz/Build/Products/Debug-iphoneos/IntegrationApp.app

警告:无法为签名者“Apple Development:test@test.com (673LRYR121)”/Users/UserArea/Library/Developer/Xcode/DerivedData/WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz/Build/Products/Debug-iphoneos 构建自签名根的链/IntegrationApp.app:errSecInternalComponent 命令 CodeSign 失败,退出代码为非零

标签: iosxcodecode-signing

解决方案


推荐阅读