All right. So I hope you gave that ago. 1
And now I'm going to show you the solution. 2
All right. 3
So I'm going to pull up Terminal and I'm going to navigate to where our WhatFlower is located. 4
So it's this directory that contains the WhatFlower Xcode project, and I'm just going to drag it into my 5
Terminal. 6
So here I'm going to do part in it to create a new pod file, 7
as you can see up here, and then I'm going to say open Podfile using the application Xcode-beta. 8
So for you, it should actually be Xcode. If you're working with the beta, 9
then it will be like this. 10
So next I'm going to comment out the platform and the pods 11
I'm going to use are pod 'Alamofire' and, of course, we're going to specify the version which was 12
4.4. 13
And then the other part that we needed was SwiftyJSON. 14
All right, cool. 15
So that's what we need. You can hit Save, Close, and then we're going to go back to our Terminal and say pod 16
install. 17
All right. 18
And it's done. 19
So, now we've got our What Xcode project workspace created and that's what we're going to launch. 20
So this is the one that's going to contain our pods 21
if you remember. 22
All right, cool. 23
And let's just check to make sure that we can actually import Alamofire. 24
There it is. 25
And import SwiftyJSON. 26
There it is as well. 27
OK. 28
So they're both included. 29
I'm happy with that. That's done. 30
So if you're confused at all about CocoaPods, then have a look back at the modules where we explored 31
them in detail. On the next lesson, 32
I'm going to show you the structure for the API call from Wikipedia and we're going to start getting 33
some information back. 34
I'll see you there.