• 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: Adding a target dependency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Adding a target dependency (From: Nathan Sims <email@hidden>)
 >Re: Adding a target dependency (From: Christiaan Hofman <email@hidden>)

  • Prev by Date: Re: C++ Templates compilation problem
  • Next by Date: Re: Very long "Check Dependencies" phase
  • Previous by thread: Re: Adding a target dependency
  • Next by thread: C++ Templates compilation problem
  • Index(es):
    • Date
    • Thread