Keychain won't unlock from Jenkins script unless user logged in
I had to:
- Right-click on the private key in my keychain that my build processwas trying to use
- Click "Get Info"
- Then the "Access Control" tab.
- You can add specific apps (like "codesign") to the list of apps thatare allowed access to that key, or just allow access from all applications.
This cleared it up for me.
More info in these comments:https://stackoverflow.com/a/12235462/544130https://stackoverflow.com/a/14761060/544130
I stumbled upon the exact same issue recently.
security list-keychains -s /Users/john/Library/Keychains/xcode.keychain
probably will fix your problem. Let me know if it works.
Recently I found a solution to this over there: Missing certificates and keys in the keychain while using Jenkins/Hudson as Continuous Integration for iOS and Mac development