title: Xcode: Conditional Build Settings based on architecture (Device (ARM) vs Simulator (i386))
body: <p>I'm building an iPhone app that has to run on both the simulator and the device. However I'm using an externally compiled library that has one version for the simulator and one for the device (different CPU).</p>
  
  <p>How can I do it? I'm coming from Visual C++ so I'm new to Xcode, and I can't find the way to do it.</p>
  
  <p><strong>EDIT, March 2016</strong>: this question was asked on July 2009, almost 6 years ago. Much has changed in Xcode since, but I guess some stuff still holds. The now-accepted answer, for example, wasn't an option in Xcode v3.</p>