1.- Add your OneSignal appId in the AppDelegate steps 1 and 3
2.- delete GoogleService-Info.plist from the project and add yours (details below -> add firebase to your ios project)
3.- in the project folder run: pod install, that’s it.
CocoaPods is built with Ruby and is installable with the default Ruby available on OS X. We recommend you use the default ruby.
Using the default Ruby install can require you to use
sudo when installing gems. Further installation instructions are in the guides.
# Xcode 8 + 9 $ sudo gem install cocoapods
Add Firebase to your iOS Project
- Create a Firebase project in the Firebase console, if you don’t already have one. If you already have an existing Google project associated with your mobile app, click Import Google Project. Otherwise, click Add project.
- Click Add Firebase to your iOS app and follow the setup steps. If you’re importing an existing Google project, this may happen automatically and you can just download the config file.
- When prompted, enter your app’s bundle ID. It’s important to enter the bundle ID your app is using; this can only be set when you add an app to your Firebase project.
- At the end, you’ll download a
GoogleService-Info.plistfile. You can download this file again at any time.
- If you haven’t done so already, add this file to your Xcode project root using the Add Files utility in Xcode (From the File menu, click Add Files). Make sure the file is included in your app’s build target.