Reputation: 16428
I'm trying to use Restkit via CocoaPods for my first time, on a brand new project, but I encounter some issues building the project once Restkit is introduced:
I have followed these exact steps:
Created a podfile with the following contents :
platform :ios, '6.1' pod 'RestKit/Testing', '~> 0.20.0pre' pod 'RestKit/Search', '~> 0.20.0pre'
Run pod install
then opened the workspace
Updated the prefix file as instructed here.
I'm running these versions, all valid according to the Restkit documentation:
Can anyone suggest what I may have done wrong, or what I can do to solve this? Thanks
Upvotes: 1
Views: 926
Reputation: 47364
Found a solution described here.
It involves searching the project for #import and replacing it with #import . The project compiles!
//#import <RestKit/RestKit.h>
#import <RestKit/CoreData.h>
In this case the offending file was RKOperationStateMachine
Upvotes: 1
Reputation: 63984
You have to include the base of Restkit as well. Add
pod 'RestKit', '~> 0.20.0pre'
To your Podfile.
Upvotes: 2