Hi Walzer Wang,
I posted about the message “ERROR: 5 in device 25” and the black-screen then comes on marmalade forums.
You can refer this page- http://www.madewithmarmalade.com/node/3873
They said the cococs2-d might be trying to initialize the accelerometer. (I haven’t code for that, but cocos2d-x might be initializing internally.I really don’t know.)
and marmalde sdk osX simulator doesn’t support accelerometer. Thats the reason , you are getting error on mac version.
I tried my code on both xcode and visual c*+ 2010 express and this error comes only in xcode. Code run fine on visual c*+. May be marmalade guys got the correct reason for error?
Hope this info will be useful for you.