• 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: Building a framework from a static library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Building a framework from a static library (From: Jens Alfke <email@hidden>)

  • Prev by Date: Building a framework from a static library
  • Next by Date: Re: Building a framework from a static library
  • Previous by thread: Building a framework from a static library
  • Next by thread: Re: Building a framework from a static library
  • Index(es):
    • Date
    • Thread