Xcode allows you to start from a variety of different templates for all of the operating systems created by Apple. This video shows what template to use to create your first iOS app, and walks through the process of the various settings when you create an Xcode project.
- [Instructor] When you open up Xcode, you're going to see the welcome screen which enables you to quickly create a new Xcode project or open an existing project. You can also create a playground or clone a project from a repository, both of which topics are beyond the scope of this course. So, let's create a new Xcode project by clicking the button from the welcome screen. Note that you can also use the File menu by going to File, New, and Project. And from there, you're asked to choose a template for your project.
You can choose the different categories like iOS, watchOS, tvOS, et cetera. And what we want here is a basic application, so choose iOS and in the Application section, choose Single View App which gives us a blank screen with nothing in it. Once you've selected that, hit the Next button and then you're asked to choose some options for your project. We'll start by giving it a product name. We'll call this My First Project.
And then the next three options are set for releasing your application in the future. So, for right now, just for testing, they don't really matter that much and that is your team name, your organization name, and the organization identifier which is used in your bundle identifier which gives your product a unique ID for when you publish it in the App Store. Again, those settings don't really matter until you're looking into publishing your application.
For language, make sure you have Swift selected, but note that you could choose Objective-C if you want. Leave all three of these options unchecked and then hit Next. Now here I'm going to go inside my Exercise Files folder and I'm going to create the Chapter One folder. I'll create a folder called first_project and a folder called final. I'm going to save my project in there and if you're following along with the exercise files, make sure to save outside of that final folder.
Also make sure that you uncheck Create Git repository on my Mac, another topic that's beyond the scope of this course, but useful if you're interested in using source control with Xcode. So, with the proper folder selected, I'll just hit Create and then after a few seconds, I'm taken into the Xcode interface.
- Creating an Xcode project
- Navigating the Xcode interface
- How model-view-controller works in an iOS app
- Troubleshooting UI-to-code connections
- Planning an app within your constraints
- Setting up the UI
- Testing your app on a device