CocoaPods is the go-to package manager for most of the iOS apps I've worked on. I really love it, and it makes live a lot easier. Until it makes it harder.
Today I encountered a weird error updating Pods for an iOS app:
Pod Abort Trap: 6. In addition, the
.xcworkspace file Pod should have created wasn't created (or, in the case of a project where the file existed--it wasn't updated).
I received this error after performing a routine
Pod Update in the project folder. None of the workarounds, like
pod deintegrate followed by
pod install worked, nor did performing an update of CocoaPods using gem.
After some research I found I needed to uninstall CocoaPods altogether, and reinstall it.
If you have this issue crop up, just execute these commands from the macOS command line, installing all versions of CocoaPods to cleanup the environment:
sudo gem uninstall cocoapods sudo gem install cocoapods --pre
Afterwards, for me at least, all was back to normal. Hopefully this will work for you as well!