Framework and bundle problem
Hello!
I thought I'd begin my stay here at the board with a question regarding using own frameworks in an application bundle, because it's not working.
When the program starts at someone else's computer, it tries to link it with a framework in /Users/peter/Library/Frameworks/, which obviously doesn't exist.
I have dragged my frameworks to the "External frameworks and libraries" group in my Carbon C++ Application project and I have a copy file build phase which copies all the frameworks to the Frameworks folder in the bundle.
The error on the user's computer is this:
dyld: Library not loaded: /Users/peter/Library/Frameworks/the framework
Reason: image not found
I thought I'd begin my stay here at the board with a question regarding using own frameworks in an application bundle, because it's not working.
When the program starts at someone else's computer, it tries to link it with a framework in /Users/peter/Library/Frameworks/, which obviously doesn't exist.
I have dragged my frameworks to the "External frameworks and libraries" group in my Carbon C++ Application project and I have a copy file build phase which copies all the frameworks to the Frameworks folder in the bundle.
The error on the user's computer is this:
dyld: Library not loaded: /Users/peter/Library/Frameworks/the framework
Reason: image not found
use install_name_tool to set the load path
somthing like
install_name_tool -id @executable_path/../Frameworks/path/to/framework/binary
somthing like
install_name_tool -id @executable_path/../Frameworks/path/to/framework/binary
Sir, e^iπ + 1 = 0, hence God exists; reply!
Make sure your Installation Path/Directory is set properly.
Use install_name_tool, or if you have the Xcode project for the framework, open it an go to Target Settings.
Recently, I had to add a trailing slash (/) to the end of a framework's current Installation Path in order to get it to work - that may or may not be necessary.
Use install_name_tool, or if you have the Xcode project for the framework, open it an go to Target Settings.
Recently, I had to add a trailing slash (/) to the end of a framework's current Installation Path in order to get it to work - that may or may not be necessary.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Problem with my own .framework? | fungos | 8 | 3,289 |
Mar 25, 2010 11:44 AM Last Post: fungos |
|
| Automatic creation of app bundle in dmg installer | peterp | 7 | 4,278 |
Feb 24, 2010 01:22 PM Last Post: cmiller |
|
| Framework Problem | silver9172 | 4 | 3,129 |
Dec 31, 2008 01:29 PM Last Post: Bachus |
|
| Tutorial: Make an Mac OSX App Bundle for your Java Application | AndyKorth | 0 | 2,819 |
Dec 21, 2008 09:30 PM Last Post: AndyKorth |
|
| from .dll to .bundle | wyrmmage | 5 | 4,342 |
Feb 23, 2007 04:11 PM Last Post: Duane |
|

