[英]iOS Build from Jenkins Xcode plugin failing
我不是iOS專家,但使用Xcode插件構建了用React Native編寫的iOS應用程序。
我面臨以下錯誤,我已經嘗試了stackoverflow和其他博客/文章中提到的所有解決方案。 我有鑰匙扣證書。 這些解決方案都不適合我。
Signing Identity: "iPhone Developer: XXXXX (YYYYYY)"
Provisioning Profile: "iOS Team Provisioning Profile: com.xxx.xxx.mobile"
(xxxxxxxxxx)
/usr/bin/codesign --force --sign xxxxxxxxxxxxxxxxxxxxxxxxx --entitlements /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/IntermediateBuildFilesPath/MYPROJECT.build/Debug-iphoneos/MYPROJECT.build/MYPROJECT.app.xcent --timestamp=none /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/InstallationBuildProductsLocation/Applications/MYPROJECT.app
/Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/InstallationBuildProductsLocation/Applications/MYPROJECT.app: errSecInternalComponent
Command /usr/bin/codesign failed with exit code 1
** ARCHIVE FAILED **
The following commands produced analyzer issues:
Analyze Base/RCTModuleMethod.mm normal arm64
Analyze RCTNetInfo.m normal arm64
(2 commands with analyzer issues)
The following build commands failed:
CodeSign /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/InstallationBuildProductsLocation/Applications/MYPROJECT.app
(1 failure)
詹金斯:2.164.2
Xcode集成插件:2.0.11
Xcode:10.2
如果Jenkins在后台使用launchctl等運行,那么Jenkins正在運行哪個帳戶? 你需要小心。
即使Jenkins在您的帳戶下運行,如果您在后台使用launchctl等運行,您還需要使用security命令來訪問后台運行的會話的keychain。
或者您需要使用Xcode插件選項解鎖鑰匙串。
建議的方法是在構建之前使用Xcode Plugin Developer Profile導入導入從Xcode導出的開發人員證書,私鑰和配置文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.