cocos2d/cocos2d-iphone — pull request #244 by colinmccune (2012-10-10 16:00:57+00:00)
Title: Xcode 4.5 / iOS 6 Build Settings

Minor changes to the cocos2d project build settings to provide better support with Xcode 4.5 and compiling as a static libraries. These changes already exists in the develop-v2 branch.

1. Since Xcode 4.5 / iOS6 no longer supports armv6 the cocos2d project needs to be updated so that it doesn't try to build a armv6 version. I've remove the hard coded armv6 from the ARCHS setting and replaced it with the ARCHS_STANDARD_32_BIT value which then allows your version of Xcode to decide what ARCS should be supported. Eg: Xcode 4.5 will use armv7, armv7s and Xcode < 4.5 will use armv7 and I'm assuming even older version of Xcode will list armv6 and armv7.

2. Changed the ONLY_ACTIVE_ARCH flag from YES to NO for Debug builds. This prevents linker errors when compiling cocos2d as a static lib and doing a build against "iOS Device". Without this change only the armv7 code is compiled into the static library which will throw errors when you link it against your armv7s compiled code ("Undefined symbols for architecture armv7s"). Release builds already had this flag set to No.