Bug #3857

By dumganhar Posted 2014-01-27 02:06

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 `DEBUG`marco 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__

Back