0
1
00:00:00,300 --> 00:00:07,350
Let's first tackle how to create and set up a new iOS project from scratch. So when you first open
1

2
00:00:07,350 --> 00:00:10,410
up Xcode, it should show you a welcome screen.
2

3
00:00:10,800 --> 00:00:17,550
And we can get started straight away by clicking on the link here that says create a new Xcode project.
3

4
00:00:18,240 --> 00:00:23,850
Now, if you don't see this welcome screen, it might be because this checkbox is disabled.
4

5
00:00:24,120 --> 00:00:30,360
So you can also go over to file, new, new project to do exactly the same thing.
5

6
00:00:31,050 --> 00:00:35,520
So let's go ahead and create this new Xcode project.
6

7
00:00:36,930 --> 00:00:43,320
Next, we get to choose the kind of template we want for our new project. And firstly up here, we've
7

8
00:00:43,320 --> 00:00:51,060
got different tabs for creating watch apps, tvOS apps, macOS apps, etc. But what we want is an
8

9
00:00:51,060 --> 00:00:56,310
iOS app, and this is the most customizable type of template.
9

10
00:00:56,550 --> 00:01:02,640
It basically doesn't assume anything about your app and you're free to modify it as you need to.
10

11
00:01:03,180 --> 00:01:08,450
So now that we know what our template is all about, let's go ahead and click next. On this screen,
11

12
00:01:08,460 --> 00:01:14,250
it's really, really important that you don't skip ahead because you have to change this user interface
12

13
00:01:14,250 --> 00:01:20,160
from Swift UI to Storyboard in order for the rest of the lessons to actually make sense.
13

14
00:01:20,820 --> 00:01:26,130
And after you've done that and checked to make sure that your user interface says Storyboard, then we
14

15
00:01:26,130 --> 00:01:29,770
can continue with the rest of the lesson and add a product name.
15

16
00:01:30,510 --> 00:01:34,260
So this is going to be the name of your app and we're going to call ours
16

17
00:01:34,260 --> 00:01:41,710
I am Rich. And notice how down here it's already starting to build out a bundle identifier.
17

18
00:01:42,270 --> 00:01:46,320
Now, a bundle identifier is kind of like a web address.
18

19
00:01:46,800 --> 00:01:53,640
It's meant to be something that's unique and it will identify your app uniquely on the App Store.
19

20
00:01:53,820 --> 00:01:58,280
And you can see that it's created by what's called a reverse domain name.
20

21
00:01:58,680 --> 00:02:01,520
So whereas normally it would be something like yourcompany.com
21

22
00:02:01,860 --> 00:02:07,230
where they put the com at the beginning and then it's the name of your company. And that comes from your
22

23
00:02:07,230 --> 00:02:09,060
organization identifier.
23

24
00:02:09,600 --> 00:02:15,030
So the team you can leave as none, for now. We'll revisit this a little bit later on when we actually need
24

25
00:02:15,030 --> 00:02:21,140
to launch our app on a physical device, but we should add an organization identifier.
25

26
00:02:21,660 --> 00:02:28,470
So, for example, our company's web address would be www.appbrewery.co.
26

27
00:02:28,980 --> 00:02:37,670
So our organization identifier, because we're taking a reverse domain name, would be co.appbrewery.
27

28
00:02:38,340 --> 00:02:40,380
So it would look something like this.
28

29
00:02:41,130 --> 00:02:46,140
And the final bundle identifier is this, plus this
29

30
00:02:46,140 --> 00:02:54,140
and we get a unique URL because most companies have a web address, and because web addresses are unique,
30

31
00:02:54,450 --> 00:03:00,540
this is a really simple way of ensuring that a company's app is uniquely identified on the App Store.
31

32
00:03:01,050 --> 00:03:04,770
Now, what if you don't have an organization identifier,
32

33
00:03:04,780 --> 00:03:10,830
what if you don't have a website? Then I recommend just writing com. and then adding your name. So
33

34
00:03:10,830 --> 00:03:13,160
it could be angelayu, for example.
34

35
00:03:13,770 --> 00:03:19,620
This doesn't actually matter as long as there's nobody else who has used this bundle identifier using
35

36
00:03:19,620 --> 00:03:24,620
your name to try and publish an I am Rich app on the App Store, then you'll be completely fine.
36

37
00:03:24,870 --> 00:03:31,020
Now, the very last thing to check is to make sure that the language that you've chosen to program with
37

38
00:03:31,260 --> 00:03:38,020
is Swift and the user interface is chosen as Storyboard. In later modules,
38

39
00:03:38,050 --> 00:03:43,650
we're going to be diving into swiftUI, but we'll need to learn a lot more about Storyboarding and
39

40
00:03:43,650 --> 00:03:45,210
Swift before we can get there.
40

41
00:03:45,840 --> 00:03:51,300
And for the rest of the checkboxes, you can leave them unchecked like I have here, and then go ahead
41

42
00:03:51,300 --> 00:03:52,260
and click next.
42

43
00:03:53,190 --> 00:03:56,610
Now it's going to ask you where do you want to save your app?
43

44
00:03:56,880 --> 00:04:03,630
And if you have a specific folder that you want to save it to, then this is the point to go ahead and
44

45
00:04:03,630 --> 00:04:04,840
navigate to that.
45

46
00:04:05,310 --> 00:04:11,250
Alternatively, you can simply save it on your desktop if it's not too cluttered or simply just create
46

47
00:04:11,250 --> 00:04:15,940
a new folder called Development and you can start saving all your projects in there.
47

48
00:04:16,830 --> 00:04:23,430
Now we're going to go ahead and click create and it will generate our Xcode project for us.
48

49
00:04:24,000 --> 00:04:24,960
So that's it.
49

50
00:04:24,960 --> 00:04:28,020
That's our brand new Xcode project created.
50

51
00:04:28,350 --> 00:04:32,640
And remember that Xcode automatically saves all of your changes.
51

52
00:04:33,000 --> 00:04:38,700
And if you ever want to locate where this project is, then simply go to the very top over here,
52

53
00:04:38,910 --> 00:04:39,270
right-
53

54
00:04:39,270 --> 00:04:45,390
click and click on Show in Finder, at which point it's going to show you where it is on your computer.
54

55
00:04:45,630 --> 00:04:51,780
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

56
00:04:51,780 --> 00:04:52,590
located.
56

57
00:04:53,040 --> 00:04:57,270
In my case, it's simply on my desktop in a folder called Development.
57

58
00:04:57,870 --> 00:05:03,660
Once that's created, if at any point you want to pause the course and you want to close down Xcode,
58

59
00:05:04,110 --> 00:05:07,050
then you can always go back to where you saved it.
59

60
00:05:07,440 --> 00:05:15,060
Open up the project folder and then your project is located inside the file called I Am Rich.xcode
60

61
00:05:15,060 --> 00:05:15,690
proj.
61

62
00:05:15,870 --> 00:05:20,070
And if you double click on it, it will open it right back up where you left off.
62

63
00:05:20,640 --> 00:05:26,910
So now that we've seen how to create a brand new project, the next step is to take a look around Xcode
63

64
00:05:27,090 --> 00:05:30,210
and familiarize ourselves with our working environment.
