How to create a cocos2dx-3.0 project in xcode?

Dong picture Dong · Mar 16, 2014 · Viewed 8.4k times · Source

I downloaded cocos-2dx 3.0rc and run "setup.py". READ.ME tells that we can use "cocos new" to create a project and "cocos run" to run a project. However, I tried to use xcode to create a new project but I find there is no xcode templates. How can I use xcode to develop cocos2dx-3.0 projects?

Answer

Francis Moy picture Francis Moy · May 8, 2014
  1. Open Terminal
  2. Run setup.py
  3. Run source /Users/your_user/.profile (so that environment variables are actually updated)
  4. Run cocos new mygame -p com.your_company.mygame -l cpp -d /directory_to_your_game