localhost:PodTest3 haiwang$ pod install
Analyzing dependencies
Downloading dependencies
Installing MBProgressHUD (0.9.2)
Installing Masonry (1.0.2)
Generating Pods project
Abort trap: 6
After upgrading to Xcode 8, cocoapods
doesn't work anymore. I have tried to uninstall and install, but it still doesn't work.
It's problem with ruby in version
2.0.0
and cocoapods1.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.
If you are an using old version of cocoapods and an old version of xCode you may find after updating to new cocoapods version it complains about your Podfile syntax.
In this situation, another alternative to solve the problem is to keep using the old cocoapods version and set the path to the old xCode version so that cocoapods uses old xctools versions for workspace modifications.
i.e. don't update cocoapods (keep using old version - e.g. 0.39.0) and instead run this command to point to different Xcode version:
Uninstall the cocoapods and reinstall:
download xcode8-beta.
It is OK.
I ran into this error when I installed cocoapods with brew.
running
brew uninstall cocoapods
thensudo gem install cocoapods
fixed the issue.I tried all this things but none of them worked for me, this one did: