1.1. Creating a Simple iOS App in Xcode
Problem
You’ve started to learn iOS Programming and you want to create a really simple iOS Project and app in Xcode.
Solution
Create a new iOS Project in Xcode and then run it in the iOS Simulator using Command+Shift+R.
Discussion
I’ll assume you have a Mac and you have already installed the Xcode set of tools. Now you want to create an iOS Project and run that app on the iOS Simulator. This process is really straightforward:
Open Xcode if you don’t have it open yet.
Select File on the menu bar, select New, and then select New Project. You will be greeted with a screen similar to that shown in Figure 1-1.

Figure 1-1. The New Project dialog in Xcode
In the New Project dialog (Figure 1-1), on the left, make sure the Application category is selected under the iOS main category. Then select Page-Based Application on the righthand side and press the Next button.
You will now need to enter your product name (App Name) and your company identifier. This uniquely identifies your product for your own company. Set your product name to Creating a Simple iOS App in Xcode. The company identifier is normally a domain name with the components reversed. My company name is Pixolity, and therefore I will set the Company Name to
com.pixolityas shown in Figure 1-2. Leave the rest of the values in this screen just the way I’ve left them in Figure 1-2 and press the Next button. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access