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: Default-568h1@2x-hd.png
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发布于 2014-03-20 18:23:05
看起来你的应用程序找不到图像。
首先,通过检查您的构建阶段,确保它们包含在您的构建中。你都能在这找到你的需要
此外,文件名区分大小写。确保您在代码中提供的文件名与应用程序引用的文件名完全相同。这是模拟器原谅的事情,但实际的设备却没有。
发布于 2014-03-20 15:18:14
cocos2d: CCTexture2D.无法创造纹理。UIImage是零。确保将所有文件作为资源添加到项目中,并检查构建阶段,以查看是否设置了包含在其中的文件(复制捆绑资源)。
发布于 2014-03-23 15:35:29
请提供@2x版本的图像,比如说MyImage.png和MyImage@2x.png (用于视网膜,根据需要进行缩放)。你也可以检查设备是否有视网膜支架,并调整两种情况的代码: 1.有视网膜支架的设备;2.没有视网膜的设备。如果设备支持视网膜,您可以检查iPhone是否简单。如果您使用的是iPad版本,请检查图像的-hd版本。要重现苹果抱怨的bug,只需在iPhone模拟器中使用Retina display测试应用程序即可。我想你会得到一个黑屏,你可以继续调试/检查原因。
if (UI\_USER\_INTERFACE\_IDIOM() == UIUserInterfaceIdiomPhone) { if( ! [director enableRetinaDisplay:YES] ) CCLOG(@"Retina Display Not supported"); }https://stackoverflow.com/questions/22537271
复制相似问题