Hey buddy what's going on this is Caleb with Debb slopes dot com and in this video we're going to go
ahead and install the cocoa pods we need for this project.
So go ahead and pull open wherever you have saved your X code project I saved mine in My Documents folder
and you're also going to need to pull open a terminal window like so.
Now what we're going to do is we're going to change directories into our project folder and we're going
to run a command.
So go ahead and type CD.
Create a space.
And then what I like to do is just to simply drag the folder onto the terminal window.
And that saves me from having to type out all of this.
That's just what I do.
So go ahead and press enter and you'll see we are now inside the versey app folder.
Now to set up a pod file all we need to do is type pod in it and that will initialize an empty pod File
for us.
But what we need to keep in mind is that we might not have cocoa pods installed and if you started at
the beginning of this video or sorry at the beginning of this course and you didn't have cocoa pods
installed I showed you how.
But just in case you do not still or you're starting a little bit later maybe you skip some of the beginner
stuff you can simply type pseudo gem install cocoa pots press enter and it will install cocoa pods for
you after you and to your administrator password of course.
So I have it installed so I'm going to type pod in it and when I press Enter you'll see nothing happens
here but a new file is created.
I need to edit this and add in the pods that I want.
Arik swift Arc's Cocco Alamo fire and Alamo fire image.
So I'm going to go ahead and right click on my pod file since there's not a default extension and I
need to open it with a text editor.
Now you can use Adam you can use sublime text you can use brackets whatever text editor you want although
I would advise against using text edit because sometimes in text it the formatting can get a little
screwed up and some of the quote marks that you need to denote the pods in your file can sometimes be
replaced by the stylized ones that are Antos on the side and we need the straight up single quotes.
So that's why I like to use Adam because Adam instinctively can use the proper quotations that we need.
So go ahead and pull that open.
And this is what your pod file looks like.
Let me zoom in here so you can see it.
There we go.
OK.
Very very cool.
This is what a pod file looks like.
It says Target versey app.
K that's the name of our project and it says do and that's where it's basically going to look through.
Find our pods and install them when we run the proper command in the terminal.
Now below this comment line is where it says pods for versey app.
And what we're going to do is we need to get those and we need to install them so we already installed
cocoa pods for swift and Arc's cocoa and we can do that again by simply indenting and typing pod dash
Arek swift pod dash dash.
It's like the single quote mark our X Ko-Ko we need pod dash Alamo fire and POD dash.
I keep saying dash I mean quote Alamo fire.
Image OK just like that.
And if we go ahead and save this and quit it now we have a POD file containing the information we want.
So if we go over here to the terminal now and type pod install and press ENTER watch what happens it's
getting Alamo fire 4.5 Alamo fire image three point two arcs Coco and Eric swift Now those are the most
updated versions on get hub which is really cool.
It also says Please close any current X code sessions and use the versey app dot C workspace.
From now on that's what we got to do so we can actually quit terminal at this point and we can go ahead
and open versey app.
X-Sea workspace and you might notice it doesn't look that much different but now we have a secondary
project in here called Pod's and before we do anything we need to actually fix some of our Pod's because
since we're running X 9 right x code 9 it's expecting that anything in this is using swift for but are
swift are x Cocco Alamo fire and Alamo fire image have not yet officially released their swift four
versions of those frameworks so we need to basically change them so that they are using swift 3.2.
We can kind of support backwards compatibility and X code which is actually really cool.
So go ahead and select the POD's project and you'll see we have four pods here and then one Pod's project.
But what we're going to do is we're going to select each one like so go to build settings and then we're
going to search for a swift language and you'll notice that it's asking it to use swift 4.0 but Alamo
fire does not yet support swift 4.0.
So actually you know what if we were to build this.
You'll notice we're going to get a ton of errors in our swift.
We'll get some in Alamo fire as well.
So you know what we're going to do is we're just going to change all of these to use with 3.2.
So go ahead and choose all of them and select swift 3.2.
And just like so and now and now that we've done that we can go ahead and clean by doing shift command
K and then hold command B to build the project.
And you'll notice those areas are going to go away.
OK.
We still get some warnings and that's OK.
But that's something with our ex-wifes So that's not something we did.
So it's ok now.
It'll build and then after it's done building we should get build succeeded.
We should be able to use all of these different projects are swift as well as Ark's Cocco even though
we'll get some mornings we'll be able to use them which is kind of the main point here.
So we're going to go ahead and just let it do its thing finish building and then after that we're going
to go ahead and move on to the next video.
So we're almost done build succeeded our errors have gone away.
Even a lot of our warnings have gone away.
It's had a chance to look through and realize that it's all good to go as far as three goes.
So we can close pods open versey app open the versey app group and we're good to go.
We're going to start building our UI in the next video and we'll get to code very very shortly.
Nice job with this video and I'll see in the next one.