0
我有应用程序使用cocos2d,并且它在以前工作正常。安装cocos2d-objc但它说cocos2d swift
我更新了myapp项目中的cocos2d-obj。
之后,我的应用程序在启动画面后停止。
什么神秘的点,我当然安装了cocos2d-objc
从here,但在日志一些提示说“cocos2D上,雨燕” ....?
我有一些误解......?
错误日志下面
cocos2d: Cocos2D-Swift version 3.4.3-develop
cocos2d: compiled with Profiling Support: NO
cocos2d: OS version: 9.2 (0x09020000)
cocos2d: 64 bit runtime
cocos2d: Multi-threaded rendering: 0
cocos2d: OpenGL Rendering enabled.cocos2d: GL_VENDOR: Apple Inc.
cocos2d: GL_RENDERER: Apple Software Renderer
cocos2d: GL_VERSION: OpenGL ES 2.0 APPLE-12.0.40
cocos2d: GLSL_VERSION: OpenGL ES GLSL ES 1.00
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
cocos2d: CCGraphicsBufferClass: CCGraphicsBufferGLUnsynchronized
cocos2d: CCGraphicsBufferBindingsClass: CCGraphicsBufferBindingsGL
cocos2d: CCRenderCommandDrawClass: CCRenderCommandDrawGL
2016-02-20 06:08:59.312 myapp[2859:886706] cocos2d: viewDidLoad
cocos2d: Cocos2D-Swift version 3.4.3-develop
cocos2d: compiled with Profiling Support: NO
cocos2d: OS version: 9.2 (0x09020000)
cocos2d: 64 bit runtime
cocos2d: Multi-threaded rendering: 0
cocos2d: OpenGL Rendering enabled.cocos2d: GL_VENDOR: Apple Inc.
cocos2d: GL_RENDERER: Apple Software Renderer
cocos2d: GL_VERSION: OpenGL ES 2.0 APPLE-12.0.40
cocos2d: GLSL_VERSION: OpenGL ES GLSL ES 1.00
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
cocos2d: CCGraphicsBufferClass: CCGraphicsBufferGLUnsynchronized
cocos2d: CCGraphicsBufferBindingsClass: CCGraphicsBufferBindingsGL
cocos2d: CCRenderCommandDrawClass: CCRenderCommandDrawGL
2016-02-20 06:09:00.056 myapp[2859:886706] cocos2d: animation started with frame interval: 60.00
2016-02-20 06:09:00.060 myapp[2859:886706] cocos2d: surface size: 960x1704
(lldb)
错误发生在这里
// override default logic
- (void)runWithScene:(CCScene*) scene
{
NSAssert(scene != nil, @"Argument must be non-nil");
NSAssert(_runningScene == nil, @"This command can only be used to start the CCDirector. There is already a scene present.");
[self pushScene:scene];
NSThread *thread = [self runningThread];
// error happned here.
[self performSelector:@selector(drawScene) onThread:thread withObject:nil waitUntilDone:YES];
Thred 1: EXEC_BAD_ACCESS(code=1,address=0x0)
}
我明白了。我用精灵生成器/ Apportable开发了我的应用程序。我很惊讶Apportable破产了。我会尝试没有apportable/spritebuilder支持的Cocos-2D。 – whitebear
我们仍然支持精灵构建器,但是没有Apportable的Android插件 – s1ddok