orta / cocoapods-keys

A key value store for storing per-developer environment and application keys
MIT License
1.55k stars 92 forks source link

RuntimeError - Can't store password in Keychain #194

Open AhmedAskar opened 5 years ago

AhmedAskar commented 5 years ago

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

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 commented 5 years ago

@ashfurrow

AhmedAskar commented 5 years ago

@orta

sudeepdino008 commented 3 years ago

any update on this? Facing this issue on jenkins CLI

orta commented 3 years ago

Nope, you're free to look into it

gnou commented 3 years ago

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 commented 3 years ago

try run sudo pod install