Running the App in the Simulator

Launching the app in the built-in simulator that comes with Xcode is quite simple. In the top-right corner of Xcode, you will see a big Run button, and next to that, something called a Scheme, which enables choosing which device is targeted (see Figure 9.9). Click the right side of the scheme and choose the iPhone simulator. If you have a registered physical device connected to your computer, it will also show up in this list. See Appendix B for how to register physical devices to run your apps.

Image

Figure 9.9 Choosing the iPhone simulator to run the app.

Click the Run button on the top left of the Xcode toolbar and ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.