• 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: Embedding resources in Static Cocoa Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding resources in Static Cocoa Library


  • Subject: Re: Embedding resources in Static Cocoa Library
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 05 Oct 2012 23:08:53 -0700

On Oct 5, 2012, at 22:18 , Jerry Krinock <email@hidden> wrote:

> I know you can embed an Info.plist in a command-line tool, by specifying it in the Info.plist Build Setting.  But the only non-executable thing I've ever seen embedded in a static library is a code signature.

A static library does not survive as such in an executable file. Unlike a framework, a static library is just a collection of unlinked object code. The linking process incorporates it into whatever is being linked.

Thus the correct place for resource used by code in a static library is in the bundle of whatever it's linked into.

If you add the static library itself to the project, you'd have to add its resources files manually. If you add the static library's own Xcode project to a workspace, I'd assume you normally would just specify the target inclusion for the resource files.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Static Cocoa Library (From: koko <email@hidden>)
 >Re: Embedding resources in Static Cocoa Library (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Embedding resources in Static Cocoa Library
  • Next by Date: Re: NSViewController
  • Previous by thread: Re: Embedding resources in Static Cocoa Library
  • Next by thread: Re: Static Cocoa Library
  • Index(es):
    • Date
    • Thread