Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError - Can't store password in Keychain #194

Open
AhmedAskar opened this issue Feb 26, 2019 · 6 comments
Open

RuntimeError - Can't store password in Keychain #194

AhmedAskar opened this issue Feb 26, 2019 · 6 comments

Comments

@AhmedAskar
Copy link

AhmedAskar commented Feb 26, 2019

I tried pod install and it gives me

CocoaPods-Keys has detected a keys mismatch for your setup.
What is the key for DevelopmentAppKey
value

――― MARKDOWN TEMPLATE ―――――――――――

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.6.1
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
    RubyGems : 2.7.6
        Host : Mac OS X 10.14 (18A391)
       Xcode : 9.4.1 (9F2000)
         Git : git version 2.15.2 (Apple Git-101.1)
Ruby lib dir : /usr/local/Cellar/ruby/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ bdeafd39da58cdebb6ce150ec0e13ffd80cdfa6a
               voda-ios-cocoapods - https://df84987aaacb902dbb7582e79ce5cd60195bd13c@github.voda.com/TSS-MyVoda-CoreApp/iOS-CocoaPods.git @ 56d002e4de7980dfb78776ef5de6d8e33459a39e
               voda-ios-cocoapods-4.2 - https://df84987aaacb902dbb7582e79ce5cd60195bd13c@github.voda.com/TSS-MyVoda-CoreApp/iOS-CocoaPods-4.2.git @ 8a4513657bf9c59ab388e7c2011480a54f5963c7

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-keys        : 2.1.0
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
source 'https://df84987aaacb902dbb7582e79ce5cd60195bd13c@github.voda.com/TSS-MyVoda-CoreApp/iOS-CocoaPods-4.2.git'

target 'MyVoda' do
    use_frameworks!
    pod 'Fabric'# , '~> 1.6.11'
    pod 'Crashlytics'#, '~> 3.8.4'
    pod 'R.swift'#, '~> 3.3.0'
    pod 'Alamofire'#, '~> 4.5.0' # is elegant HTTP Networking
    pod 'Log'#, '~> 1.0.0' # is an extensible logging framework
    pod 'YLProgressBar'#, '~> 3.10.1'
    pod 'ObjectMapper'#, '~> 2.2'
    pod 'SearchTextField'#, '1.1.8'
    pod 'IncrementableLabel' #, '~> 1.2.0'
    pod 'SkeletonView' #, '1.2.1'
end

plugin 'cocoapods-keys', {
    :project => "MyVoda-Gold",
    :target => "MyVoda-Gold",
    :keys => [
    "UrbanAirShipDevelopmentAppKey",
    "UrbanAirShipProductionAppKey",
    "UrbanAirShipProductionAppSecret",
    "UrbanAirShipDevelopmentAppSecret",
    "MPluseApiKey",
    "MintApiKey",
    "ContentType",
    "xapikeySt",
    "xapikeySit",
    "xapikeyEnv03",
    "xapikeyEnv05",
    "WebUser",
    "channel",
    ]
}

Error

RuntimeError - Can't store password in Keychain
/usr/local/lib/ruby/gems/2.5.0/gems/osx_keychain-1.0.2/lib/osx_keychain.rb:10:in `set'
/usr/local/lib/ruby/gems/2.5.0/gems/osx_keychain-1.0.2/lib/osx_keychain.rb:10:in `[]='
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/keyring.rb:34:in `save'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/pod/command/keys/set.rb:46:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/preinstaller.rb:65:in `block in setup'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/preinstaller.rb:43:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/preinstaller.rb:43:in `setup'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/plugin.rb:17:in `setup'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-keys-2.1.0/lib/plugin.rb:11:in `block in singleton class'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/hooks_manager.rb:122:in `block (3 levels) in run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/user_interface.rb:145:in `message'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/hooks_manager.rb:116:in `block (2 levels) in run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/hooks_manager.rb:115:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/hooks_manager.rb:115:in `block in run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/user_interface.rb:145:in `message'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/hooks_manager.rb:114:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:468:in `run_plugins_pre_install_hooks'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:159:in `block in prepare'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/user_interface.rb:145:in `message'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:155:in `prepare'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:135:in `install!'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/command/install.rb:48:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.6.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――

@AhmedAskar AhmedAskar changed the title CocoaPods-Keys has detected a keys mismatch for your setup. CocoaPods-Keys has detected a keys mismatch for your setup. CocoaPods-Keys has detected a keys mismatch for your setup. What is the key for UrbanAirShipDevelopmentAppKey > hUlqs_UTSjK490iOXr-MSA Feb 26, 2019
@AhmedAskar AhmedAskar changed the title CocoaPods-Keys has detected a keys mismatch for your setup. CocoaPods-Keys has detected a keys mismatch for your setup. What is the key for UrbanAirShipDevelopmentAppKey > hUlqs_UTSjK490iOXr-MSA CocoaPods-Keys has detected a keys mismatch for your setup. CocoaPods-Keys has detected a keys mismatch for your setup. Feb 26, 2019
@AhmedAskar AhmedAskar changed the title CocoaPods-Keys has detected a keys mismatch for your setup. CocoaPods-Keys has detected a keys mismatch for your setup. CocoaPods-Keys has detected a keys mismatch for your setup. Feb 26, 2019
@AhmedAskar

This comment has been minimized.

@AhmedAskar

This comment has been minimized.

@AhmedAskar AhmedAskar changed the title CocoaPods-Keys has detected a keys mismatch for your setup. RuntimeError - Can't store password in Keychain Feb 26, 2019
@sudeepdino008
Copy link

any update on this? Facing this issue on jenkins CLI

@orta
Copy link
Owner

orta commented Feb 5, 2021

Nope, you're free to look into it

@gnou
Copy link

gnou commented Mar 11, 2021

If you're running into this issue during remote action (CI/CD, command line, ssh, etc), try to run the same script first as a on-site user (Mac attached on a monitor, or use screen sharing app), there might be a popup to ask permission to access Keychain.

@WZBbiao
Copy link

WZBbiao commented Mar 14, 2021

try run sudo pod install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants