我有使用cocos2d的应用程序,之前它运行良好。
我在myapp项目中更新了cocos2d-obj。
之后,我的应用程序在启动画面后停止。
我确实安装了cocos2d-objc
,这是多么神秘的一点来自here,但日志中有一些消息说“cocos2D-Swift' .... ??
我有一些误解...... ??
下面的错误日志
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)
}
答案 0 :(得分:1)
Cocos2D-Swift只是一个营销名称。当天赞助我们的可靠公司称其为吸引更多人的方式。
现在,当Apportable破产时,我们将名称更改回Cocos2D-ObjC。即使启用了Swift,它内部也没有Swift代码。
更新至上一个稳定版本(3.4.0)或即将发布的最新3.5-RC。