2015-08-22

I have a game source code which previously has been submitted to app store. for now i am going to resubmit it with better performance but have been faced weird issue. there are already .csb files for each scene in the source code. i have googled and understood how i have to use cocos studio 2.0. for testing purpose i opened old cocos studio project file (.css) and republished it with no changes. and then copy from res folder and paste it into resource folder. but when the xcode tried to load .csb file it crashed.

the source code works fine with old .csb file. but not worked with new one.

xcode gave me no correct reason. I can see only some setting values in debugger view like this.

when i tried with new .csb which i've republished

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

suffix = csb

textureSize = 7

no more

when i tried with old .csb from old source code

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

suffix = csb

textureSize = 0

many more...

as you can see, with new one, the app crashed after printed textureSize.

i am using cocos2dx v3.3 and cocos studio v2.2.1
could you please explain about how should i avoid this issue?

many thanks.

Show more