Unclear message when running a project and CocoaPod is not installed
See original GitHub issueWhen I tried to run a project which contained a CocoaPod it failed with a message from which it was not clear that I didn’t have CocoaPod installed. Maybe the message should guide you that you have to install them.
nchakaromac:locationtest nchakaro$ tns doctor
WARNING: CocoaPod is not installed or is not configured properly.
You will not be able to build your projects for iOS if they contain plugin with CocoaPod file.
To be able to build such projects, verify that you have installed CocoaPod.
These warnings are just used to help the NativeScript maintainers with debugging if you file an issue.
Please ignore them if everything you use NativeScript for is working fine.
nchakaromac:locationtest nchakaro$ tns prepare ios
Successfully prepared plugin nativescript-geolocation for ios.
The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks in CocoaPods.
Successfully prepared plugin nativescript-googlemaps for ios.
Creating project scheme...
Processing node_modules failed. Error: Command failed: /bin/sh -c ruby -e "require 'xcodeproj'; xcproj = Xcodeproj::Project.open('locationtest.xcodeproj'); xcproj.recreate_user_schemes; xcproj.save"
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
CocoaPods not installed or not in valid state - Stack Overflow
1. have you tried to run the command from the error message sudo gem install cocoapods · Try same command sudo gem install...
Read more >Trouble with installing cocoapods | Apple Developer Forums
This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it....
Read more >DropDown on CocoaPods.org
Do pod try DropDown in your console and run the project to try a demo. To install CocoaPods, run sudo gem install cocoapods...
Read more >Error while building ios project - Google Groups
After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due...
Read more >warning: cocoapods is installed but broken. skipping pod ...
warning: cocoapods is installed but broken. skipping pod install. you appear to have cocoapods installed but it is not working. this can happen...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sudo gem install cocoapods
is clean enough.@dtopuzov but I still got the warning
WARNING: CocoaPods is not installed or is not configured properly.