Mac application looking for RestKit.framework outside of App bundle #543

Closed
besi opened this Issue Feb 1, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

besi commented Feb 1, 2012

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.

Contributor

besi commented Feb 1, 2012

Proposed Fix

After a few hours of investigation I finally figured out the problem. The problem in my case was the frameworks Installation Directory path:

Bad (Results in Library/Frameworks):

INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks

Good:

INSTALL_PATH = "@executable_path/../Frameworks";

BTW: I found this in the Growl Xcode project

@timbodeit timbodeit added a commit to timbodeit/RestKit that referenced this issue Aug 21, 2015

@timbodeit timbodeit Silence warning generated in CocoaLumberjacks Header File
Known issue on the CocoaLumberjack side.
See CocoaLumberjack #543:
CocoaLumberjack/CocoaLumberjack#543

Has been "fixed" for iOS, but not yet been released. Also same problem still
persists for Mac OS.
12a0053

@timbodeit timbodeit added a commit to timbodeit/RestKit that referenced this issue Aug 21, 2015

@timbodeit timbodeit Silence warning generated in CocoaLumberjacks Header File
Known issue on the CocoaLumberjack side.
See CocoaLumberjack #543:
CocoaLumberjack/CocoaLumberjack#543

Has been "fixed", but not yet been released. Fix will be included in
CocoaLumberjack >= 2.0.2
c4a523a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment