• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamically linking a framework...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Dynamically linking a framework...
      • From: Loren Ryter <email@hidden>
References: 
 >Dynamically linking a framework... (From: Loren Ryter <email@hidden>)
 >Re: Dynamically linking a framework... (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: Dynamically linking a framework...
  • Next by Date: Re: Grabbing a subversion repo for the first time with Xcode
  • Previous by thread: Re: Dynamically linking a framework...
  • Next by thread: Re: Dynamically linking a framework...
  • Index(es):
    • Date
    • Thread