安装Cocos2D-iPhone的方法

http://code.google.com/p/cocos2d-iphone/ downloads/list中下载了cocos2d-iphone-1.0.0,为了便于我们在 命令行工具(Terminal)中找到解压缩的路径,将下载下来的压缩 文件解压在文稿( Documents) 目录下。

打开 终端(Terminal) 工具(应用程序-》实用工具-》终 端)(Application->Utilities->Terminal),通过“ls”命令列出当 前目录,通过“cd documents”进入 Documents,再进入cocos2d- iphone-1.0.0目录下,通过命令安装:

如下图:

刚开始按网上搜到的命令出错,不过还好有提示,按提示的命令:./ install-templates.sh -u成功安装了。 成功安装时会提示:Installing Xcode 4 cocos2d iOS template

posted @ 2011-09-05 20:59  wujian1360  阅读(288)  评论(0编辑  收藏  举报