RestKit/RestKit — Issue #543: Mac application looking for Restkit.framework outside of App bundle
Author: besi
Created: 2012-02-01 17:13:49+00:00
State: open

I have an Mac App that uses Restkit, so I:

1. added Restkit as a project dependency,
2. Link against RestKit.framework
3. Copy the RestKit.framework to the "Frameworks" using a "Copy Files" build phase

I can now run my App from Xcode but as soon as I start the built App from the Finder, I get the following error:

Dyld Error Message:
Library not loaded: /Library/Frameworks/RestKit.framework/Versions/A/RestKit
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/MyApp-avuigricyierhadsmgxpjfqvaozu/Build/Products/Debug/MyApp.app/Contents/MacOS/MyApp

What do I have to do, that the Application uses the bundled RestKit.framework instead of a Framework in `/Library/Frameworks/` which won't be available on a target machine unless someone puts it there.