title: xcodebuild (version 4.6.3) -configuration argument does not override the buildConfiguration attribute in <target>.xcscheme
body: <p>This may have been the case in earlier versions of Xcode, but I am not sure. I noticed that archiving using a command line (like a script via jenkins would do) DOES NOT allow me to override the configuration using the xcodebuild argument option.</p>
  
  <p>Example: </p>
  
  <p>I would like to produce an archive of "TestScheme" using a workspace file "testscheme.xcworkspace"</p>
  
  <p>Here is the relevant piece of my TestScheme.xcscheme</p>
  
  <pre><code>&lt;ArchiveAction      
  buildConfiguration = "Ad Hoc"
  revealArchiveInOrganizer = "YES"&gt;
  &lt;/ArchiveAction&gt;
  </code></pre>
  
  <p>Here is what I run at the command line to build my archive:</p>
  
  <pre><code>xcodebuild -scheme TestScheme -workspace testscheme.xcworkspace -configuration someotherconfig archive
  </code></pre>
  
  <p>What is produced is an archive built with the "Ad Hoc" configuration. I poured over my xcscheme file, xcworkspace dir and the like and I can't see why the "-configuration" command line argument has no effect whatsoever.</p>