Re: Adding (static) libraries to target
Re: Adding (static) libraries to target
- Subject: Re: Adding (static) libraries to target
- From: Justin Walker <email@hidden>
- Date: Tue, 10 May 2005 13:16:36 -0700
Thanks, Fritz,
On May 10, 2005, at 12:51, Fritz Anderson wrote:
On 10 May 2005, at 2:10 PM, Justin Walker wrote:
I would like to create a static library within the project to contain
those files, so that the other programs can consist of one file, plus
libraries.
I can create the library in the project and build it, but I cannot
seem to persuade Xcode to add this to a target (newly created). I
create the new target, successfully add the primary source file and a
few other libraries, but when I try to "add existing frameworks...",
and navigate to the built library, it is greyed out. I haven't found
an alternate way to add the library.
[snip]
2. Open the product's target info (double click the product's icon
inside the Targets group) and in the General pane, press the plus
button at the bottom of the Direct Dependencies list. Select the
library; press Add Target. Now changing the library will force a
rebuild of the product.
I got this far with more or less random mousing and clicking :-} (life
ain't easy for the GUI-challenged :-}).
3. The library appears in a "Products" group in the Groups & Files
list just above the Targets group. Drag its icon from there to just
below the product's icon in the Targets group, which should expand to
show the build phases. Drop the icon into the "Link Binary With
Libraries" phase. Now it'll link.
This was the part I was missing; never thought to look in the Products
list.
It all "Just Works" when you "Just Know How" !
Thanks again for the help.
Now, if I could just resolve the lingering ZeroLink issue; it would be
great to just "fix and go"...
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
It's not whether you win or lose...
It's whether *I* win or lose.
--------
_______________________________________________
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