Unable to start new game using cocos2d-x 3.3 for iOS

I am using cocos2d-x 3.3 and Xcode 6.1.1 to create a new game project. I already installed python and ran a command on the terminal to create a Helloworld game project. It looks like this:

$ cocos new Helloworld -p com.datnt.games -l cpp -d /Users/datnguyen/Desktop/DatNguyen/Games 

      

And the result in the terminal:

Running command: new
> Copy template into /Users/datnguyen/Desktop/DatNguyen/Games/Helloworld
> Copying cocos2d-x files...
> Rename project name from 'HelloCpp' to 'Helloworld'
> Replace the project name from 'HelloCpp' to 'Helloworld'
> Replace the project package name from 'org.cocos2dx.hellocpp' to 'com.datnt.games'
> Replace the mac bundle id from 'org.cocos2dx.hellocpp' to 'com.datnt.games'
> Replace the ios bundle id from 'org.cocos2dx.hellocpp' to 'com.datnt.games'

      

When I ran Xcode I had a problem: the project name was still HelloCpp and I can run the game on the simulator. I installed and created the first game after the tutorial, but I don't know why the problem occurs. Could you please help me to solve this problem?

My Xcode screen: enter image description here

UPDATE: I can manage this game perfectly using the command in the terminal: cocos run -p ios, but cannot work with Xcode

+3


source to share


3 answers


You must right-click the HelloWorld.xcodeproj file and select Show Package Contents.

And then you have to delete both the "project.xcworkspace" file and the "xcuserdata" folder (only the project.pbxproj file is required).



After that, try reopening the Xcode project and see if it works or not.

+2


source


Open a terminal and get a desktop. $ cd Desktop $ cocos new ProjectNM -p com.packageNM.ProjectNM -l cpp

Note: -> ProjectNM both sides are the same as.



Ex. $ cocos new MyNewProject -p com.packageNM.MyNewProject -l cpp

just-Go ProjectFolder / proj.ios_mac / MyNewProject.xcodeproj open it and select your device and run.

+1


source


Open a terminal and get a desktop. $ cd Desktop

$ cocos new ProjectName -p com.packageName.ProjectName -l cpp

Note: -> ProjectName both sides are the same as.

Ex. $ cocos new MyNewProject -p com.packageName.MyNewProject -l cpp

just-Go ProjectFolder / proj.ios_mac / MyNewProject.xcodeproj open it and select your device and run.

0


source







All Articles