Re: Embedding resources in Static Cocoa Library
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