title: Unexpected type name 'BOOL': expected expression in iOS SDK 6.1 (Device)
body: <p>iOS application for Simulator builds fine. However, when I try to build for device, compilation fails on @YES and @NO literals. We use iOS 6.1 as build SDK, but have 5.1 in reserve. iPad's OS version is 6.1.3. Is there anything I'm missing what could cause this to fail?</p>
  
  <pre><code>Fragment from build log: /Applications/Xcode-4.6.app/Contents/Developer/Platforms/
      iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/objc/objc.h:50:26
      : note: expanded from macro 'YES'
  #define YES             (BOOL)1
  </code></pre>
  
  <p>Is there any reason why 5.1 SDK is picked up in the build?</p>
  
  <p>Deployment target is 5.0, but changing it to 6.1 doesn't fix the issue. Xcode version: 4.6 (4H127)</p>
  
  <p>Yes, I know that going with @(YES) and @(NO) instead would fix this, but this is so 5.0 solution.</p>