Re: Question on constructing an iOS static library for sharing
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