XCode 5.1 force 32 bit compilation for a Cocos2d-iphone v3 project

ε祈祈猫儿з 提交于 2019-12-09 16:55:44

问题


I am using SpriteBuilderwith Cocos2d-iphone v3.

Ever since updating to XCode 5.1 my application crashes when I use CCButton actions defined directly in SpriteBuilder. This seems to be the cause

This is most likely a cast or pointer conversion, going bad on 64 bit.

as pointed out by @birkemose at the Cocos2d forums

How can I force XCode 5.1 to compile my project in 32 bit even for my 64 bit devices?

Update: Fix by updating Cocos2d to RC4

xCode 5.1 build crashes - SpriteBuilder


回答1:


In your project's build settings, change Architectures from "Standard architectures" to "armv7, armv7s" (without the quotes).

Or as matt pointed out, you can use $(ARCHS_STANDARD_32_BIT) instead, which is arguably the better way to go. Thanks matt!



来源:https://stackoverflow.com/questions/22363266/xcode-5-1-force-32-bit-compilation-for-a-cocos2d-iphone-v3-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!