title: Can't build iOS/iPhone app as anything other than i386
body: <p>I am completely new to the iOS/iPhone/XCode world, so if you guess is between something rather complex and something so simple that <em>everyone</em> should know, I'd go with the simple answer.  :-)</p>
  
  <p>Okay, so I have inherited an iPhone project that we had outsourced to another company. My only objective right now is to be able to build the dang thing. I set up XCode 4.2 and installed the proper SDKs. I loaded up the project and everything seems good to this point. However, when I build, I get errors from what I believe to be the linking stage of the build. I'm not entirely sure because the statuses change quickly when building. The error I get is the following:</p>
  
  <p><img src="https://i.stack.imgur.com/HC4MZ.png" alt="Error from XCode build"></p>
  
  <p>From what I have been able to find online, it seems that one of the libraries I am using was not compiled for the i386 platform. To start, this doesn't make sense to me because the libraries that I am using (where these errors are coming from) are currently included as sub-projects and produce <strong>.a</strong> files which I thought were arch-independent (am I wrong here??). Also, I can't find anywhere in the project where I've instructed XCode to build to an i386 architecture. This is what I've done so far:</p>
  
  <ul>
  <li>Made sure that the file in which these errors arose was included into the "Compile Sources" section of the Build Phase tab (the .m file)</li>
  <li>Set my architectures to <strong>armv6</strong> and <strong>armv7</strong> and set the <strong>Build Active Architecture Only</strong> to <em>no</em>. (See images below)</li>
  </ul>
  
  <p><strong>Main Project Config</strong>
  <img src="https://i.stack.imgur.com/QfWtV.png" alt="main project build configuration"></p>
  
  <p><strong>Sub-Project Config</strong>
  <img src="https://i.stack.imgur.com/5wyCU.png" alt="sub project config"></p>
  
  <p><br /><br /></p>
  
  <p>Event when I build using the release configuration, I still get this error and I'm not sure why. Everything that I am looking at in my build config seems to indicate that I should be building everything in an <em>arm</em> architecture. </p>