Experiencing some rather odd issues with Firebase.. I have installed firebase through cocoaPods, included the GoogleService-Info.plist, etc - but when I try to read a value
This error message indicates that the project in the token doesn't match the project that your app is connecting to. From a post on the firebase-talk group:
There are a couple ways you may hit this:
You've changed your GoogleService-Info.plist to point at a different project, but your app still has a cached token from a previous run.
I believe the iOS Simulator shares the keychain between apps, so if you have multiple apps using Firebase, one app might be picking up the token cached by another app. This only happens in the simulator and we're working on changing the Firebase SDK to avoid this.
In either case, you can probably resolve the issue by doing an explicit
signOut()
call before initializing Firebase Database.