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 `path' for nil:NilClass #5525

Closed
1 task done
Sebastien2422 opened this issue Jun 15, 2016 · 2 comments · Fixed by #6148
Closed
1 task done

NoMethodError - undefined method `path' for nil:NilClass #5525

Sebastien2422 opened this issue Jun 15, 2016 · 2 comments · Fixed by #6148

Comments

@Sebastien2422
Copy link

Sebastien2422 commented Jun 15, 2016

Report

What did you do?

Run pod install

What did you expect to happen?

for all pods to be installed

pod 'AWSAutoScaling'
pod 'AWSCloudWatch'
pod 'AWSCognito'
pod 'AWSCognitoIdentityProvider'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSElasticLoadBalancing'
pod 'AWSIoT'
pod 'AWSKinesis'
pod 'AWSLambda'
pod 'AWSMachineLearning'
pod 'AWSMobileAnalytics'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'

Install all pod dependencies correctly.

What happened instead?

Error

NoMethodError - undefined method `path' for nil:NilClass
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/xcodeproj-1.1.0/lib/xcodeproj/project/object/native_target.rb:462:in `block in add_file_references'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/xcodeproj-1.1.0/lib/xcodeproj/project/object/native_target.rb:461:in `map'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/xcodeproj-1.1.0/lib/xcodeproj/project/object/native_target.rb:461:in `add_file_references'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:91:in `block (2 levels) in add_files_to_build_phases'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:87:in `each'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:87:in `block in add_files_to_build_phases'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:76:in `each'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:76:in `add_files_to_build_phases'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:21:in `block in install!'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:141:in `message'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer/target_installer/pod_target_installer.rb:17:in `install!'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:621:in `block (2 levels) in install_libraries'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:619:in `each'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:619:in `block in install_libraries'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:141:in `message'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:618:in `install_libraries'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:170:in `block in generate_pods_project'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:167:in `generate_pods_project'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:119:in `install!'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/usr/local/Cellar/cocoapods/1.0.1/libexec/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.0.1/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.0.1/libexec/bin/pod:23:in `<main>'
@neonichu
Copy link
Member

Looks like a duplicate of #5427

@Sebastien2422
Copy link
Author

Their solution did not work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants