Can't build in 64bit device and simulator - Cocos2dx 2.2.3, XCode 5.1


I always get this error
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
Would you please let me know how to fix it? Or I have to downgrade XCode to 5.0??

Best regards


v2.2.3 doesn’t support Xcode 5.1 to build arm64 target. You can build 32bit instead. Only iphone5s is 64 bit.



you can go to architectures in build settings for cocos project and just set arm7 and arm7s (no arm64 no i386),this will create binaries for every iphone and ipad, 32 bit only.

As stated, you cannot build 64 binaries with 2.2.3. this just means iphone5s will run 32 bit of your game, even if it supports 64 bit apps.

please correct me if I am wrong :slight_smile:


Yep, you are right.

And v3.0rc0 supports arm64. If you want create a game only for iPhone5s, i think you can use v3.0rc0.