Re: Framework with missing symbols halts programs
Re: Framework with missing symbols halts programs
- Subject: Re: Framework with missing symbols halts programs
- From: Chris Espinosa <email@hidden>
- Date: Mon, 10 May 2004 08:55:22 -0700
On May 10, 2004, at 6:42 AM, email@hidden wrote:
Here's my problem -- I've included a framework that sometimes exists
on people's machines and sometimes exists in an earlier version that
is missing some symbols I use. I have no problem checking for this --
but OS X never calls my app, it just halts execution when it can't
find the symbols.
If there a flag I can twiddle somewhere in XCode that can tell it to
give a slightly better error on launch?
Not reallyif you link with a shared library or framework, your code
can't be loaded if the framework is missing.
If you control the framework you could possibly rebuild it to be weak,
but that won't help copies already deployed in the field.
The general solution for this is to not link with the framework, but to
load it dynamically after you launch, then get its entry points and
call the framework through those entry points.
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.