We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Mac and iOS Simulator should also use SpiderMonkey which was built in RELEASE mode.
Mac and iOS Simulator should also use SpiderMonkey which was built in RELEASE mode.
Bug #3857 [Closed]
Fixed at https://github.com/cocos2d/cocos2d-x/pull/5228.
This issue will cause crash in issue #3853.
Reason¶
We used fat library for iOS, it contains
i386
,armv7
,armv7s
architecture. But we use the same header files.The head file may contains
DEBUG
macro in some methods or some classes. It may lead to weird crash.How to FIX¶
DEBUG
marco in Project Settings.RELEASE
mode.If you wish to debug Spidermonkey, you have to know how to build debug version of SpiderMonkey and how to set DEBUG macro in Project Setting!
BUT DON'T DEFINE
DEBUG
macro IN OUR PROJECTSCocos2d-x is using
COCOS2D_DEBUG
for debugging