segment-integrations / analytics-ios-integration-firebase

Segment's bundled integration for Firebase on iOS
MIT License
13 stars 92 forks source link

Crash on [FIRApp configure] while using firebase config with custom name. #41

Closed lukaszspaczynski closed 2 years ago

lukaszspaczynski commented 5 years ago

Analytics (3.6.10) Segment-Firebase (2.4.0)

In my project, I'm using a firebase configuration file with a custom name.

FirebaseApp.configure(options: FirebaseOptions(contentsOfFile: Bundle.main.path(forResource: GOOGLE_SERVICE_FILE, ofType: "plist")!)!)

It seems to cause a FIRApp crash because there's no GoogleService-Info.plist in the project.

let configuration: SEGAnalyticsConfiguration = SEGAnalyticsConfiguration(writeKey: self.writeKey) configuration.use(SEGFirebaseIntegrationFactory())

*** Terminating app due to uncaught exception 'com.firebase.core', reason: '[FIRApp configure]; (FirebaseApp.configure() in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'

AdieOlami commented 4 years ago

@lukaszspaczynski were you able to fix this?