I cant seem to run my app in 'release' mode on device because it errors 'EXC_BAD_INSTRUCTION', but it works when in 'Debug' mode on device? I'm running iPhone OS 4 and using the Xcode that supports OS 4.
Bug with 0.99.2
(5 posts) (3 voices)-
Posted 1 year ago #
-
Did you receive a warning when you were compiling it ? probably you are using ARMv7, but you need to use ARMv6.
SDK 4.0 reversed the behavior of "optimized binary". Please, read the SDK 4.0 release notes for further info.
Posted 1 year ago # -
Yeh I changed it to ARMv6, it wont even install on the device when using ARMv7.
Posted 1 year ago # -
I'm trying to build a universal binary and I'm getting the same issue. How do you change the architecture to only ARMv6? Will this mean I can't build a universal binary? The only related thing I saw in the release notes for the 4.0 SDK is that the new default is Standard: armv6 + armv7.
I also saw something about EXC_BAD_ACCESS in the debugger notes, but the error we're seeing is EXC_BAD_INSTRUCTION. Here are a couple of screenshots:
http://cl.ly/9a098bbdf66a67181c2e
http://cl.ly/7ff9c3388279b5a5fe9f
There were no compiler warnings. Any ideas?
Thanks a bunch!
Posted 1 year ago # -
JavaWizKid: in case you need to build for armv6 + armv7 this did the trick for me:
http://www.cocos2d-iphone.org/forum/topic/6973#post-42132
(Just update your cocos2d lib architectures too and that should do it.)
Posted 1 year ago #
Reply
You must log in to post.