Incorrect Environment Variables?

Posts: 241
Joined: 2008.07
Post: #1
Hi, I was hoping someone could help me figure out why


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
Posts: 241
Joined: 2008.07
Post: #2
Update: I fixed the issue.


should be


The first one was taken out of a shell script.
Quote this message in a reply
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
All too often, art is simply the loss of practicality.
Quote this message in a reply
⌘-R in Chief
Posts: 1,277
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
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 4,502 Feb 8, 2012 12:55 PM
Last Post: gorkem
  Best cross platform dev environment? arutau 8 9,019 Feb 26, 2006 01:32 PM
Last Post: DesertPenguin
  Xcode debugger and C++ global/file scope variables. WhatMeWorry 2 6,684 Sep 9, 2005 12:34 AM
Last Post: WhatMeWorry
  What is your game development environment? (June 2005) Carlos Camacho 38 27,872 Sep 5, 2005 03:45 PM
Last Post: akb825
  What's your game development environment? XxtraLarGe 17 16,140 Jan 9, 2004 09:18 AM
Last Post: PowerMacX