• 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
Question on constructing an iOS static library for sharing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on constructing an iOS static library for sharing


  • Subject: Question on constructing an iOS static library for sharing
  • From: David Hoerl <email@hidden>
  • Date: Tue, 26 Mar 2013 16:40:33 -0400

I read here recently that it's considered proper to not directly link to system frameworks in a static library. I'm trying to figure out how to do that.
There is a popup in the Build Phases "Link Binary with Libraries" for
each library/framework that offers "optional" and "required". Hmm,
"optional" looks good, but trying to find information on this setting
has not been fruitful.
I did find an article that said the way to do this is not link at all
(remove all the libraries), and set a linker flag "-weak_framework" (or
"-weak_library") with a parameter for each framework/library the static
library needs.
What is the proper technique? [And if its not "Optional" then what does
that setting do?"
David

PS: neither searching with "weak_framework" nor "optional" in the Xcode User Guide provides any hints.
_______________________________________________
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: Question on constructing an iOS static library for sharing
      • From: Jens Alfke <email@hidden>
    • Re: Question on constructing an iOS static library for sharing
      • From: Wim Lewis <email@hidden>
    • Re: Question on constructing an iOS static library for sharing
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Re: determine if a CPU is Intel 64-bit
  • Next by Date: Re: Question on constructing an iOS static library for sharing
  • Previous by thread: Re: determine if a CPU is Intel 64-bit
  • Next by thread: Re: Question on constructing an iOS static library for sharing
  • Index(es):
    • Date
    • Thread