• 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: Creating command-line target in existing Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Creating command-line target in existing Cocoa App (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: colorizing .inl files
  • Next by Date: Re: Occasional failure to find system headers
  • Previous by thread: Creating command-line target in existing Cocoa App
  • Next by thread: Newbie questions on cross project source level debugging
  • Index(es):
    • Date
    • Thread