Detecting if app is being run from Xcode
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