XCode 5.1强制进行Cocos2d-iphone v3项目的32位编译 [英] XCode 5.1 force 32 bit compilation for a Cocos2d-iphone v3 project
问题描述
我在Cocos2d-iphone v3上使用 SpriteBuilder
。
I am using SpriteBuilder
with Cocos2d-iphone v3.
自从更新到XCode 5.1后,当我使用直接在 CCButton
操作时,我的应用程序崩溃了> SpriteBuilder 。这似乎是原因
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
这很可能是转换或指针转换,在64位上变坏。
This is most likely a cast or pointer conversion, going bad on 64 bit.
正如@birkemose在 Cocos2d论坛
as pointed out by @birkemose at the Cocos2d forums
如何强制XCode 5.1编译我的项目 32位即使是我的64位设备?
How can I force XCode 5.1 to compile my project in 32 bit even for my 64 bit devices?
xCode 5.1 build crashes - SpriteBuilder
推荐答案
在项目的构建设置中,将体系结构从标准体系结构更改为armv7,armv7s(不带引号)。
In your project's build settings, change Architectures from "Standard architectures" to "armv7, armv7s" (without the quotes).
或者像matt指出的那样,你可以使用$(ARCHS_STANDARD_32_BIT)代替,这可以说是更好的方法去。非常感谢!
Or as matt pointed out, you can use $(ARCHS_STANDARD_32_BIT) instead, which is arguably the better way to go. Thanks matt!
这篇关于XCode 5.1强制进行Cocos2d-iphone v3项目的32位编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!