Create an account
First sign up for a free account.
A new Firebase app will be created for you with a unique URL ending in
firebaseio.com. You'll use this URL to store and sync data.
Within the App Dashboard you can create, manage and delete Firebase apps. Clicking on a specific Firebase app lets you view and modify your app's data in realtime. In the dashboard, you can also set Security and Firebase Rules, manage your app's authentication, deploys, and view analytics.
To initialize CocoaPods in your project, run the following commands:
$ cd your-project-directory $ pod init $ open -a Xcode Podfile # opens your Podfile in XCode
Once you've initialized CocoaPods, just add the Firebase Pod to your Podfile:
pod 'Firebase', '>= 2.5.1'
Then run the command:
$ pod install $ open your-project.xcworkspace
Now you're ready to get started in XCode.
For instructions on including the Firebase framework and its dependencies manually see the guide on alternative setup here.
Getting started in Xcode
Include the Firebase header in your app to get all the needed classes:
You can start using Firebase in your Swift class by simply importing Firebase: