In this course, we're going to build a Foursquare Clone using Parse. Parse provides you with a great tool to work in cloud servers and you will learn the advantages and disadvantages that come with it.
This course is designed for anyone who wants to:
- Learn about iOS development and coding
- Move into a career as an iOS developer
- Master Swift skills
To get the most out of this course, you should have some basic knowledge of iOS.
Hi. Within this lecture, we're going to create our Xcode project and bring the process, the case in our Xcode project. So, I'm going to click over here to create a new single view app under iOS tab, so let me bring this down. Yes, this one single view app. And in here, I'm going to call this FoursquareClone, okay? And you don't have to have any SwiftUI or Core Data features. So, let me just rename this as clone, yes. So, click on 'Next'. I'm going to put this under my Downloads in iOS complete folder. So, you're more than welcome to put it anywhere you want, okay? After that we're going to open our project here, but actually, we're not going to do anything yet because I want to start with integrating the parse SDKs to my project. And in order to do that, of course, we're going to create a Podfile and we're going to use Cocoa Pods. And in order to do that, we have to close this down for right now, right? So, after you create your project, you can close that down and open your Terminal. So, we have worked with Terminal before. So, I assume you know how to go around inside of your Terminal and create a Podfile and edit the Podfile and just install the Podfile. So, I'm going to do this quick. So, go to your Downloads or if you're on desktop, of course, you have to write cd desktop. And in Downloads, I need to go to iOS complete folder and then FoursquareClone folder. So, basically, I'm inside my project folder and that's where I want to run pod init. So, if you don't know what I'm doing right now, I suggest you go back and watch Cocoa Pods section, Cocoa Pods lecture in Firebase or in GitHub lectures, okay? So, I have to open this Podfile that we have created. So, let me make this a little bit bigger, yes. So, after saying, use frameworks, we have to write the pod name itself. So, let's go back to GitHub repository of iOS SDK and we're going to have to copy this pod Parse. So, let's read here a little bit. For example, it says that after you say pod Parse, you have to run pod install. Yeah, we know that. But if you want to use something like FacebookUtils or TwitterUtils, you have to bring in these pods as well. We're not going to do that. This is actually related to signing in with Twitter or Facebook. We don't even know how to sign in with Parse with email or username, so first of all, we're going to take care of that. So, you can just skip all of those FacebookUtils, TwitterUtils. You can just copy and paste the pod Parse and come over here and paste it. Once you do that, you can just save this and come over here and run pod install. So, as you do that, as you can see it starts the download, the necessary libraries, necessary modules for your Xcode projects. So, we're downloading two main things: the Bolt and the Parse. So, this come together and they work together so they're kind of different modules but they have to be exactly on the same time on the same project to be working. So, after you do that, you can just close down the Terminal and you have to come over here to your Xcode workspace rather than Xcode project and open the Xcode workspace file. So, that's it. That's how you actually import the Parse SDKs in your own project. After this indexing is complete, we can try to see if we really managed to get the Parse in our project. And we can see Parse being here. So, I believe that's good, but we have to try to be certain that we can run, we can call the Parse classes or Parse methods and functions. So, after the processing and indexing completes, you can come over here to try importing Parse like this. And this works for me as you can see I can import the Parse and I can call Parse classes here saying Parse. So, this is good. Let me delete this. But if you didn't work in your case, if you cannot import Parse, you can come over here to your General settings. And under these Build Phases, you can see something called link binary with libraries. In fact, all you have to do is just import these pods FoursquareClone framework as you can see. But if it doesn't work, you can just bring in this Bolt and Parse as well saying add on that bottom. But in my case, this works, so I'm not going to mess this up by just adding more libraries over here. So, I'm going to proceed as it is. So far so good, we managed to bring in the SDKs, but this is not enough. We have to configure our Back4App, we have to create an account and create a server in Back4App so that we can connect our project with our server. So, that's what we're going to do in the next lecture.
Atil is an instructor at Bogazici University, where he graduated back in 2010. He is also co-founder of Academy Club, which provides training, and Pera Games, which operates in the mobile gaming industry.