Can't run my cocos2D game on my iPhone -


solution:

the image wasn't "real" .png file, had changed extension. downloaded png file , works!

i've done simple game cocos2d , i'm trying run on iphone 5. icon loads , laungh image loads long message errors etc. example can't find file images, though in right place , spelled right.

the game runs in simulator , cocos2d game downloaded runs fine on iphone. have ios 7 beta shouldn't matter since game downloaded works in it.

does have idea be?

thanks in advance!

edit:

here's whole error in console:

cocos2d: cocos2d-iphone v2.1 cocos2d: compiled profiling support: no cocos2d: os version: 7.0 (0x07000000) cocos2d: gl_vendor:   imagination technologies cocos2d: gl_renderer: powervr sgx 543 cocos2d: gl_version:  opengl es 2.0 imgsgx543-95 cocos2d: gl_max_texture_size: 4096 cocos2d: gl_max_texture_units: 8 cocos2d: gl_max_samples: 4 cocos2d: gl supports pvrtc: yes cocos2d: gl supports bgra8888 textures: yes cocos2d: gl supports npot textures: yes cocos2d: gl supports discard_framebuffer: yes cocos2d: gl supports shareable vao: no 2013-08-16 00:28:34.936 brick jumper[3349:60b] cocos2d: animation started frame  interval: 60.00 2013-08-16 00:28:34.950 brick jumper[3349:60b] cocos2d: surface size: 1136x640 2013-08-16 00:28:35.001 brick jumper[3349:60b] -[ccfileutils     fullpathforfilename:resolutiontype:] : cocos2d: warning: file not found: wall.png 2013-08-16 00:28:35.002 brick jumper[3349:60b] cocos2d: couldn't find file:wall.png 2013-08-16 00:28:35.004 brick jumper[3349:60b] *** assertion failure in -[helloworldlayer addchild:], /users/tonymichaelsen/documents/documents/xcode-projects/brick jumper/brick  jumper/libs/cocos2d/ccnode.m:382 2013-08-16 00:28:35.005 brick jumper[3349:60b] *** terminating app due uncaught  exception 'nsinternalinconsistencyexception', reason: 'argument must non-nil' *** first throw call stack: (0x2fa944a3 0x39a926c7 0x2fa94375 0x30451c03 0x54c37 0xc8ab5 0x530ad 0xc86f3 0xc98cf   0xb42b5 0xb2ed9 0x55d15 0x3080b 0xaa0b5 0x303e553d 0x3040e4f5 0xaa84f 0xc7b73 0xab009 0xae3fd  0x320c6b2b 0x31d5b893 0x31d5b457 0x31d89f95 0x32163f07 0x32162fa9 0x3216222f 0x322856a9  0x321621f7 0x32285461 0x32123ee7 0x32123b61 0x32123485 0x32119573 0x32115c15 0x32152edd  0xc817f 0x3211a375 0x32119dbb 0x32112ad5 0x320c4a1b 0x320c3d11 0x320c3af9 0x34543bc5  0x345437af 0x2fa5bfdf 0x2fa5bf7b 0x2fa5a737 0x2f9d0d09 0x2f9d0aeb 0x32111791 0x3210d4ad  0xc799b 0x2b08) libc++abi.dylib: terminating uncaught exception of type nsexception (lldb)  

cocos2d can't find wall.png. guess testing on retina device. if so, in app delegate, change line [sharedfileutils setenablefallbacksuffixes:no]; [sharedfileutils setenablefallbacksuffixes:yes];

alternatively, add higher resolution images (for retina devices) extension listed in app delegate, ie wall-ipadhd.png 4x resolution (in each dimension).


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -