Re: Adding a target dependency
Re: Adding a target dependency
- Subject: Re: Adding a target dependency
- From: Nathan Sims <email@hidden>
- Date: Thu, 10 Feb 2011 11:36:34 -0800
On Feb 10, 2011, at 2:35 AM, Christiaan Hofman wrote:
>
> On Feb 10, 2011, at 1:37, Nathan Sims wrote:
>
>> How can I include in my iOS project as a build target a static library built in another project? My project will link with the static library (and its .h file), but not build it. The ways shown in the Xcode documentation "Adding Target Dependencies" don't seem to apply here - I don't have a little plus/minus button, and I can't drag the static library target from its project into the target dependency list of my new project.
>> Thanks
>> - Nate
>
> Add the project for the library to your iOS project, click the little triangle in the Groups & Files table, and drag the icon for the library product that's revealed, either drag it into the Linked Frameworks group, or drag it into the Link Binary With Libraries build phase.
Ah, that's the step I was unclear on. When I tried before, 'Project > Add to project...' was grayed out in the menu bar. I guess I had the wrong window in focus at the time.
Thanks!
- Nate
_______________________________________________
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