This guide outlines how to get an example Cocopods application running with XCode 5 and iOS 7.
First, create a new XCode application and select “Empty Application” as the base template. Leave the “universal” option checked. Call your project “CocoaPods.” Leave the “generate tests” option checked as well.
Next, install cocoa pods: http://cocoapods.org/.
Note: I got a series of errors attempting to run Cocoapods on Mavericks + XCode 5. I had to set up a symlink to GCC using these instructions: https://coderwall.com/p/6-wusg. I also got an error “ERROR: Failed to build gem native extension” which I resolved by following directions on this thread: https://github.com/CocoaPods/CocoaPods/issues/1108.
Now, install MKNetworkingKit by creating your “Podfile” in the root of your app and adding the line:
Now run “pod install” on the terminal to make it set up the dependency. You will now need to close your XCode project and open the .xcworkspace specified by Cocoapods.
Note: To Make Cocoapods work with your test project you must add the following line at the very top of your Podfile above everything else.
link_with ['CocoaPods', 'CocoaPodsTests']
If you want to use tests, I also found I had to add the following in the project’s Header Search Paths and check “recursive” in the CocoaPodsTests target in XCode :