Re: App linked on Leopard not starting on Tiger
Re: App linked on Leopard not starting on Tiger
- Subject: Re: App linked on Leopard not starting on Tiger
- From: Ken Thomases <email@hidden>
- Date: Fri, 9 Oct 2009 03:58:52 -0500
On Oct 9, 2009, at 3:30 AM, Oliver Demetz wrote:
Oliver Demetz schrieb:
I have developed an app under Leopard, which successfully uses
"libsglmac-2.29.0.0.dylib".
Ok. After building the app bundle I always execute the following
commands:
mkdir -p hs.app/Contents/Frameworks
cp ../maclibs/libsglmac-2.29.0.0.dylib hs.app/Contents/Frameworks/
install_name_tool -id @executable_path/../Frameworks/
libsglmac-2.29.0.0.dylib hs.app/Contents/Frameworks/
libsglmac-2.29.0.0.dylib
install_name_tool -change libsglmac-2.29.0.0.dylib.i386
@executable_path/../Frameworks/libsglmac-2.29.0.0.dylib hs.app/
Contents/MacOS/hs
After these commands, I can doubleclick the app-bundle in finder
and my app starts as expected (on my Macbook dev-machine running Os
X 10.5.8)
OK.
Now I bought a second older iBook G4 running Tiger (10.4.2) and
copied this app-bundle to it.
But the app does not start there saying
dyld: Library not loaded libsglmac-2.29.0.0
Reason Image not found
As an info: Both my app and also the libsglmac contain universal
binaries:
> file libsglmac-2.29.0.0.dylib
libsglmac-2.29.0.0.dylib: Mach-O universal binary with 2
architectures
libsglmac-2.29.0.0.dylib (for architecture i386): Mach-O
dynamically linked shared library i386
libsglmac-2.29.0.0.dylib (for architecture ppc): Mach-O
dynamically linked shared library ppc
First, are you sure you've caught all references to this library from
binaries in your app? Apply "otool -L" to all of the binaries in your
app bundle.
Are you sure your app works generally on Leopard, or is it only
working because it's on your development machine?
You might also see if any of the diagnostic environment variables
listed in the dyld(1) man page prints something helpful. You would
need to set those variables in a shell and then execute the main
executable of your app directly.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden