Incorrect Environment Variables?

Member
Posts: 241
Joined: 2008.07
Post: #1
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.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #2
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.
Quote this message in a reply
Moderator
Posts: 387
Joined: 2002.08
Post: #3
Speaking of which...

Where is a good list of all the environment variables?

KB Productions, Car Care for iPhone/iPod Touch
@karlbecker_com
All too often, art is simply the loss of practicality.
Quote this message in a reply
⌘-R in Chief
Posts: 1,265
Joined: 2002.05
Post: #4
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.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Mobile development environment Gideros Studio gorkem 0 3,229 Feb 8, 2012 12:55 PM
Last Post: gorkem
  Best cross platform dev environment? arutau 8 5,523 Feb 26, 2006 01:32 PM
Last Post: DesertPenguin
  Xcode debugger and C++ global/file scope variables. WhatMeWorry 2 5,097 Sep 9, 2005 12:34 AM
Last Post: WhatMeWorry
  What is your game development environment? (June 2005) Carlos Camacho 38 18,368 Sep 5, 2005 03:45 PM
Last Post: akb825
  What's your game development environment? XxtraLarGe 17 10,610 Jan 9, 2004 09:18 AM
Last Post: PowerMacX