jdog
jdog

Reputation: 10759

Installing Reskit and libRestKit.a is missing (red text)

I am following the RestKit setup instructions perfectly, but I am getting libRestKit.a in red in the Linked Binary With Libraries.

Install instructions: https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x

I would try to drag the libRestKit.a file to my project, but cannot find it anywhere in the Restkit download?

Anyone run across this issue?

Running Xcode 4.5.2

UPDATE: See comments below. Now I am getting "File not Found" for #import

Upvotes: 2

Views: 1809

Answers (4)

flashfabrixx
flashfabrixx

Reputation: 1183

If your getting the "File not found" error, check your project settings.

  • File > Project settings
  • Derived Data Location > "Project-relative"
  • Select "Advanced"
  • Select "Unique"
  • Clean & Build

Upvotes: 0

Cornel Damian
Cornel Damian

Reputation: 733

You can try to install RestKit using CocoaPods, then you include like this: #import "RestKit/RestKit.h"

check how to work with cocoapods and restkit here: https://stackoverflow.com/a/13762665/1848750

Upvotes: 0

jdog
jdog

Reputation: 10759

The solution is NOT to copy the "$(BUILT_PRODUCTS_DIR)/../../Headers" from any webpage. Type it out as Xcode didn't like the " copied and pasted. I just replaced the " copied and pasted with manually typed and it worked.

Upvotes: 2

Michael Dautermann
Michael Dautermann

Reputation: 89519

The ".a" file doesn't exist until it's built. And if you followed those directions perfectly, I'm guessing you have embedded the RestKit project within your own project, yes?

Here is a image from the instructions; a critical step you need to do (provided you have properly added the RestKit.xcodeproj into your own project). You need to add the .a file (which doesn't exist yet, but will once it's built) as a target dependency to your own app.

make sure to add this as a target dependency

Upvotes: -1

Related Questions