iDevGames Forums

Full Version: Incorrect Environment Variables?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I was hoping someone could help me figure out why

Code:
$(EFFECTIVE_PLATFORM_NAME)

always translates to "-iphoneos", regardless of whether I'm running in the simulator or on the iOS device.

Perhaps I'm using the wrong environment variable. What I want is for it to be "-iphoneos" when I'm running it on the device and "-iphonesimulator" when on the simulator.

Many thanks in advance.
Update: I fixed the issue.

Code:
$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

should be

Code:
$CONFIGURATION$EFFECTIVE_PLATFORM_NAME

The first one was taken out of a shell script.
Speaking of which...

Where is a good list of all the environment variables?
Do a clean build and look at the build log. Other than that, if you search for it, many of them are probably in the documentation.
There is documentation, but there's nothing like seeing the actual values. Xcode used to print all of them before running a shell script build phase.
Reference URL's