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

Re: Question on constructing an iOS static library for sharing


  • Subject: Re: Question on constructing an iOS static library for sharing
  • From: Alexander von Below <email@hidden>
  • Date: Tue, 26 Mar 2013 21:54:09 +0100

Hello David,

I can not say anything on if you should or should not link system frameworks in static libs.

But "optional" is weak linking. Nothing else.

Hope that helps

Alex

Am 26.03.2013 um 21:40 schrieb David Hoerl <email@hidden>:

> 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


 _______________________________________________
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

References: 
 >Question on constructing an iOS static library for sharing (From: David Hoerl <email@hidden>)

  • Prev by Date: Question on constructing an iOS static library for sharing
  • Next by Date: Re: Question on constructing an iOS static library for sharing
  • Previous by thread: Question on constructing an iOS static library for sharing
  • Next by thread: Re: Question on constructing an iOS static library for sharing
  • Index(es):
    • Date
    • Thread