1:首先从App Store上下载相应版本的Xcode;
2:双击安装包,系统会自动安装成功;
3:从cocos引擎中文官网:http://cn.cocos2d-x.org/download/ 下载cocos2dx对应版本;
4:查看readme.txt文档:
1.please copy cocos2d 3.3 to ./vienna, named cocos2d
2.add PGMidi as a submodule, so execute:
git submodule init
git submodule update
3.patch cocos2d, please run patch_cocos2d.py;
5:第一步:将cocos2dx的安装包放到Xcode的目录下eg : /user/SKY/Document/xiaoyezi/vienna/vienna目录下
6:第二步:在终端上进入 cd vienna/目录下,mv cocos2d-x-3.3rc2 cocos2d将cocos2d-x-3.3rc2重名为cocos2d;
7:进入脚本中 :cd scripts/,配置环境:python patch_cocos2d.py
8:打开Xcode运行cocos2dx的项目文件,即可。