ios - Xcode 11 - 命令 CodeSign 因非零退出代码而失败。无法为签名者构建自签名根的链
问题描述
得到下面返回的错误。我已经查看了其他有关此问题的论坛并尝试过;
1.在“构建设置”中的“其他代码签名标志”中添加--deep。在目标的“Signing & Capabilities”中单击左上角的“+ Capability”并选择“Hardened Runtime”。然后在列表中打开“禁用库验证”。
锁定和解锁密钥访问
删除证书并自动生成新证书。
清理 Build 文件夹和构建
重启
还要注意在签名和功能选项卡中,签名证书在停止之前被创建、添加和撤销多次。查看 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 失败,退出代码为非零
解决方案
推荐阅读
- python - SQLAlchemy load_only 选项不起作用,但返回所有列,而不仅仅是指定的列
- python - 如何在 Pandas 中使用多处理?
- android - 使用 productFlavors 调试和发布包
- java - 映射(键值)与表列数据比较
- sql-server - 程序集“BouncyCastle.Crypto”是使用 .NET Framework v1.1.4322 版本构建的。SQL Server 当前使用版本 v4.0.30319
- azure-devops - ADO Build Pipeline 中是否有办法只构建其中一个工件?
- python - 用_(下划线)替换.txt文件\n(新行)的函数?
- html - 如何获得连续的 nowrap 跨度以包装为单独的元素?
- s4sdk - 如何为 SCP 应用程序配置应用程序日志服务
- haskell - Haskell 尝试在不应该解决类型变量的情况下解决它