Xcode projects can be created from existing templates. In this video, see how to create your first Xcode project and how Xcode projects work within the file system.
- [Instructor] When you first open Xcode you're going to see the welcome screen, which enables you to quickly create a new project or open an existing project. You can also do this from the File menu by File, New, and then Project and of course, Open or Open Recent. Let's create a new project from the welcome screen by clicking the button on the screen. When you do that, you're asked to create a project from an existing template. At the top you can choose your platform in the tabs. So you can choose iOS, watchOS, et cetera.
For now, I'm going to choose macOS and then hit Cocoa App and go to the Next button. For the product name I'll call this My First App. For Team, it says my name here, but you don't have to worry if it doesn't say anything. The team shows up based on your Xcode preferences when you associate an Apple Developer account with Xcode. We'll talk more about that later. For the Organization Name and Identifier, you can really put whatever you want right now. So if you have a company, you can put that otherwise you can just put your name and the same thing for the Organization Identifier.
This used when you release your app to the store to give your app a unique ID. Normally a reverse domain structure is used. So, since I own toddperkins.com I simply reverse that to com.toddperkins, which creates a unique bundle identifier provided nobody else tries to use my domain identifier. For Language, choose Swift. Check the box to Use Storyboards, uncheck everything else, and then hit Next.
Now we need to choose a location to save the file. For now I'm going to leave Source Control unchecked, but rest assured, we will talk about Source Control in a future movie. Go to Exercise Files, Chapter 01, First Project and I'm going to save in the Final folder. If you're following along with the exercise files, save outside of that folder. So I'm going to hit Create and then Xcode creates the project. So here on the left I see all these files and folder icons for my project.
We'll talk more about how those work later on, but if we actually examine the folder structure on the machine you'll see that it's not perfectly aligned with what we see here in Xcode. That's because Xcode allows you to organize folders and files separate from how the file system organizes them. Again, we'll discuss that in a later movie. But here we are and we successfully created our first Xcode project.
Released
1/29/2019- Installing Xcode
- Creating your first project
- Editing code
- Creating snippets
- Prototyping in playgrounds
- Implementing version control with Git
- Building and connecting the interface
- Compiling and debugging apps in Xcode
- Creating workspaces for sharing resources and code
Share this video
Embed this video
Video: Create your first Xcode project