Iphone cocos2d:错误:升级到cocos2d 2.0时未能编译顶点着色器

Iphone cocos2d:错误:升级到cocos2d 2.0时未能编译顶点着色器,iphone,cocos2d-iphone,opengl-es-2.0,Iphone,Cocos2d Iphone,Opengl Es 2.0,我正在尝试升级我的CoCoS2D1.0应用程序,以使用新的CoCoS2D2.0框架 我遵循迁移wiki,能够将大部分内容转换。 但我看到了这个错误- cocos2d:错误:未能编译顶点着色器 当我尝试使用一个简单的CCLableTTF时。 我没有使用任何着色器或特殊图形。 我肯定我只是错过了一些简单的东西,但似乎找不到答案 CGSize size = [[CCDirector sharedDirector] winSizeInPixels]; //# Moves Label self.s

我正在尝试升级我的CoCoS2D1.0应用程序,以使用新的CoCoS2D2.0框架

我遵循迁移wiki,能够将大部分内容转换。 但我看到了这个错误- cocos2d:错误:未能编译顶点着色器

当我尝试使用一个简单的CCLableTTF时。 我没有使用任何着色器或特殊图形。 我肯定我只是错过了一些简单的东西,但似乎找不到答案

    CGSize size = [[CCDirector sharedDirector] winSizeInPixels];
//# Moves Label
self.scoreLabel = [CCLabelTTF labelWithString:[NSString stringWithFormat:@"Moves: %d",self.player.score] fontName:@"Marker Felt" fontSize:18];
[self.scoreLabel setPosition: ccp(size.width/2, 400)];

[self.scoreLabel setColor:ccc3(255, 255, 255)];
[self addChild:self.scoreLabel z:200];
最后我看到了一张空白页,看到了错误-

-[CCGLProgram initWithVertexShaderByteArray:fragmentShaderByteArray:] [Line 82] cocos2d: ERROR: Failed to compile vertex shader
-[CCGLProgram initWithVertexShaderByteArray:fragmentShaderByteArray:] [Line 91] cocos2d: ERROR: Failed to compile fragment shader
-[CCGLProgram link] [Line 178] cocos2d: ERROR: Failed to link program: 0

在重新添加新的cocos2d文件夹之前,请删除旧的cocos2d文件夹。不要只复制新的cocos2d文件而不复制旧的cocos2d文件

否则,删除或重命名的类总是有可能保留在项目中,这可能会导致各种看似奇怪的问题