Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- scale
- LLVM
- xib
- box2d
- Default-568h.png
- Undefined symbols for architecture armv7s
- release
- CCLOG
- cocos2d-x
- Derived Data
- /var/mobile/Applications
- SBTarget
- ccbi
- Debug
- landscape
- NSHomeDirectory
- storyboard
- Xcode
- .svn
- 태그를 입력해 주세요.
- UIView
- 멀티태스킹
Archives
- Today
- Total
standwally
릴리즈 모드에서 로그 출력 비활성화 방법 본문
cocos2d-x에서 로그를 출력하는 함수는 CCLog입니다.
디버그 모드일 경우 또는 릴리즈 모드일 경우에 따라 로그 출력여부를 결정하기 위해서는
먼저 CCLog 대신에 #define으로 정의된 CCLOG를 사용해야하며,
해당 로그 출력여부를 설정하는 곳은,
안드로이드일 경우에는,
경로, proj.android/jni/Application.mk 파일안에 있다.
-DCOCOS2D_DEBUG=0
이 부분에 값을 설정해주면 된다.
Xcode일 경우에는,
Build Setting에 Preprocessor Macros에서 확인할 수 있다.