question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear message when running a project and CocoaPod is not installed

See original GitHub issue

When 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:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
dtopuzovcommented, Jan 21, 2016

sudo gem install cocoapods is clean enough.

1reaction
toleriouscommented, Nov 12, 2017

@dtopuzov but I still got the warning WARNING: CocoaPods is not installed or is not configured properly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found