Bali
Bali

Reputation: 53

Cocos 2d , App working on my all devices but when submitting to apple store they send me black screen appearance just with background sound

2014-03-20 20:04:14.370 Diving Merlin[3199:60b] cocos2d: cocos2d v1.0.1
2014-03-20 20:04:14.372 Diving Merlin[3199:60b] cocos2d: Using Director Type:CCDirectorDisplayLink
2014-03-20 20:04:14.401 Diving Merlin[3199:60b] cocos2d: OS version: 7.1 (0x07010000)
2014-03-20 20:04:14.402 Diving Merlin[3199:60b] cocos2d: GL_VENDOR:   Apple Computer, Inc.
2014-03-20 20:04:14.402 Diving Merlin[3199:60b] cocos2d: GL_RENDERER: Apple Software Renderer
2014-03-20 20:04:14.403 Diving Merlin[3199:60b] cocos2d: GL_VERSION:  OpenGL ES-CM 1.1 APPLE-9.4.3
2014-03-20 20:04:14.403 Diving Merlin[3199:60b] cocos2d: GL_MAX_TEXTURE_SIZE: 4096
2014-03-20 20:04:14.404 Diving Merlin[3199:60b] cocos2d: GL_MAX_MODELVIEW_STACK_DEPTH: 16
2014-03-20 20:04:14.404 Diving Merlin[3199:60b] cocos2d: GL_MAX_SAMPLES: 4
2014-03-20 20:04:14.405 Diving Merlin[3199:60b] cocos2d: GL supports PVRTC: YES
2014-03-20 20:04:14.405 Diving Merlin[3199:60b] cocos2d: GL supports BGRA8888 textures: YES
2014-03-20 20:04:14.405 Diving Merlin[3199:60b] cocos2d: GL supports NPOT textures: YES
2014-03-20 20:04:14.406 Diving Merlin[3199:60b] cocos2d: GL supports discard_framebuffer: YES
2014-03-20 20:04:14.406 Diving Merlin[3199:60b] cocos2d: compiled with NPOT support: NO
2014-03-20 20:04:14.407 Diving Merlin[3199:60b] cocos2d: compiled with VBO support in TextureAtlas : YES
2014-03-20 20:04:14.407 Diving Merlin[3199:60b] cocos2d: compiled with Affine Matrix transformation in CCNode : YES
2014-03-20 20:04:14.408 Diving Merlin[3199:60b] cocos2d: compiled with Profiling Support: NO
2014-03-20 20:04:14.410 Diving Merlin[3199:60b] cocos2d: CCTexture2D. Can't create Texture. UIImage is nil
2014-03-20 20:04:14.411 Diving Merlin[3199:60b] cocos2d: Couldn't add image:fps_images.png in CCTextureCache
2014-03-20 20:04:14.411 Diving Merlin[3199:60b] cocos2d: Could not open file: fps_images.png
2014-03-20 20:04:14.412 Diving Merlin[3199:60b] cocos2d: Could not initialize CCAtlasNode. Invalid Texture
2014-03-20 20:04:14.413 Diving Merlin[3199:60b] cocos2d: CCFileUtils: Warning HD file not found: [email protected]
2014-03-20 20:04:14.481 Diving Merlin[3199:60b] cocos2d: Frame interval: 1
2014-03-20 20:04:14.482 Diving Merlin[3199:60b] Application windows are expected to have a root view controller at the end of application launch
2014-03-20 20:04:14.483 Diving Merlin[3199:60b] cocos2d: surface size: 640x1136
2014-03-20 20:04:16.481 Diving Merlin[3199:60b] cocos2d: CCFileUtils: Warning HD file not found: Splash-render-5_newfdsd-hd.png

Upvotes: 0

Views: 259

Answers (3)

ares777
ares777

Reputation: 3628

Please provide @2x version of your images, let's say MyImage.png and [email protected] (for retina, scaled as needed). You can also check if device has retina support and adjust your code for the two cases: 1. device with retina support, 2. device without retina. You can check simple for iPhone if device supports retina. If you're on iPad version, check for -hd version of your images. To reproduce the bug Apple complains about, just test your app in iPhone simulator with Retina display. I think you'll get a black screen and you can continue to debug/inspect the cause.
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
if( ! [director enableRetinaDisplay:YES] )
CCLOG(@"Retina Display Not supported");
}

Upvotes: 0

Reza Shirazian
Reza Shirazian

Reputation: 2353

It seems like your app cannot find the images.

First make sure they are included in your build, by checking your build phase. You can find it here

Also file names are case sensitive. Make sure the file name you provide in your code is exactly the same as the file name being referenced by the app. This is something that the simulator forgives but the actual device doesn't.

Upvotes: 0

ares777
ares777

Reputation: 3628

cocos2d: CCTexture2D. Can't create Texture. UIImage is nil. Make sure you add all files as resources in your project and check Build Phases to see if there are set to be included in (Copy Bundle Resources).

Upvotes: 2

Related Questions