Project with multiple targets problems
Project with multiple targets problems
- Subject: Project with multiple targets problems
- From: Manfred Lippert <email@hidden>
- Date: Sun, 11 Jan 2004 16:37:15 +0100
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.
(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?
- 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
_______________________________________________
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.