-
Notifications
You must be signed in to change notification settings - Fork 13
Could not store password in keychain #5
Comments
Try reseting your Keychain maybe? If nothing helps, you could just pass the credentials using the environment variables |
Reseting my keychain doesn't help. I've tried using environment variables ⌦ Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “YYYYYYYYYY” were found.
⌦ CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.3'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/actions/actions_helper.rb:56:in `sh'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/actions/ipa.rb:64:in `run'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/fast_file.rb:112:in `block (2 levels) in method_missing'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/fast_file.rb:94:in `block in method_missing'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/fast_file.rb:93:in `chdir'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/fast_file.rb:93:in `method_missing'
from (eval):120:in `block (3 levels) in parse'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/runner.rb:34:in `call'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/runner.rb:34:in `block in execute'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/runner.rb:24:in `chdir'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/runner.rb:24:in `execute'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/lib/fastlane/lane_manager.rb:33:in `cruise_lane'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/bin/fastlane:39:in `block (2 levels) in run'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/commander-4.3.3/lib/commander/command.rb:178:in `call'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/commander-4.3.3/lib/commander/command.rb:178:in `call'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/commander-4.3.3/lib/commander/command.rb:153:in `run'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/commander-4.3.3/lib/commander/runner.rb:428:in `run_active_command'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/commander-4.3.3/lib/commander/runner.rb:68:in `run!'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/commander-4.3.3/lib/commander/delegates.rb:15:in `run!'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/bin/fastlane:118:in `run'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/gems/fastlane-0.12.5/bin/fastlane:124:in `<top (required)>'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/bin/fastlane:23:in `load'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/bin/fastlane:23:in `<main>'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/XXXXXXXX/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>' My lane is: lane :CI_deploy_to_hockey do
cert
sigh({
adhoc: true
})
ipa({
workspace: "YYYYYYY.xcworkspace",
configuration: "Release",
scheme: "YYYYYYY",
clean: true,
})
hockey({
api_token: 'aaaaaaaaaaaaaaaaaaaaaaaaa',
})
end The same lane is OK while running on my personal Mac, but failed on Mac mini as the Jenkins server. |
It seems like fasten doesn't have an access to Keychain. Have a look at this: nomad-cli/cupertino#137 and http://superuser.com/questions/270095/when-i-ssh-into-os-x-i-dont-have-my-keychain-when-i-use-terminal-i-do |
Finally, I find the cause of this problem and solve it. I'm using Jenkins to run the fastlane, and the Just simply uncheck the option to solve this problem. Thanks for your help. |
I have this problem too. The error states that the keychain item already exists. And the ssh keychain unlock does not help, that part works. |
FYI if I remove the existing It seems like it is failing to read the keychain but is able to write to it if the entry does not exist. |
Mark, I get the exact same issue. I've been using DELIVER_USER and DELIVER_PASSWORD env variables for now, but would like to use keychain if possible. |
i have the same issue too, reset my login keychain already. |
I was also having this problem (i.e. getting:
and sigh was requesting my password over and over). After some digging, I found that our password had a backslash "" in it. The security gem apparently does not read those back from the keychain correctly (although it does store them correctly). After I changed our password to one that did not contain a backslash, we no longer have this issue. Hope this helps someone. When I get a little more info, I'll open an issue with the security gem project. I'm assuming this is some kind of escape bug. |
I have a similar issue. In my case, it happens when jenkins server has been running more than about a day. Solution here is rebooting the jenkins server. |
This issue was migrated to fastlane/fastlane#1925. Please post all further comments there.
|
I use
cert
andsigh
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 usingcert
andsigh
.I try to manually execute the
cert
andsigh
action under Terminal, and it shows the message: security: SecKeychainAddInternetPassword : The specified item already exists in the keychain.Could not store password in keychain.
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
andsigh
still ask the password every time.I can't figure out why this happened.
The text was updated successfully, but these errors were encountered: