title: Using xcodebuild with an iOS Project and the iOS Simulator
body: <p>This <a href="https://stackoverflow.com/questions/12889065/no-architectures-to-compile-for-only-active-arch-yes-active-arch-x86-64-valid">question</a> is related, but does not resolve the specific issue I am having.</p>
  
  <p>I am using Xcode 4.6.3 under OS X 10.7.5.</p>
  
  <p>I simply created the default project for a single view iOS app and made no changes to the project settings. The project, of course, builds in Xcode for the iOS Simulator. However, when I try to use xcodebuild from the command line, xcodebuild fails.</p>
  
  <p>The project name is just: temp</p>
  
  <p>I tried:</p>
  
  <pre><code>xcodebuild -scheme temp -sdk iphonesimulator6.1
  </code></pre>
  
  <p>and that produced the results:</p>
  
  <pre><code>Build settings from command line:
      SDKROOT = iphonesimulator6.1
  
  === BUILD NATIVE TARGET temp OF PROJECT temp WITH CONFIGURATION Debug ===
  Check dependencies
  No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
  
  
  ** BUILD FAILED **
  
  
  The following build commands failed:
      Check dependencies
  (1 failure)
  </code></pre>
  
  <p>Based on the other SO question, I tried:</p>
  
  <pre><code>xcodebuild ARCHS="armv7 armv7s" ONLY_ACTIVE_ARCH=NO -scheme temp -sdk iphonesimulator6.1
  </code></pre>
  
  <p>and got similar results:</p>
  
  <pre><code>Build settings from command line:
      ARCHS = armv7 armv7s
      ONLY_ACTIVE_ARCH = NO
      SDKROOT = iphonesimulator6.1
  
  === BUILD NATIVE TARGET temp OF PROJECT temp WITH CONFIGURATION Debug ===
  Check dependencies
  No architectures to compile for (ARCHS=armv7 armv7s, VALID_ARCHS=i386).
  
  
  ** BUILD FAILED **
  
  
  The following build commands failed:
      Check dependencies
  (1 failure)
  </code></pre>
  
  <p>What xcodebuild command do I need to execute to be able to build with xcodebuild?</p>
  
  <p>Thank you.</p>