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.
How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
12.7k views Asked by Kris Haamer At
4
There are 4 answers
7
On
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
0
On
Disabling system integrity protection worked for me.
Follow these steps to disable SIP:
Restart your Mac. Before OS X starts up, hold down Command-R and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery. From the Utilities menu, select Terminal. At the prompt type exactly the following and then press Return: csrutil disable Terminal should display a message that SIP was disabled. From the menu, select Restart
Until Cocoapods supports Swift 2, at the very least you should be able to continue to use Xcode 6 until it does. If Xcode 7 has stomped all over your Cocoapods already, this link shows you how to clean it up https://gist.github.com/mbinna/4202236.
Basically, from inside any project using Cocoapods:
Then rebuild using Xcode 6 and everything should be back to normal.