Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Sign error when building using jenkins xcode build plugin

I get the following error when using the XCodeBuild plugin of jenkins:

Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains

Update: I am able to xcodebuild from terminal and build in xcode to simulator and to device however not when running it in jenkins - jenkins seems to have some different 'shared' osx user because its home folder is in users/shared?

like image 406
TheLearner Avatar asked May 26 '26 07:05

TheLearner


1 Answers

By default when Jenkins is installed it runs as a daemon as opposed to a process under your current user. As such it does not have access to any of your credentials which are needed to code sign your app.

Instead of running Jenkins as a daemon, you should just launch it like a normal process. It would probably looks like something like this:

java -jar /Applications/Jenkins/jenkins.war
like image 168
Luke The Obscure Avatar answered May 30 '26 06:05

Luke The Obscure



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!