The cocos2d-x has reached version 3.0. This update is relatively large. 1. Create a project on the console instead of using XCode. Step 1: Download a 3.0 package from the official website. 2. I downloaded the beta cocos2d-x-3.0alpha0, 3. Then open the terminal cd to the cocos2d-x-3.0alpha0 directory 4, and then run the following command to create the project. /create-multi-platform-projects.py-p <PROJECT_NAME>-k <PACKAGE_NAME>-l <cpp | lua | javascript> <PROJECT_NAME> <PACKAGE_NAME> <cpp | lua | javascript> Replace the three with you required, as follows. /create-multi-platform-projects.py-p HelloWorld-k com. myCompany. after HelloWorld-l cpp is run, the project is created in the projects directory under the cocos2d-x-3.0alpha0. Note: 1. If you install it in a small way before installation in the console input./install-deps-linux.sh then you will delete the current 3.0 folder. Otherwise, an error occurs even after the project is created. The error is as follows:
clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libbox2d iOS.a' clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libchipmunk iOS.a' clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libcocos2dx iOS.a' clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libcocos2dx-extensions iOS.a' clang: error: no such file or directory: '/Users/tokou/Library/Developer/Xcode/DerivedData/HelloCpp-bjyxwvdvsmprtlejjmzkzhesieuy/Build/Products/Debug-iphonesimulator/libCocosDenshion iOS.a'
To solve this problem, just decompress a new 3.0 !! And then directly create the project.