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