Time for action – running the project on the simulator

The project generated using Cocos2D already contains some code that we can see in action, so let's make sure that Xcode is targeting the simulator and run the project, before making any changes. To do this, perform the following steps:

  1. Switch to Xcode and take a look at the top-left corner of the Xcode window, as shown in the following screenshot:
    Time for action – running the project on the simulator
  2. Click on the iPhone label marked with the black square as shown in the previous screenshot. It will open a drop-down list similar to what is shown in the following screenshot:
  3. Here, we can see the different simulators we can run our project on. Let's ...

Get Learning iPhone Game Development with Cocos2D 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.