title: xcodebuild archive configuration not work
body: <p>I want to use xcodebuild to archive one scheme with 3 different configurations, but the configuration is never changed with archive action.</p>
  
  <p>Here is the content in .sh</p>
  
  <pre><code>xcodebuild -workspace myApp.xcodeproj/project.xcworkspace -sdk iphoneos -scheme myApp -configuration Distribution clean archive
  
  xcodebuild -workspace myApp.xcodeproj/project.xcworkspace -sdk iphoneos -scheme myApp -configuration Inhouse clean archive
  
  xcodebuild -workspace myApp.xcodeproj/project.xcworkspace -sdk iphoneos -scheme myApp -configuration Release clean archive
  </code></pre>
  
  <p>update: build action works fine</p>
  
  <pre><code>xcodebuild -workspace myApp.xcodeproj/project.xcworkspace -sdk iphoneos -scheme myApp -configuration Distribution clean build
  
  xcodebuild -workspace myApp.xcodeproj/project.xcworkspace -sdk iphoneos -scheme myApp -configuration Inhouse clean build
  
  xcodebuild -workspace myApp.xcodeproj/project.xcworkspace -sdk iphoneos -scheme myApp -configuration Release clean build
  </code></pre>
  
  <p>I am using Xcode4.5/iOS6.0, It works fine with build action(configuration changes each xcodebuild run), any solution?</p>