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

ArgumentError - comparison of NilClass with String failed #12292

Open
1 task
radarcontact opened this issue Feb 23, 2024 · 5 comments
Open
1 task

ArgumentError - comparison of NilClass with String failed #12292

radarcontact opened this issue Feb 23, 2024 · 5 comments

Comments

@radarcontact
Copy link

radarcontact commented Feb 23, 2024

Report

What did you do?

Run pod install

What did you expect to happen?

Install all pod dependencies correctly

What happened instead?

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

Command

/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.12.1
        Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
    RubyGems : 3.4.10
        Host : macOS 14.2.1 (23C71)
       Xcode : 15.2 (15C500b)
         Git : git version 2.39.3 (Apple Git-145)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.2.2/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

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

target 'NAME' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!

  # Pods for Shine
  pod 'Firebase/Core'
  pod 'AFNetworking', '~> 1.1.0'
  pod 'Stripe', '~> 22.8.4'
  pod 'Firebase/Core'
  pod 'Firebase/Functions'
  pod 'Firebase/Performance'
  pod 'FirebaseCrashlytics'
  pod 'Firebase/Auth'
  pod 'Reachability'
  pod 'Firebase/Database'
  pod 'CardIO'
  pod 'SAMKeychain'
  pod 'Bolts'
  
  


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

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

end

Error

ArgumentError - comparison of NilClass with String failed
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer/specs_state.rb:100:in `sort'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer/specs_state.rb:100:in `block in lines'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer/specs_state.rb:99:in `each'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer/specs_state.rb:99:in `flat_map'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer/specs_state.rb:99:in `lines'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer/specs_state.rb:63:in `print'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1128:in `block in generate_sandbox_state'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1125:in `generate_sandbox_state'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:129:in `analyze'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:422:in `analyze'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:162:in `install!'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in `<main>'

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

CocoaPods Environment

Stack

   CocoaPods : 1.12.1
        Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
    RubyGems : 3.4.10
        Host : macOS 14.2.1 (23C71)
       Xcode : 15.2 (15C500b)
         Git : git version 2.39.3 (Apple Git-145)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.2.2/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

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

target 'NAME' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!

  # Pods for Shine
  pod 'Firebase/Core'
  pod 'AFNetworking', '~> 1.1.0'
  pod 'Stripe', '~> 22.8.4'
  pod 'Firebase/Core'
  pod 'Firebase/Functions'
  pod 'Firebase/Performance'
  pod 'FirebaseCrashlytics'
  pod 'Firebase/Auth'
  pod 'Reachability'
  pod 'Firebase/Database'
  pod 'CardIO'
  pod 'SAMKeychain'
  pod 'Bolts'
  
  


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

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

end

Project that demonstrates the issue

I'd prefer not. It's sensitive. I would have to comb through it to make sure it has no sensitive information. If this is an issue can someone reach out to me?

@paulb777
Copy link
Member

Updating to a more recent CocoaPods might help. 1.15.2 is the current version

@radarcontact
Copy link
Author

@paulb777 Thanks for the tip. I just updated and am getting the same error. Tried on two different computers

@radarcontact
Copy link
Author

radarcontact commented Mar 10, 2024

@paulb777 Is there anyway I could get some additional help from the Firebase team on this? The code builds fine on previous versions of Xcode. But does not build on newer versions of Xcode, 15+. I can't release an app update as a result of this. I think it has something to do with the Firebase SDKs.

@paulb777
Copy link
Member

@radarcontact The problem described in the original post is a CocoaPods crash and I don't see anything related to Xcode or Firebase versions.

If you have a Firebase issue, it can be reported at https://github.com/firebase/firebase-ios-sdk/issues

For both CocoaPods and Firebase, you'll likely need to provide a reproducible example to get help.

@radarcontact
Copy link
Author

@neonichu Can you help with this?

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

2 participants