Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

NoMethodError - undefined method `isa' for nil:NilClass #938

Closed
msealy opened this Issue · 5 comments

4 participants

@msealy

Report

  • What did you do?
    Added a target for Kiwi

  • What did you expect to happen?
    Pod installed

  • What happened instead?
    ruby exception

Stack

   CocoaPods : 0.17.1
        Ruby : ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.7.5 (11G63)
       Xcode : 4.6 (4H127)
Ruby lib dir : /Users/michael/.rvm/rubies/ruby-1.9.3-p194/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ be9e1c78749fd0000a103fe35e61508842967b00

Podfile

platform :ios, '6.0'
pod 'TestFlightSDK', '~> 1.2.4'
pod 'GoogleAnalytics-iOS-SDK', '~> 2.0beta4'

target :spec do
    pod 'Kiwi', '~> 2.0.6'
end

Error

NoMethodError - undefined method `isa' for nil:NilClass
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:55:in `block (2 levels) in targets'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:53:in `each'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:53:in `any?'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:53:in `block in targets'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:52:in `reject'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:52:in `targets'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:27:in `integrate!'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator.rb:114:in `block in integrate_user_targets'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator.rb:113:in `each'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator.rb:113:in `integrate_user_targets'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator.rb:63:in `integrate!'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer.rb:355:in `block in integrate_user_project'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/user_interface.rb:52:in `section'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer.rb:352:in `integrate_user_project'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer.rb:87:in `install!'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/command/project.rb:40:in `run_install_with_update'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/command/project.rb:70:in `run'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/claide-0.2.0/lib/claide.rb:535:in `run'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/command.rb:36:in `run'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/bin/pod:16:in `<top (required)>'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `load'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `<main>'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/Users/michael/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
@supermarin
Collaborator

Does it work this way?

target :specs, :exclusive => true do
  pod 'Kiwi'
end
@alloy
Owner

It would seem you have a ‘link with library’ build file in your own project that has no file reference, but which is expected here.

If you edit /Users/michael/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.17.1/lib/cocoapods/installer/user_project_integrator/target_integrator.rb at line 53 to be:

            non_integrated = targets.reject do |target|
              p target, target.frameworks_build_phase.files
              target.frameworks_build_phase.files.any? do |build_file|

then maybe you can pin point the build file in question.

@fabiopelosin
Owner

The irrationalfab bot will automatically close this issue as dead after 7 days from the last comment if no update is provided.

@msealy

Thank you very much. I did indeed have a "link with library" build file that had no file reference.

@fabiopelosin

Thanks for the confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.