Re: Building a framework from a static library
Re: Building a framework from a static library
- Subject: Re: Building a framework from a static library
- From: Quincey Morris <email@hidden>
- Date: Mon, 05 May 2014 10:42:27 -0700
On May 5, 2014, at 10:15 , Jens Alfke <email@hidden> wrote:
I created a framework target, made it dependent on the library target, and added the library to the link-libraries build phase. There are no source files.
But I can’t get the framework to build properly. First Xcode produced a framework bundle with no dylib in it at all. I tried adding an empty source file to the target, but that produced a dylib with no symbols.
This has come up before IIRC. By design (and ignoring Obj-C classes), the linker only links code from a static library if it's referenced. It’s a library, not a “package". This is a Unix thing, not an Xcode thing.
I believe, therefore, that the correct approach is to build the framework from the source files, not from the static library.
|
_______________________________________________
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