iOS – Build fails with CocoaPods cannot find header files

Update Make sure your Podfile includes link_with on targets missing a config file. Cocoapods only sets the first target by default otherwise. e.g. platform :osx, ‘10.7’ pod ‘JSONKit’, ‘~> 1.4’ link_with ‘Pomo’, ‘Pomo Dev’, ‘Pomo Tests’ —— End Update Note: Please do note that you have to look into Project->Info->Configurations for steps below. I had … Read more

How do I install CocoaPods?

POD Install Open terminal and type: sudo gem install cocoapods The Gem will get installed in Ruby inside the System library. Or try on Mac OS X v10.11 (El Capitan), type: sudo gem install -n /usr/local/bin cocoapods If there is an error “activesupport requires Ruby version >= 2.xx”, then install latest activesupport first by typing in the … Read more

How to remove CocoaPods from a project?

Removing CocoaPods from a project is possible, but not currently automated by the CLI. First thing, if the only issue you have is not being able to use an xcworkspace you can use CocoaPods with just xcodeprojs by using the –no-integrate flag which will produce the Pods.xcodeproj but not a workspace. Then you can add … Read more