title: Accessing user defined variables passed in from xcodebuild command line
body: <p>I am running my <code>xctests</code> using xcodebuild and need to pass in some <code>environment variables</code>.
  In the example below <code>ACCOUNT_ID</code> and <code>HOST_URL</code>.</p>
  
  <p>I tried passing in the variables as both environment variable and accessing them from the test using <code>getenv ("ACCOUNT_ID")</code>
  <code>xcodebuild -project CalculatorTestClient.xcodeproj -scheme CalculatorTestClient -destination '%s' ACCOUNT_ID=%s HOST_URL=%s test"</code></p>
  
  <p>And passing them in as <code>user defaults</code> and accessing them using <code>[[NSUserDefaults standardUserDefaults] valueForKey:@"HOST_URL"];</code>
  <code>xcodebuild -project CalculatorTestClient.xcodeproj -scheme CalculatorTestClient -destination '%s' ACCOUNT_ID=%s HOST_URL=%s test"</code></p>
  
  <p>Neither approach worked for me.
  What is easiest way to pass user defined variables from commandline?</p>