2016-02-19 146 views
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) 
} 

回答

1

的Cocos2D-斯威夫特僅僅是一個營銷的名稱。在當天贊助我們的適當公司稱這樣吸引更多人。

現在當Apportable破產時,我們將名稱更改回Cocos2D-ObjC。儘管它啓用了全部Swift,但它內部沒有Swift代碼。

更新到上一個穩定版本(3.4.0)或即將發佈的最新3.5-RC。

+0

我明白了。我用精靈生成器/ Apportable開發了我的應用程序。我很驚訝Apportable破產了。我會嘗試沒有apportable/spritebuilder支持的Cocos-2D。 – whitebear

+0

我們仍然支持精靈構建器,但是沒有Apportable的Android插件 – s1ddok

相關問題