Projects > cpp > Issues > Bug #3857

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Mac and iOS Simulator should also use SpiderMonkey which was built in RELEASE mode.

Bug #3857 [Closed]
dumganhar 2014-01-26 06:17 . Updated almost 10 years ago

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

  • Undefine all DEBUGmarco in Project Settings.
  • Build all libraries in 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 PROJECTS

Cocos2d-x is using COCOS2D_DEBUG for debugging

dumganhar 2014-01-26 06:18
  • Description updated (diff)
dumganhar 2014-01-27 02:06
  • Description updated (diff)
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-01-26
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

0%

Category:js
Target version:3.0-beta2