Let's first tackle how to create and set up a new iOS project from scratch. So when you first open 1
up Xcode, it should show you a welcome screen. 2
And we can get started straight away 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. And firstly up here, we've 7
got different tabs for creating watch apps, tvOS apps, macOS apps, etc. But what we want is an 8
iOS app, and this is the most customizable type of template. 9
It basically doesn't assume anything about your app and you're free to modify it as you need to. 10
So now that we know what our template is all about, let's go ahead and click next. On this screen, 11
it's really, really important that you don't skip ahead because you have to change this user interface 12
from Swift UI to Storyboard in order for the rest of the lessons to actually make sense. 13
And after you've done that and checked to make sure that your user interface says Storyboard, then we 14
can continue with the rest of the lesson and add a product name. 15
So this is going to be the name of your app and we're going to call ours 16
I am Rich. And notice how down here it's already starting to build out a bundle identifier. 17
Now, a bundle identifier is kind of like a web address. 18
It's meant to be something that's unique and it will identify your app uniquely on the App Store. 19
And you can see that it's created by what's called a reverse domain name. 20
So whereas normally it would be something like yourcompany.com 21
where they put the com at the beginning and then it's the name of your company. And that comes from your 22
organization identifier. 23
So the team you can leave as none, for now. We'll revisit this a little bit later on when we actually need 24
to launch our app on a physical device, but we should add an organization identifier. 25
So, for example, our company's web address would be www.appbrewery.co. 26
So our organization identifier, because we're taking a reverse domain name, would be co.appbrewery. 27
So it would look something like this. 28
And the final bundle identifier is this, plus this 29
and we get a unique URL because most companies have a web address, and because web addresses are unique, 30
this is a really simple way of ensuring that a company's app is uniquely identified on the App Store. 31
Now, what if you don't have an organization identifier, 32
what if you don't have a website? Then I recommend just writing com. and then adding your name. So 33
it could be angelayu, for example. 34
This doesn't actually matter as long as there's nobody else who has used this bundle identifier using 35
your name to try and publish an I am Rich app on the App Store, then you'll be completely fine. 36
Now, the very last thing to check is to make sure that the language that you've chosen to program with 37
is Swift and the user interface is chosen as Storyboard. In later modules, 38
we're going to be diving into swiftUI, but we'll need to learn a lot more about Storyboarding and 39
Swift before we can get there. 40
And for the rest of the checkboxes, you can leave them unchecked like I have here, and then go ahead 41
and click next. 42
Now it's going to ask you where do you want to save your app? 43
And if you have a specific folder that you want to save it to, then this is the point to go ahead and 44
navigate to that. 45
Alternatively, you can simply save it on your desktop if it's not too cluttered or simply just create 46
a new folder called Development and you can start saving all your projects in there. 47
Now we're going to go ahead and click create and it will generate our Xcode project for us. 48
So that's it. 49
That's our brand new Xcode project created. 50
And remember that Xcode automatically saves all of your changes. 51
And if you ever want to locate where this project is, then simply go to the very top over here, 52
right- 53
click and click on Show in Finder, at which point it's going to show you where it is on your computer. 54
And if you go on to this view, you'll be able to navigate all the way up to see where it's actually 55
located. 56
In my case, it's simply on my desktop in a folder called Development. 57
Once that's created, if at any point you want to pause the course and you want to close down Xcode, 58
then you can always go back to where you saved it. 59
Open up the project folder and then your project is located inside the file called I Am Rich.xcode 60
proj. 61
And if you double click on it, it will open it right back up where you left off. 62
So now that we've seen how to create a brand new project, the next step is to take a look around Xcode 63
and familiarize ourselves with our working environment.