firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

Getting errors when update to lastest version 5.16 #2377

Closed adrianortuzar closed 5 years ago

adrianortuzar commented 5 years ago

Hi currently I am working in Xcode: Version 10.1

I updated to the latest version of Firebase:

pod 'Firebase', '~> 5.16.0'
pod 'FirebaseCore', '~> 5.2.0'
pod 'FirebaseMessaging', '~> 3.3.0'
pod 'FirebasePerformance', '~> 2.2.2'
pod 'FirebaseRemoteConfig', '~> 3.1.0'

I am getting those errors when I am calling RemoteConfig.remoteConfig().fetch

5.16.0 - [Firebase/Performance][I-PRF100005] FIRInstanceID error: Error Domain=com.firebase.iid Code=1005 "(null)"

5.16.0 - [Firebase/InstanceID][I-IID003009] Failed to fetch default token Error Domain=com.firebase.iid Code=1005 "(null)"

Everything works fine when I back to:

pod 'Firebase', '~> 5.14.0'
pod 'FirebaseCore', '~>5.1.9'
pod 'FirebaseMessaging', '~> 3.2.2'
pod 'FirebasePerformance', '~> 2.2.1'
pod 'FirebaseRemoteConfig', '~> 3.1.0'
google-oss-bot commented 5 years ago

I found a few problems with this issue:

adrianortuzar commented 5 years ago

I found that if you initialise Firebase FirebaseApp.configure() first thing in the func application(_ application: UIApplication, didFinishLaunchingWithOptions everything works fine.