Xcode 8 cocoapods abort trap: 6

For me, I solved this issue by uninstalling and then again installing CocoaPods with --pre with the command

sudo gem uninstall cocoapods

sudo gem install cocoapods --pre

Hopefully this will solve your problem.

Update

CocoaPods has released version 1.2.0, so you can now install using

sudo gem install cocoapods

And you will get version 1.2.0 installed


You can easily solve this issue using the follow command:

gem update cocoapods

If the simple uninstall by @haider_kazal doesn't work like it didn't for me, try to install RVM with ruby 2.5.5, then purge CocoaPods completely:

gem uninstall cocoapods
gem uninstall cocoapods-core
gem uninstall cocoapods-deintegrate
gem uninstall cocoapods-downloader
gem uninstall cocoapods-plugins
gem uninstall cocoapods-search
gem uninstall cocoapods-stats
gem uninstall cocoapods-try
gem uninstall cocoapods-trunk

And then install once again:

gem install cocoapods --pre