在mac上安装cocos2d-x-3.4
cocos2d目录,打开终端,输入了sudo ./setup.py
运行成功后,再从终端输入了source ./Users/用户名/.bash_profile,终端无任何提示,感觉应该成功了。
再从终端输入,cocos new MyGame -l cpp -d programm
终端显示:
Running command: new
Copy template into /Users/用户名/programm/MyGame
Copying cocos2d-x files…
Rename project name from ‘HelloCpp’ to ‘MyGame’
Replace the project name from ‘HelloCpp’ to ‘MyGame’
Replace the project package name from ‘org.cocos2dx.hellocpp’ to ‘org.cocos2dx.MyGame’
Replace the mac bundle id from ‘org.cocos2dx.hellocpp’ to ‘org.cocos2dx.MyGame’
Replace the ios bundle id from ‘org.cocos2dx.hellocpp’ to ‘org.cocos2dx.MyGame’
然后进入MyGame文件夹,找到proj.ios_mac文件夹,打开里面的MyGame.xcodeproj文件,
自动启动了xcode,之后xcode顶部中间显示HelloCpp I Build HelloCpp iOS:
Failed
为什么HelloCpp的工程名没有被替换成MyGame,
同时,为什么会build失败呢?
求解啊,很是苦恼。