ios – Xcode 5持续集成CodeSign失败

ios – Xcode 5持续集成CodeSign失败,第1张

概述嗨,您好. 我正在尝试使用 xcode 5和OS X Server为我的iOS应用程序配置持续集成.我将证书和p12添加到系统KeyChain,我还将配置文件复制到配置文件的服务器文件夹. 集成失败,日志显示错误消息 短消息: Command /usr/bin/codesign failed with exit code 1 完整信息: CodeSign /Library/Server/Xcode 嗨,您好.
我正在尝试使用 xcode 5和OS X Server为我的iOS应用程序配置持续集成.我将证书和p12添加到系统KeyChain,我还将配置文件复制到配置文件的@R_502_5980@夹.
集成失败,日志显示错误消息

短消息:

Command /usr/bin/codesign Failed with exit code 1

完整信息:

CodeSign
/library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/DerivedData/Build/Intermediates/ArchiveIntermediates/MomentSeller/InstallationBuildProductsLocation/Applications/MomentSeller.app
cd /library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/source/Moment
setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
setenv PATH “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
Using code signing IDentity “iPhone distribution: Company name. (ZX6C5SJYP9)” and provisioning profile “Moment Seller Production”
(E6FC8157-98F3-4A28-BFF3-36EFA6334019)
codesign –force –sign C2F81E886780437B90630A748111D3340DC8EFC8 –resource-rules=/library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/DerivedData/Build/Intermediates/ArchiveIntermediates/MomentSeller/InstallationBuildProductsLocation/Applications/MomentSeller.app/ResourceRules.pList
–enTitlements /library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/DerivedData/Build/Intermediates/ArchiveIntermediates/MomentSeller/IntermediateBuildfilesPath/Moment.build/Release-iphoneos/MomentSeller.build/MomentSeller.xcent
/library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/DerivedData/Build/Intermediates/ArchiveIntermediates/MomentSeller/InstallationBuildProductsLocation/Applications/MomentSeller.app
/library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/DerivedData/Build/Intermediates/ArchiveIntermediates/MomentSeller/InstallationBuildProductsLocation/Applications/MomentSeller.app:
User interaction is not allowed. Command /usr/bin/codesign Failed with
exit code 1

** ARCHIVE Failed **

The following build commands Failed: CodeSign
/library/Server/Xcode/Data/BotRuns/Cache/c60acccd-d128-d128-b0e3-070a65bdd9dc/DerivedData/Build/Intermediates/ArchiveIntermediates/MomentSeller/InstallationBuildProductsLocation/Applications/MomentSeller.app
(1 failure)

有任何想法吗?
谢谢.

解决方法 我自己遇到了这个问题.这篇博客帮助了我. http://matt.vlasach.com/xcode-bots-hosted-git-repositories-and-automated-testflight-builds/

由Dominik Kroutvar发布:

User interaction is not allowed. Command /usr/bin/codesign Failed with
exit code 1

This error happens when the following setting is not made manually. As described in one of the posts above you have to put the mobileprofile for code signing in the system keychain. The certificate is called iPhone distribution:. This distribution certificate must have a private key! Open the Settings dialog either by double click on the private key or through the context menu>Get Info. Then go to Access control and put /usr/bin/codesign in the table. This allows the codesign application to sign your built application. After that everything should work without the meaningless codesign error exit code 1.

总结

以上是内存溢出为你收集整理的ios – Xcode 5持续集成CodeSign失败全部内容,希望文章能够帮你解决ios – Xcode 5持续集成CodeSign失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1099483.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存