fastlane: Could not store password in keychain
|
|
Original issue by @xareelee - Imported from fastlane/credentials_manager#5 |
I use cert and sigh in fastlane, and it works fine on my computer. But now I want to build the fastlane environment on my server (Mac Mini), it ask the password for the account every time when using cert and sigh.
I try to manually execute the cert and sigh action under Terminal, and it shows the message: security: SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
Could not store password in keychain.
$ sigh
INFO [2015-04-21 15:06:07.62]: Login into iOS Developer Center
No username or password given. You can set environment variables:
DELIVER_USER, DELIVER_PASSWORD
-------------------------------------------------------------------------------------
The login information you enter will be stored in your Mac OS Keychain
More information about that on GitHub: https://github.com/KrauseFx/CredentialsManager
-------------------------------------------------------------------------------------
Password (for XXXX@XXXXXXX.com): ************
security: SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
Could not store password in keychain
INFO [2015-04-21 15:06:26.49]: Login successful
INFO [2015-04-21 15:06:27.15]: Fetching all available provisioning profiles...
INFO [2015-04-21 15:06:27.90]: Checking if profile is available. (11 profiles found)
INFO [2015-04-21 15:06:31.62]: Downloading profile...
INFO [2015-04-21 15:06:32.41]: Successfully downloaded provisioning profile
....
BTW, the project was pulled from GitHub by Jenkins. The path of the project is /Users/{XXXX}/.jenkins/jobs/iOS develop branch/workspace.
I’ve tried log in Apple Developer Program and iTunes Connect in a browser and store the keyword in the Keychain. The cert and sigh still ask the password every time.
I can’t figure out why this happened.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (11 by maintainers)
@FrankNine Thanks for following up. Right now we use the keychain to store credentials. I’m going to convert this to a feature request and close it. The team will have a look soon 👍
I am not really familiar with fastlane development and documentation. I guess since it is credentials related, I should be documented at CredentialsManager. I am still trying to get to the bottom of it. Placing keychain password on Jenkins server is not ideal. Hope we can address it in the right way.