No headers found after CocoaPods update

I updated CocoaPods today ( sudo gem install cocoapods). After execution, the pod installproject will no longer compile. It looks like the headers from the container are no longer found in the project.

Has something changed in recent versions of cocoa pods?

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'
+4
source share
2 answers

The fix is โ€‹โ€‹simple and the error says what to do. Add this to the top of your subfile:

source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

Here's a Github issue with more details - https://github.com/CocoaPods/CocoaPods/issues/2515

Update

Make sure you create the Podfile in the root of the Xcode project directory. Here's what your subfile looks like -

source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '7.0'
inhibit_all_warnings!

# Pods
pod 'RestKit', :head
pod 'RestKit/Testing', :head
pod 'CocoaLumberjack', :head
pod 'NLTHTTPStubServer', :head
pod 'Appsee', '~> 2.1'
pod 'google-plus-ios-sdk', '~> 1.7.0'

In the terminal -

  • RubyGems - sudo gem update
  • Cocoa Pods - sudo gem install cocoapods

-

  • - rm -rf Pods/
  • - pod install
+3

, , , , CocoaPods, ( )

, Podfile.lock , , , Cocoapods . Podfile.lock :

COCOAPODS: 0.33.1

,

sudo gem uninstall cocoapods

sudo gem install cocoapods -v 0.33.1

rm -rf Pods

pod install
0

All Articles