orta / cocoapods-keys

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

NameError - uninitialized constant CocoaPodsKeys::PreInstaller::Informative #163

Closed tkuichooseyou closed 7 years ago

tkuichooseyou commented 7 years ago

There is a missing Pod:: namespace in lib/preinstaller.rb which when on CI causes any missing keys to raise a NameError instead of raising the Informative error, which describes the real failure which is a missing key in the keychain.

Command

/usr/local/bin/pod install

Stack

   CocoaPods : 1.2.0
        Ruby : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
    RubyGems : 2.5.1
        Host : Mac OS X 10.11.6 (15G1004)
       Xcode : 8.0 (8A218a)
         Git : git version 2.10.0
Ruby lib dir : /usr/local/Cellar/ruby/2.3.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ b0aaf2fa5f772e7079047c36ec68e172c2f33e2e

Plugins

cocoapods-deintegrate : 1.0.1
cocoapods-keys        : 2.0.0
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.1.2
cocoapods-try         : 1.1.0

Error

NameError - uninitialized constant CocoaPodsKeys::PreInstaller::Informative
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-keys-2.0.0/lib/preinstaller.rb:46:in `block in setup'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-keys-2.0.0/lib/preinstaller.rb:43:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-keys-2.0.0/lib/preinstaller.rb:43:in `setup'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-keys-2.0.0/lib/plugin.rb:17:in `setup'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-keys-2.0.0/lib/plugin.rb:11:in `block in singleton class'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/hooks_manager.rb:109:in `block (3 levels) in run'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:142:in `message'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/hooks_manager.rb:103:in `block (2 levels) in run'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/hooks_manager.rb:101:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/hooks_manager.rb:101:in `block in run'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:142:in `message'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/hooks_manager.rb:100:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:463:in `run_plugins_pre_install_hooks'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:135:in `block in prepare'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:142:in `message'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:131:in `prepare'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:109:in `install!'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/command/install.rb:37:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.2.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'