Jenkins encountered problems with the certificate when integrating the xcode project. In fact, if it is local. If you select a project in the xcode project, you do not need to reset the certificate. Jenkins will automatically find this certificate, as long as it is set properly in build setting.
And can be compiled normally in xcode.
Check dependenciescode 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 ("qingyundeveloper") were found.
If you encounter a similar error, solution:
First open the keychain keys to find the apple developer certificate. Then copy. Select the system on the left to store the copied certificate.
If this problem persists.
Next Step 2:
Find the provisioning profiles file under your user. The/users/XXX/library/mobiledevice/provisioning profiles XXX directory represents your username.
Copy all the certificates to the/users/shared/Jenkins/library/mobiledevice/provisioning profile file.
Last prompt
IPhone. Build/projectcos. xcent/users/chenqing/sqy/iosproject/cyou/SVN/COS/cosxcode_lxh/build/projectcos. app ** build succeeded ** finished: Success
References:
http://code-dojo.blogspot.co.uk/2012/09/fix-ios-code-signing-issue-when-using.html
Fix the IOS code signing issue when using jenkinsthis week I setup the Jenkins on my Mac and try to build IOS applications. unfortunately I got the code signing issues, either I use xcode plugin or xcode command line tool. through a couple days of googling and I cocould not find any solution that works for me, but I finally solve this issue by myself through different try out, and the solution is such an easy, now I wowould like to share with my solution.
The core reason is Jenkins is running as daemon mode in Mac, just assume it is a different user-"Jenkins ", so it will not have access to the keychain or provision profile as a you login using your credentials, which cause the code signing issue.
I found I have following 2 errors
1. "code sign error: there are no valid certificate/private key pairs in the default keychain"
Solution:Copy your iPhone developer certificate from "login" keychain to "system" keychain.
Detailed steps:
Open the "keychain access" application, click the login tab, right click the certificate like "iPhone developer: your_name (xxxxxxx)", choose Copy, then click the "System" tab, right click mouse, choose "paste 2 items"; you might need to do the same thing with the certificate like "iPhone distribution: your_name ".
After doing this, you will get the second error.
2. "code sign error: Provisioning profile 'xxxxx-XXXX-xxxxx' can't be found"
Solution: Copy the provision profile to Jenkins user folder.
The provision profile is under in the folder
/Yourusername/library/mobiledevice/provisioning profiles,
For example in my machine, the provision profile files are under/users/Steve/library/mobiledevice/provisioning profiles
In the Mac, the Jenkins will be in/users/shared/Jenkins, create the following folder:
/Users/shared/Jenkins/library/mobiledevice/provisioning profile, then copy the. mobileprovision file to this folder.
After doing this, the code signing issues will be fixed. Hope my finding will be helpful to other Jenkins users.
,
Jenkins xcode certificate setting error code sign error: no matching codesigning identity found: No codesigning identities