Jimmy
Jimmy

Reputation: 16428

Restkit via cocoapods fails to build on new project, RKLog not found

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:

enter image description here

I have followed these exact steps:

  1. Created a brand new Xcode project, default options.
  2. Created a podfile with the following contents :

    platform :ios, '6.1' pod 'RestKit/Testing', '~> 0.20.0pre' pod 'RestKit/Search', '~> 0.20.0pre'

  3. Run pod install then opened the workspace

  4. 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

Answers (2)

Alex Stone
Alex Stone

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

Keith Smiley
Keith Smiley

Reputation: 63984

You have to include the base of Restkit as well. Add

pod 'RestKit', '~> 0.20.0pre'

To your Podfile.

Upvotes: 2

Related Questions