本文介绍了cocos2d错误:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照教程。在本教程中,我找到了一个项目模板并开始进行操作。

I am following the tutorial http://www.bit-101.com/blog/?p=2115. In this tutorial I found a project template and go through it to begin.

我已经下载了cocos2d-iphone-0.99.1,并将子目录
cocos2d添加到了项目中…。但是当我建造时,我得到9个错误和4个警告

I have downloaded cocos2d-iphone-0.99.1 add the subdirectorycocos2d to project….but when I built I got 9 error and 4 warning

等等...。为什么?

推荐答案

不久前,cocos2d重命名了所有类。他们现在都以CC开头。在上面的示例中,您应该使用CCDirector.h,而不是Director.h

A little while back cocos2d renamed all of their classes. They now all begin with CC. In your above example, you should be using CCDirector.h, not Director.h

看看了解更多详情。

在您发布的教程中,其中包含的信息看起来有些过时了。我想您会发现安装说明特别麻烦。我建议找到一个更好的教程。在cocos2d网站上有几篇文章。 有关如何进行更新的最新指南安装cocos2d。

After looking at the tutorial you posted, it looks like the information contained within it is a little out of date. I think you'll find the installation instructions especially troublesome. I'd suggest finding a better tutorial. There are several posted on the cocos2d site. Here's a more up to date guide on how to install cocos2d.

编辑:我应该发布指向。它包含您入门所需的所有信息。

I should have posted a link to the cocos2d programming guide directly. It contains all the information you need to know to get started.

这篇关于cocos2d错误:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 10:22
查看更多