10

I use Jenkins for continuous integration with XCode plugin, there is a project that Jenkins stuck at:

/usr/bin/codesign --force --sign ......

followed by the spinner, and forever spinning, I've never seen this before, anyone seen this before? Is it a provisioning profile issue, or certificate issue? On Jenkins the provisioning profile and certificate are correctly installed and showing a green tick in Organizer, so I've no idea what can cause this issue.

hzxu
  • 5,753
  • 11
  • 60
  • 95

1 Answers1

25

Check your Mac OS machine, it should be prompting a request to access the keychain. Until you don't accept or reject the access to the keychain the job remains stuck.

atxe
  • 5,029
  • 2
  • 36
  • 50
  • Is there any way to automatically access the keychain? It seems counter-productive to have to check the MacOS build machine in order to finish an automated build. – Jon Apr 12 '16 at 22:54
  • Have you tried http://stackoverflow.com/questions/16550594/jenkins-xcode-build-works-codesign-fails ? – atxe Apr 12 '16 at 23:19
  • This was the issue for me! New App / Certificate / Build so hadn't previously approved Jenkins to access the cert! – egarlock Nov 11 '16 at 21:06