Re: Creating command-line target in existing Cocoa App
Re: Creating command-line target in existing Cocoa App
- Subject: Re: Creating command-line target in existing Cocoa App
- From: Chris Espinosa <email@hidden>
- Date: Wed, 21 May 2008 10:03:55 -0700
On May 20, 2008, at 11:37 AM, Jeff LaMarche wrote:
I've created a new target in an application that was originally
created using the Cocoa Application template in Xcode 3. This new
target is for a utility program that will not ship with the
application, but uses a lot of the code. In addition to this target,
I've also got a Unit Testing target.
Whenever I launch this new target, it actually launches my Cocoa
program, and I can't figure out why - the main.m file from my Cocoa
target is not included in this target. Is it reading from
Info.plist, perhaps? Any thoughts on what steps I might have missed
in this process would be greatly appreciated.
You don't launch targets. You launch executables.
Project > Set Active Executable controls what's launched when you Run,
Debug, or Go. Make sure that's set correctly.
Chris
_______________________________________________
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