1. 在mac上构建hello world非常简单
./setup.py
source /Users/jiangxf/.bash_profile
cocos new AliGame -p com.mxhd.aligame -l cpp -d ali_game
输出
Runing command: new
> Copy template into /Users/jiangxf/dev/cocos2d-x-3.0/ali_game/AliGame
> Copying cocos2d-x files...
> Rename project name from 'HelloCpp' to 'AliGame'
> Replace the project name from 'HelloCpp' to 'AliGame'
> Replace the project package name from 'org.cocos2dx.hellocpp' to 'com.mxhd.aligame'
好,打开/Users/jiangxf/dev/cocos2d-x-3.0/ali_game/AliGame/proj.ios_mac/AliGame.xcodeproj。运行即可见到helloworld了