Re: Project with multiple targets problems
Re: Project with multiple targets problems
- Subject: Re: Project with multiple targets problems
- From: Hes Nikke <email@hidden>
- Date: Sun, 11 Jan 2004 12:44:02 -0800
twas 1/11/04 8:47 AM, when Shawn Erickson at email@hidden treated us
all with:
> twas 1/11/04 7:37 AM, when Manfred Lippert at email@hidden treated us all
> with:
>
>> Hi,
>>
>> I am developing an application that consists of actually TWO
>> applications:
>> The main application if the "GUI" application. The second application
>> is a "worker" application without user interface and it is packaged
>> into the bundle of the GUI application. Both apps are Cocoa.
>>
>> So I created two targets in Xcode: one for the GUI application and one
>> for the worker application. In the GUI app's target I created a "Copy
>> Files" build phase that copies the working app into the GUI app's
>> bundle.
All of the above applies to me as well, the only difference is that I'm
developing a framework and have a (single line!) driver application in the
same project. :)
>>
>> (At runtime, the GUI app is starting the worker app over NSWorkspace
>> etc.)
>>
>> Now I have a couple of questions:
>>
>> - Can targets in Xcode "depend" on each other? Currently I always have
>> to switch to the worker target, build that, and then switch to the GUI
>> target and build that, to have an actual version of my "complete"
>> bundled application. Is there a way to automate this? So that my GUI
>> target "depends" on the worker target, and when I try to build the GUI
>> target that Xcode automatically first builds the worker target?
>>
> In Xcode select the GUI target (under the "Targets" grouup) and hit
> command-i. In the "General" tab of the resulting info window notice the
> "Direct Dependencies" section. Down at the bottom left is a plus
> button, click that an add in the other project(s).
Great, that was my biggest concern with my framework! The answers to the
rest should just be icing on the cake.
>> - Debugging output (NSLog) of my worker target is not routed to Xcode's
>> console when I run my application from Xcode. Only output from the GUI
>> app is seen in Xcode's console window. I always have to look in the
>> standard console (/Library/Logs/Console/user/console.log) for the
>> output of my worker app. Is there a way to "fix" that?
>>
>> - Generally - how can I debug this "double" application with Xcode (and
>> gdb)?!? I only can set breakpoints in the GUI application, but not in
>> the worker application. Is it possible to "tell" the debugger that my
>> app launches another app and identify that with the second target?
>>
>> Thanks,
>> Mani
Nate Friedman
--
Everyone knows that 2/3's of PBS is BS
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.