Quickstart
In this section you will learn how to install Parse Swift iOS SDK into your Xcode project.
In this tutorial we will use a basic app created in Swift with Xcode 12 and iOS 14.
At any time, you can access the complete Project built with this tutorial at our GitHub repository.
To complete this tutorial, you need:
- An app created at Back4App.
- Xcode.
- Basic iOS app.
- Note:If you donât have a basic app created you can open Xcode and hit File-> New-> Project -> iOS. Then select App. After you create your basic app you are ready to follow this guide.

ďťż

1.1 - Add the Parse Swift SDK Package - Swift Package Manager
Follow this step if you havenât yet installed Parse iOS SDK.
Newer versions of XCode have the Swift Package Manager built in. This is the easiest and best way to install the Parse Swift SDK on your project and keep it updated.
Currently we only recommend using this method for installing the Parse Swift SDK.
Under the (File) menu, select (Swift Packages) and then (Add Package Dependency)

On the (Choose Package Repository) window, paste the URL for the Parse Swift SDK github website ( https://github.com/parse-community/Parse-Swift ) and click Nextďťż

On the (Repository) window, you can select a Version, Branch or specific Commit. Choose the method you prefer and click Nextďťż

Wait for XCode to resolve all Parse-Swift dependencies and then click Nextďťż

Check if ht package product ParseSwift is checked and your target is correctly selected on Add to Target, then click Nextďťż

The Swift package should appear on the Dependencies tree right under your project, showing its version on the right side:

If you need to update the ParseSwift package, right click it under the Dependencies tree and choose Update Package. The process will automatically update everything for you.

Congratulations! You have now installed the Parse Swift iOS SDK
1.1 - Install the Parse Swift iOS SDK
Follow this step if you havenât yet installed Parse Swift iOS SDK.
Xcode can use CocoaPods as dependency manager for Swift and Objective-C Cocoa projects.
You can refer to CocoaPods Getting Started Guide for additional details.
To install CocoaPods, open your terminal, copy the following code snippet and paste it in to your terminal and hit return:
CocoaPods should install automatically after you enter your password. If thereâs a problem you may need to upgrade your local version of Ruby.
Next open up the Xcode Project folder and open a terminal window in that folder.

Now you are going to create a Podfile. Copy the following code snippet and paste it in to your terminal and hit return:
If your folder now shows your Podfile you did it correctly.

Be careful, If you donât see the podfile make sure your terminal is actually inside the project folder..
Next open your Podfile with Xcode or any text editor and under each target add âpod âParseââ.
Your Podfile will look similar to this:
Now you are going to add Parse Swift to your project. Make sure your terminal is opened to your project folder. Copy the following code snippet and paste it in to your terminal and hit return:
CocoaPods will rebuild the project as a workspace and your project will now look like this.

If you have already opened your Xcode project close it. From now on youâll open the workspace file instead of the project file. Double click on the workspace file to open it.

Congratulations! You have now installed the Parse iOS SDK
- Open your projectâs AppDelegate.swift file to set up the appâs credentials.
- Parse Swift iOS SDK uses these settings to connect to the Back4App servers.
- At the top of the file you should see a function called âdidFinishLaunchingWithOptionsâ.
- Paste the following code snippet inside this function, and make sure it is above the line that says âreturn trueâ.
At the top of your AppDelegate.swift file make sure to include Parse as a module by including the follwing code snippet right below âimport UIKitâ.
Your AppDelegate.swift file should now look like this:
Be careful, If Xcode tells you there is No Such Module âParseâ thereâs an easy solution. In Xcode open âTarget > Build Settings > Search Paths > Framework Search Pathsâ and then add two values: â$(PROJECT_DIR)â and â$(inherited)â. Xcode will now be able to find your Parse module.
- Go to your App Dashboard at Back4App website.
- Navigate to appâs settings: Click on Features > Core Settingsblock> Server.
- Return to your AppDelegate.swift file and paste your applicationId and clientKey.
See more at our New Parse App guide.
Open your ViewController.swift file.
At the top of the file make sure to include Parse as a module by including the follwing code snippet right below âimport UIKitâ.
Inside the function called âviewDidLoadâ add a snippet of code below the code that configures parse.
Then add a function below viewDidLoad() method.
- Build your app in a device or simulator (Command+R).
- Wait until the main screen appears.
- Find your app and click on Dashboardďťż
- Click on Core.
- Go to Browser.
If everything works properly, you should find a class named GameScore and the saved objects in it.
At this point, you have learned how to get started with iOS apps. You are now ready to explore Parse Server core features and Back4App add-ons.
Learn more by walking around our iOS Tutorials or check Parse open source documentation for iOS SDK.
ďťż