Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 204 Vote(s) - 3.59 Average
  • 1
  • 2
  • 3
  • 4
  • 5
App references framework outside of app bundle

#1
I am using [Restkit][1] for a Mac app. I can run the App from Xcode, but when I Archive the app and start the `.app` bundle I get the following error:

Dyld Error Message:
Library not loaded: /Library/Frameworks/RestKit.framework/Versions/A/RestKit
Referenced from: /Users/USER/Desktop/*/MyApp.app/Contents/MacOS/MyApp
Reason: image not found

The framework `Restkit.framework` is a product of the Restkit project dependency within my project. I am also using another framework `Sparkle.framework` which I also copy to the `.app` bundle and which is referenced correctly.

What do I have to change in my project, that `MyApp` does not reference the framework via `/Library/Frameworks/...` but rather use the framework from the app bundle like the `Sparkle.framework`.

I am using Restkit at commit `c19a500`

[1]:

[To see links please register here]

Reply

#2
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](

[To see links please register here]

)
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through