localhost:PodTest3 haiwang$ pod install
Analyzing dependencies
Downloading dependencies
Installing MBProgressHUD (0.9.2)
Installing Masonry (1.0.2)
Generating Pods p
I tried all this things but none of them worked for me, this one did:
sudo gem update
update your ruby version to 2.4 then uninstall cocoapods and install it.
download xcode8-beta.
localhost:Applications haiwang$ sudo xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer
localhost:Applications haiwang$ xcode-select -p /Applications/Xcode-beta.app/Contents/Developer
Please close any current Xcode sessions and use `PodTest7.xcworkspace` for this project from now on.
It is OK.
It's problem with ruby in version 2.0.0
and cocoapods 1.1.1
, so if you won't use prerelease version of cocoapods, just update your ruby version for example with rvm:
\curl -sSL https://get.rvm.io | bash -s stable
Remember: After install of new ruby you need to install all gems one more time.
This should definitely help you.
However I'm not pleased with the previous version of Cocoapods as it has a few other issues.
gem uninstall cocoapods
sudo gem install -n /usr/local/bin cocoapods
Uninstall the cocoapods and reinstall:
gem uninstall cocoapods
gem install cocoapods