CocoaPods not working in macOS High Sierra CocoaPods not working in macOS High Sierra ruby ruby

CocoaPods not working in macOS High Sierra


According to https://github.com/CocoaPods/CocoaPods/issues/6778 reinstalling CocoaPods should solve this issue:

sudo gem install cocoapods


After upgrading to macOS High Sierra, get it fixed with following commands:

sudo gem update --systemsudo gem install -n /usr/local/bin cocoapods

once it will be finished then write below command:

pod install

This solution has worked for me...!!!


I got this error while installing the CocoaPods

ERROR:  While executing gem ... (Gem::FilePermissionError)You don't have write permissions for the /usr/bin directory.

And I used this statement. It worked!

sudo gem install cocoapods -n /usr/local/bin