Summary:
Setting up Jenkins on OS X has been made significantly easier with the most recent installer (as of 1.449 - March 9, 2012), however managing the pr
I've had the same issue and have been searching around for some time for an answer. Here's one thing that I've learned.
I am running jenkins as the jenkins user, user created by the installer, and as everyone else has mentioned he doesn't have access to the same keychain that your normal user does. Instead of trying to login as the jenkins user, I created a second build project that simply has one build step that is "Execute Shell" in which I run commands I want to test as the jenkins user.
Once I had that set up, I could run the command
security list-keychains
And this revealed to me that the only thing that jenkins could see was the system keychain.
+ security list-keychains
"/Library/Keychains/System.keychain"
"/Library/Keychains/System.keychain"
With that knowledge, I then opened the Keychain Access app and copied my "iPhone Developer: xxxx" certificate into the System keychain (Right-click, copy from the "login" keychain).
This got me passed the certificate/private key pair code sign error but opened up another one with the provisioning profile (seems like a similar, but different, issue).