Cocoapods: NoMethodError - undefined method `files' for <PBXFileReference path=`Pods` UUID=`95DE25F61D4A826D00EF927B`>:Xcodeproj::Project::Object::PBXFileReference

Created on 2 Feb 2018  路  10Comments  路  Source: CocoaPods/CocoaPods

Report

What did you do?

Run pod install

What did you expect to happen?

Install all pod dependencies correctly.

What happened instead?

NoMethodError - undefined method `files' for <PBXFileReference path=`Pods` UUID=`95DE25F61D4A826D00EF927B`>:Xcodeproj::Project::Object::PBXFileReference
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb:47:in `set_target_xcconfig'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb:21:in `block (2 levels) in integrate'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb:20:in `each'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb:20:in `block in integrate'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb:19:in `each'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb:19:in `integrate'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:220:in `block in integrate!'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator/target_integrator.rb:219:in `integrate!'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator.rb:129:in `each'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator.rb:129:in `integrate_user_targets'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/user_project_integrator.rb:63:in `integrate!'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:582:in `block in integrate_user_project'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:579:in `integrate_user_project'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:121:in `install!'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/command/install.rb:41:in `run'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:in `run'
/Users/tbu/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/bin/pod:55:in `<top (required)>'
/Users/tbu/.rbenv/versions/2.5.0/bin/pod:23:in `load'
/Users/tbu/.rbenv/versions/2.5.0/bin/pod:23:in `<main>'

Most helpful comment

You somehow added another 'Pods' reference to your project as a resource causing the crash. Remove it and it fixes the problem.

screen_shot_2018-02-02_at_2_36_31_pm

All 10 comments

Please provide a sample app. I can't debug this with this information only.

Sample app is a private repo, is that okay?
https://github.com/payfone/authwifi-sample/tree/master/client-ios

@terrybu unfortunately not i cannot clone this.

@dnkoutso is it possible for me to zip it and send it to you? or should I attach it here

Attach it here, you can also send it to me if you'd like not to attach it here for everyone to be able to download it, whatever works for you.

@dnkoutso would rather email it to you, thanks so much. Your email?

its in my profile

You somehow added another 'Pods' reference to your project as a resource causing the crash. Remove it and it fixes the problem.

screen_shot_2018-02-02_at_2_36_31_pm

Thanks so much, that looks like that solved it

thanks @dnkoutso, that helped me too!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerchicov-bp picture gerchicov-bp  路  3Comments

sonu5 picture sonu5  路  3Comments

Curtis-Halbrook picture Curtis-Halbrook  路  3Comments

steffendsommer picture steffendsommer  路  3Comments

evermeer picture evermeer  路  3Comments