【发布时间】:2015-02-19 05:18:57
【问题描述】:
我正在使用 cocos2d-x 3.3 和 Xcode 6.1.1 创建一个新的游戏项目。我已经安装了 python 并在终端上运行命令来创建 Helloworld 游戏项目。它看起来像:
$ cocos new Helloworld -p com.datnt.games -l cpp -d /Users/datnguyen/Desktop/DatNguyen/Games
终端中的结果:
Running command: new
> Copy template into /Users/datnguyen/Desktop/DatNguyen/Games/Helloworld
> Copying cocos2d-x files...
> Rename project name from 'HelloCpp' to 'Helloworld'
> Replace the project name from 'HelloCpp' to 'Helloworld'
> Replace the project package name from 'org.cocos2dx.hellocpp' to 'com.datnt.games'
> Replace the mac bundle id from 'org.cocos2dx.hellocpp' to 'com.datnt.games'
> Replace the ios bundle id from 'org.cocos2dx.hellocpp' to 'com.datnt.games'
当我运行 Xcode 时,我遇到了问题:项目名称仍然是 HelloCpp,我可以在模拟器上运行游戏。我按照教程安装并创建了第一个游戏,但我不知道为什么会出现问题。你能帮我解决这个问题吗?
我的 Xcode 屏幕:
更新:我可以在终端使用命令完美运行这个游戏:cocos run -p ios,但不能使用Xcode运行
【问题讨论】:
-
所以问题是程序名称是HelloCpp而不是Helloworld?或者您不能(您的问题是错字?)在模拟器上运行游戏?
-
是的,我无法在模拟器上运行游戏。我还没有安装模拟器7.1,不知道是什么问题
标签: ios cocos2d-x cocos2d-x-3.0