Let's first tackle how to create and set up a new iOS project from scratch. 1
So when you first open up Xcode, it should show you a "Welcome" screen, and we can get started straight away 2
by clicking on the link here that says, "Create a new Xcode project." 3
Now, if you don't see this welcome screen, it might be because this checkbox is disabled, 4
so you can also go over to File, New, new Project to do exactly the same thing. 5
So let's go ahead and create this new Xcode project. 6
Next, we get to choose the kind of template we want for our new project. 7
And firstly, up here, we've got different tabs for creating watch apps, tvOS apps macOS apps, et cetera. 8
But what we want is an iOS app. And by default, the Single View Application is selected. 9
And this is the most customizable type of template. 10
It basically doesn't assume anything about your app and you're free to modify it as you need to. 11
Now for some of these other templates, for example, the Master-Detail App which looks like this 12
where you've got the master and detail. So it's a bit like the male app on iPad and usually it is used for large 13
screen size where you can actually have this kind of multitasking 14
or another popular one is the tabbed app. 15
So this is where you have the tab bar at the very bottom and you can click between these different tabs 16
to see different pages on the app. 17
Now it's important to remember that even if you choose a Single View App at any point later on if you 18
decided that you needed a tab bar or you needed to make it have Augmented Reality or if you needed a 19
Master-Detail type of format, you can always add it. 20
So I always tell students to just start off with a Single View App, and then, later on, depending on what 21
it is you need, 22
you can always add it at that point. 23
So now that we know what our template is all about, let's go ahead and click next. 24
On this screen, it's really, really important that you don't skip ahead because you have to change this user interface 25
from SwiftUI to Storyboard in order for the rest of the lessons to actually make sense. 26
And after you've done that and checked to make sure that your user interface says Storyboard, 27
then we can continue with the rest of the lesson and add a product name. 28
So this is going to be the name of your app. And we're going to call ours I Am Rich. 29
and noticed how down here it's already starting to build out a bundle identifier. Now a Bundle Identifier is kind of like 30
a web address. 31
It's meant to be something that's unique and it will identify your app uniquely on the App Store and 32
you can see that it's created by what's called a reverse domain name. So whereas normally, would be something 33
like your company.com when they put the com at the beginning, and then it's the name of your company. 34
And that comes from your Organization Identifier. 35
So the organization name, you can leave blank, and the Team, you can leave as none for now. We'll revisit 36
this a little bit later on when we actually need to launch our app on a physical device. 37
But we should add an Organization Identifier. 38
So for example, our company's web address would be www.appbrewery.co. 39
So all Organization Identifier because we're taking a reverse domain name would be co.appbrewery. 40
So it would look something like this. 41
And the final Bundle Identifier is this, plus this, and we get a unique URL because most companies 42
have a web address and because web addresses are unique. 43
This is a really simple way of ensuring that a company's app is uniquely identified on the App Store. 44
Now what if you don't have an organization identifier? 45
What if you don't have a website? 46
Then I recommend just running com. 47
and then adding your name, 48
so it could be Angelayu for example. 49
This doesn't actually matter as long as there's nobody else who has used this Bundle Identifier using 50
your name to try and publish an I Am Rich app on the App Store, 51
then you'll be completely fine. 52
Now the very last thing to check is to make sure that the Language that you've chosen to program with 53
is Swift and the User Interface is chosen as Storyboard. In later modules, we're going to be diving 54
into SwiftUI. 55
But we'll need to learn a lot more about Storyboarding and Swift before we can get there. And for the 56
rest of the checkboxes, you can leave them unchecked, like I have here. And then go ahead and click next. 57
Now it's going to ask you, "Where do you want to save your app?" 58
And if you have a specific folder that you want to save it to, then this is the point to go ahead and 59
navigate to that. 60
Alternatively, you can simply save it on your desktop if it's not too cluttered, or simply just create 61
a new folder called Development and you can start saving all your projects in there. 62
Now we're going to go ahead and click Create and it will generate all Xcode project for us. 63
So that's it. 64
That's our brand new Xcode project created. 65
And remember that Xcode automatically saves all of your changes. 66
And if you ever want to locate where this project is, then simply go to the very top over here, right-click, 67
and click on Show in Folder. 68
At which point, it's going to show you where it is on your computer. And if you go on to this view, you'll 69
be able to navigate all the way up to see where it's actually located. 70
In my case, it's simply on my desktop in a folder called Development. Once that's created, 71
if at any point you want to pause the course and you want to close down Xcode, then you can always go 72
back to where you saved it, open up the project folder, and then your project is located inside the file 73
called I Am Rich.Xcodeproject. 74
And if you double click on it, it will open it right back up where you left off. 75
So now that we've seen how to create a brand new project, the next step is to take a look around Xcode 76
and familiarize ourselves with our working environment.