Jenkins无法构建iOS应用程序:'代码签名错误:找不到代码签名身份'

时间:2015-10-28 10:14:27

标签: ios xcode jenkins

我遵循以下网站的指南,使用Jenkins构建iOS应用程序。

https://wiki.jenkins-ci.org/display/JENKINS/Xcode+Plugin http://savvyapps.com/blog/continuous-integration-ios-jenkins

我已导出我的开发者个人资料并将其导入Jekins并在Xcode构建之前调用。在控制台日志中,Jenkins在构建期间安装了配置。

$ security import /Users/Shared/Jenkins/Home/developer-profiles/957b9655-81ce-46a0-8686-1f67f7d17a41/developer/identities/18BAD5E662ED3759CD8D7C85E33390324BBD130E.p12 -k jenkins-testApp-1-DevBuild -P ******** -T /usr/bin/codesign -T /usr/bin/productsign jenkins-testApp-1-DevBuild
$ security import /Users/Shared/Jenkins/Home/developer-profiles/957b9655-81ce-46a0-8686-1f67f7d17a41/developer/identities/7A5A56DA487E33DE5D16567DC8868B7CD9A865D6.p12 -k jenkins-testApp-1-DevBuild -P ******** -T /usr/bin/codesign -T /usr/bin/productsign jenkins-testApp-1-DevBuild
$ security import /Users/Shared/Jenkins/Home/developer-profiles/957b9655-81ce-46a0-8686-1f67f7d17a41/developer/identities/F19D5511EC904BA5CC9D65F306B8CD4D2B0BB19B.p12 -k jenkins-testApp-1-DevBuild -P ******** -T /usr/bin/codesign -T /usr/bin/productsign jenkins-testApp-1-DevBuild
$ security show-keychain-info jenkins-testApp-1-DevBuild
Keychain "jenkins-testApp-1-DevBuild" lock-on-sleep timeout=300s
Installing  0b3a6836-af47-4afd-9484-9ca4ccec6c6d.mobileprovision
Installing  0ef7bac8-0408-4c38-bf6c-3afb004ee451.mobileprovision
Installing  193e9795-97b1-4d4a-981d-a51714e381a4.mobileprovision 

但是,由于代码签名错误,构建失败。有人怎么解决这个问题?感谢。

Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“Auth-Dev”) were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.4'

** BUILD FAILED **

1 个答案:

答案 0 :(得分:0)

我终于通过将开发证书从登录复制到Keychain访问中的System来解决了这个问题。

参考:http://code-dojo.blogspot.co.uk/2012/09/fix-ios-code-signing-issue-when-using.html