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

NoMethodError - undefined method `upcase' for nil:NilClass #199

Open
mvg06 opened this issue Jan 17, 2020 · 4 comments
Open

NoMethodError - undefined method `upcase' for nil:NilClass #199

mvg06 opened this issue Jan 17, 2020 · 4 comments

Comments

@mvg06
Copy link

mvg06 commented Jan 17, 2020

Command

/usr/local/bin/pod install

Report

  • What did you do?
    Every time I run pod install I get this error
  • What did you expect to happen?
    Generate Objective-C classes

Stack

   CocoaPods : 1.8.4
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.2 (19C57)
       Xcode : 11.2.1 (11B500)
         Git : git version 2.21.0 (Apple Git-122.2)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ b1226b5c2c7cd5253d94edb74495a7a5b851d924
               Pods-Specs-Master - git - git@github.com:mvg06/Pods-Specs-Master.git @ 4d54e0963dbe56a8686f41cc2684f422418343e7
               trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-keys        : 2.1.0
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'

target 'WisePlatform' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for WisePlatform
  pod 'SwiftLint'
  pod 'AWSCore', '~> 2.12.0'
  pod 'AWSMobileClient', '~> 2.12.0'  

  target 'WisePlatformTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'WisePlatformUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

plugin 'cocoapods-keys', {
  :project => 'WisePlatform',
  :keys => [
    'CognitoPoolIdDev',
    'CognitoAppClientIdDev',
    'CognitoRegionDev'
  ]}

Error

NoMethodError - undefined method `upcase' for nil:NilClass
Did you mean?  case
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/keyring.rb:22:in `block in code_name'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/keyring.rb:22:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/keyring.rb:22:in `code_name'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/key_master.rb:13:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/plugin.rb:39:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/plugin.rb:39:in `setup'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-keys-2.1.0/lib/plugin.rb:11:in `block in singleton class'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/hooks_manager.rb:122:in `block (3 levels) in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/hooks_manager.rb:116:in `block (2 levels) in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/hooks_manager.rb:115:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/hooks_manager.rb:115:in `block in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/hooks_manager.rb:114:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:599:in `run_plugins_pre_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:219:in `block in prepare'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:215:in `prepare'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:155:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
@1jacobb1
Copy link

1jacobb1 commented Apr 7, 2021

I encountered the same error / problem as well 😞.

@bmedenwald
Copy link

Did anyone figure this out? I'm now suffering from the same issue.

@MRSorokinMaxim
Copy link

I have the same problem

@andyapplaudo
Copy link

Same here! is there any solution? It has been open since 2021 😞

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