First, we'll need to create a new iOS app project:
- From the Xcode menu, choose File, then New.
- From the dialog box that opens, choose App from the iOS tab:
Figure 6.1 – Choosing a template
- The next dialog box asks you to enter details about your app, pick a product name and organization name, and add an organization identifier in reverse DNS style.
Reverse DNS style means to take a website that you or your company owns and reverse the order of the domain name components. So, for example, http://maps.google.com becomes com.google.maps:
Figure 6.2 – Options for a new project
Pay attention to the preceding choices as not all of them may be selected by default. For this recipe, the ones that are important to us are Interface and Include Tests, both of which we'll cover later on this in the chapter when we look at unit testing with XCTest and user interface testing with XCUITest.
- Once you've chosen...