Vinh Phuc Dinh created JENKINS-13555:
----------------------------------------
Summary: XCode Plugin: Code signing issue after first restart (but
project builds successfully when triggered through terminal)
Key: JENKINS-13555
URL: https://issues.jenkins-ci.org/browse/JENKINS-13555
Project: Jenkins
Issue Type: Bug
Components: xcode
Affects Versions: current
Environment: MacOSX
Reporter: Vinh Phuc Dinh
Priority: Critical
Attachments: log.txt
After the installation of Jenkins, I installed, set up the xcode plugin and
created a few jobs. They went through just fine but now, after a restart each
build cancels with the error message:
"Code Sign error: The identity 'iPhone Distribution' doesn't match any valid,
non-expired certificate/private key pair in the default keychain"
It looks like an issue with an unlocked keychain, but if I open up a terminal,
log in as the 'jenkins' user and perform the commands manually:
$ su jenkins
$ /usr/bin/security list-keychains -s ${HOME}/Library/Keychains/jenkins.keychain
$ /usr/bin/security default-keychain -d user -s
${HOME}/Library/Keychains/jenkins.keychain
$ /usr/bin/security unlock-keychain -p ********
${HOME}/Library/Keychains/jenkins.keychain
$ cd /Users/Shared/Jenkins/Home/jobs/Puzzle/workspace/Puzzle/
$ /usr/bin/xcodebuild -alltargets -configuration Release clean build
CONFIGURATION_BUILD_DIR=/Users/Shared/Jenkins/Home/jobs/Puzzle/workspace/build
...the build finishes successfully. (for the terminal calls, I replaced ${HOME}
with my installation path /Users/Shared/Jenkins/Home/)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira