How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?

Kris Haamer picture Kris Haamer · Jun 9, 2015 · Viewed 12.4k times · Source

I've updated to OS X El Capitan & Xcode 7 Beta released today and now my CocoaPods projects no longer work because of the new Swift syntax requirements. The automated Xcode project update breaks the code. Has anyone already figured this out already? Thanks.

Answer

huync picture huync · Oct 1, 2015

It worked for me for the bug when run Cocoapods on El Capitan 10.11 following this guide:

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH

gem install cocoapods