Hi Alex here from rebeloper.com and welcome to ASD - App Store Domination and
today we are on Day 2 so let's get to work!
Okay, yesterday you downloaded Xcode and today we are going to take a look at how
Xcode actual looks. And for that let us just open up Xcode and you will find
this welcome a screen from Xcode. And here you will see when you will do
have some more projects you this will be populated with your latest projects.
As you can see here we have you can create a playground a new Xcode project
or we could clone an existing project from let's say from a GitHub. Now we
are going to take a look at how to create a new project.
Okay, let's tap on... well click on that and as you can see here we have a single
view application. We can do a game on augmented reality app or even more but
for now let us just stick to the single view application. Let's click on next.
Let's add it a name. Let's say so App Store Domination Magic and we will
choose the language of Swift if you don't already have selected let's choose
that language. And of course if you don't have this set up then you can choose
your team, your organization name. Now your team... well we will talk about that
in a later video when we talk about the developer portal in the Apple developer
site. Now organization name: come.Rebeloper and here you can see that
we have our bundle identifier. Now our bundle identifier is the ID that is
representing your app. Now this is very important because this needs to
be unique all over the world. Now what I and most of developers use is a reverse
domain name: com.rebeloper. Now that is your name or your company name
and ASDMagic the name of your product.
Now this is just a product name. It is not the one that will be shown on iTunes and
that is why... on the App Store... that is why you should have these short names these
very expressive names and most importantly and you should not use well
special characters. And I usually like to omit spaces too. And that is why I have
just camel cased all of my product and name.
Okay! Let's click on next and see... yeah, first of all we can't create a git
repository and we were created because this will be available for you to see on
like GitHub repositories. And we will choose this to be living in our ASD 30Day's challenge
folder here. And of course we could create a new folder if
we wanted to but this is fine by me. Let's create this! Okay! Now here as you
can see here we have a standard Xcode project and if you are buying an Xcode
project from other developers or if you are building this for yourself you need
to familiarize yourself with this environment. Well probably most of you
watching this already do know but hang on maybe you will learn some more
interesting stuff along the way. First of all here you can see that we
have 3 spaces, on the left one in the middle and one on the right.
Okay! Now let's talk about this one on the right and this is a navigator and
by default it is set to the project navigator. Here you can see your groups
because these are... not well we are not calling them folders we are calling them
groups. And in the side the groups we have our fires. Here we have our app
delegates file, ViewController.
Of course the whole project your app starts with the App
Delegate and then goes into the ViewController and of course we have used
the main storyboard but we will choose not to use this and replace it in code.
Okay! Of course here we have your products and once you start building
your app there will be more files inside our navigator. Okay, on the... let me just
talk about briefly about these icons. Here we have our source control
navigator. And let me just unfold this and here we have our branches we are
currently in the master branch so this is our branches. I have covered
using GitHub with Xcode 9 in a previous playlist go ahead and check that out on
YouTube. Okay! Now next up is what I usually use when
you build and run it automatically goes here into our issues navigator. And one
more thing that I like to use is this finder. And I'd like to type in here
let's see app delegate. And it finds all what I want to find inside my projects.
And you can tap on that and it takes you there. Now let's talk about this
right side and that is our... this all is the file inspector and
it inspects the current file that you are in. Let's go back here if we are in
the app delegate then we can find these things. If you select a UI responder
then you have this quick help here. This all depends on what you are using inside
the centre view. Okay! Now of course you can toggle on off
these as you want it to. And we do have another view down here and that is our
console that we can of course hide and show if we wanted to. This will be
shown if we just simply run the app. Let's do that now let's select one of
our simulators like so and let's click on this play button. Okay! And the
simulator will load. Now the simulator if you don't already know that it is living
inside your Mac app so you don't have to have a device for testing. And it will
take a while to launch for the first time and it looks something like this.
And it shows how your app will look like on an actual device. Well for now it
doesn't do anything. Let's launch well we have stopped this by clicking on the
stop and now let's go to the ViewController and let's print something out.
This is where you can add your code you can edit your code. Let's print a
statement... Okay! Let's build and run. Now build and run means it builds the whole
project and runs it on the simulator. And as you can see we here we have printed
out first print statement... not satement statement. Now we can stop this. If we
wanted to just check our code and not run it we can just simply build and that
is with a simple shortcut of command + B. And if we hit that as you can see build
has succeeded. It tells us that we do have a succeeding build. Now let's talk
about this part of our project well we here we have our project and if you
can see that we have an info.plist file. We have a build settings. Now what I want
to talk about now and we will conclude this episode is about the targets. Here
we have our targets. Now if you wanted to add more targets you can do so by
clicking here. And as you can see we have a lot of targets. Now this is actually
the app you are building and you are going to use. Now the project is the home
of your targets. Okay! Let's cancel because we have a
custom keyboard you can add a message is filtered extension and so on an iMessage
extension. For that now let us just cancel this out. Let's talk about this
whole thing because it doesn't look like code. Well first of all here you have
your general tab and the display name. Now by default it is set to the project
names but you should change this because this will be your... well when users
download your app this will be displayed as the title, the name of your app when
they are seeing it on their iPhone. It's a little text under the icon so I
will just call this Magic or maybe "ASD Magic". Okay, here you have your
bundle identifier as I was talking about earlier and now let's talk about version
number. Well the version number it is as simple as that it is the version of your
current app on the App Store. Now if you are building a new version number you
have to bump up let's say current version number is 1.0.0 you could have
1.0.1. and that is all. This is very important because if you want to submit
a new version of your app then you need to bump up the version. Of course in your
project and iTunes Connect that we will talk about later on. Now the build number
is an internal number because maybe you want to create a new version and you
want to test this out on TestFlight for several users now you want to have a
first build second build or for any let's say 0.0.23.
And you want to have a new build and you want to give them to the testers
and you want to simply add build number 24 (1.0.24).
Build number 1 is okay now and I will just take this to 0.0.0.
Okay! Now I like to use signing because signing... well I like to use signing as
automatically. Because automatically it takes care of our signing of course you
need to have a team that we will set up in a next video and it will be
automatically provisioned and we will download our sighting certificate in the
next video. Deployment info, well it should be the
latest deployment target Universal because we want to use iPhone and iPad
versions of our app. The main interface well for now it is our main.storyboard.
But we will change that so we will use
it in code. Device orientation I like to uncheck landscape left and landscape
right if our app is portrait but it all depends on your app. And the status bar
style app icons launch screen embedded binaries this is all web pretty advanced
stuff so I won't cover this. Now you're a bundle identifier... well your
banner identifier is called app ID on the Apple developer portal. It's little
tricky but you will get used to it. This is why you are learning this day by day
with this 30 Days challenge. Now this can be automatically uploaded and well
created on the Apple developer portal but not when you just automatically
manage signing. That is not enough you need to go into capabilities and
enable one of the capabilities. I won't go into details here. I will just enable
in-app purchases and that should take care of adding your app ID into the
developer portal. Because creating it inside the developer portal is kind of
old-school and you can do this well nearly automatically.
Now one last thing that you should be aware of it this Info tag where you can have your
bundle identifier... well bundle display name changed.
This is one thing that you need to be aware of and we will maybe add some fonts here
or add some privacy issues if you want to create an app that uses... well
let's say the users photo library then you need to type in here that you want
access to to that. Well it is a topic for another video. Okay that is it for how
Xcode looks and in the next video we are going to take a look at the other side
of our project, well the developer portal of Apple and most importantly we are
going to take a look at two things and I believe I will take this into two
separate tutorials one is the developer portal and the
other one is iTunes connect. If you are watching this on YouTube go ahead
and give it a thumbs up and subscribe to our channel. If not go ahead and take a
look at my products maybe you want to buy some products of me from rebeloper.com/store
Okay! Hope you enjoyed this video and I will see you in the
next one! Good stuff! Now if you want to see more of this video and want to boost
your app business go ahead and take a look at my 30 days challenge App Store
Domination. Go ahead and click the link down below and I will see you inside a
ASD - App Store Domination. Let's get to work!