Framework and bundle problem

Post: #1
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
Quote this message in a reply
Posts: 1,403
Joined: 2005.07
Post: #2
use install_name_tool to set the load path
somthing like

install_name_tool -id @executable_path/../Frameworks/path/to/framework/binary

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Posts: 148
Joined: 2003.03
Post: #3
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Problem with my own .framework? fungos 8 6,503 Mar 25, 2010 11:44 AM
Last Post: fungos
  Automatic creation of app bundle in dmg installer peterp 7 7,502 Feb 24, 2010 01:22 PM
Last Post: mysteriouspants
  Framework Problem silver9172 4 4,928 Dec 31, 2008 01:29 PM
Last Post: Bachus
  Tutorial: Make an Mac OSX App Bundle for your Java Application AndyKorth 0 4,852 Dec 21, 2008 09:30 PM
Last Post: AndyKorth
  from .dll to .bundle wyrmmage 5 7,401 Feb 23, 2007 04:11 PM
Last Post: Duane