> On Dec 16, 2014, at 15:41 , Kyle Sluder <[email protected]> wrote:
> 
> On Tue, Dec 16, 2014, at 05:36 PM, Rick Mann wrote:
>> In Xcode 6.1.1, how do you add a project to another project, set a target
>> dependency on that project, and link against the resulting .a file?
> 
> Just add the project as if it were any other type of file.
> 
> After you've added it, select the new project item in the file navigator
> and make sure that the reference type and path are set to something
> sensible in the File inspector.
> 
> For simplicity, let's say Project A depends on Project B. It sounds like
> Project B produces a .a file, right?
> 
> If so, you need to specify the dependencies and the build order
> manually. Dependencies are in the Target Dependencies group in the Build
> Phases tab of the project editor. Build order is specified in the Scheme
> editor.


I tried that. I added project B to project A. The File Inspector shows the type 
as "Default - Xcode Project."

I then went to the Target Dependencies Build Phase in Project A's main target. 
I clicked the "+" button. I get a sheet with ONLY Project A and two of the 
targets under Project A (which actually has several targets).

If I instead try to add to "Link Binary With Libraries," I get a similar sheet, 
again without Project B, and "Add Other…" lets me add the project, but that's 
not what I want. BTW, adding the project as a library to link also does not let 
me add the target dependency


-- 
Rick Mann
[email protected]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to