• 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
Detecting if app is being run from Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting if app is being run from Xcode


  • Subject: Detecting if app is being run from Xcode
  • From: Stuart Malin <email@hidden>
  • Date: Mon, 31 Aug 2009 09:27:03 -0400

I have an app that does some logging that I don't want to do when I initiate app execution from within Xcode. I have done something to achieve this, but am querying the list to see if there is a better technique. I have tried searching the mailing list archive and not found anything.

I have in Xcode defined an environment variable to be set for the Executable, and my app code tests for this using getenv(). Straightforward and simple. Is there some other perhaps better way to do this? Also: is some environment variable that I can count on being set by Xcode itself, and so avoid defining my own.

TIA.
_______________________________________________
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


  • Follow-Ups:
    • Re: Detecting if app is being run from Xcode
      • From: Joar Wingfors <email@hidden>
  • Prev by Date: Preccompiled header compatibility
  • Next by Date: PyObjc Cocoa Applications in Xcode 3.2?
  • Previous by thread: Re: Preccompiled header compatibility
  • Next by thread: Re: Detecting if app is being run from Xcode
  • Index(es):
    • Date
    • Thread