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 --system
sudo gem install -n /usr/local/bin cocoapods
once it will be finished then write below command:
pod install
This solution has worked for me...!!!