I updated CocoaPods today (sudo gem install cocoapods
). After performing pod install
the project won't compile anymore. It seems that headers from the pod are not longer found by the project.
Did something change in the recent cocoa pods version(s)?
The following is my pod file:
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
pod 'CocoaLumberjack'
pod 'RestKit', '~> 0.20.0'
pod 'RestKit/Testing'
pod 'NLTHTTPStubServer'
pod 'Appsee'
pod 'google-plus-ios-sdk', '1.7.0'
I was in the same position as you, and finally decided to roll back the
CocoaPods
version I had installed (which solved my problem)Luckily my
Podfile.lock
file was under version control, so I pulled up the file to see what the last version of Cocoapods I had used. The last line of myPodfile.lock
was:So here is how I solved my issue
Fix is simple and the error tells what to do. Add this to the top of your Podfile:
Here's the Github issue with more details - https://github.com/CocoaPods/CocoaPods/issues/2515
Update
Make sure you create the Podfile in the root of your Xcode project directory. Here's what your Podfile should look like -
In your terminal -
sudo gem update
sudo gem install cocoapods
In your project directory -
rm -rf Pods/
pod install