Re: Dynamically linking a framework...
Re: Dynamically linking a framework...
- Subject: Re: Dynamically linking a framework...
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 13 Jun 2008 09:09:55 +0200
Le 13 juin 08 à 05:49, Peter O'Gorman a écrit :
Loren Ryter wrote:
Hello,
I'm newly subscribed to this group and want to ask a question
that's sort of
been raised before but that I haven't been able to solve.
I want to build a project in Xcode 3.0 on Leopard which would
include a
framework (Calendar Store) that is only available on Leopard.
However, the
application must be able to launch on Tiger. Obviously calls to the
Calendar Store API would not be done if the system was Tiger.
Seems like you should be using -weak_framework to link the framework
then. They dynamic linker will not load it if it is not there. See the
man page for ld for more information.
Peter
The current Xcode version does not have a way to specify that a
framework has to be weak linked, so the way to do it is to not include
the Calendar Framework in your taget Linker step, and add the "-
weak_framework Calendar" in linker flags.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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