Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find a valid GoogleService-lnfo.plist

enter image description here

'`[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/.'

I already try to replace a new GoogleService-Info.plist to my project but it still having the same problem.

like image 684
Ice Avatar asked Jan 26 '26 03:01

Ice


1 Answers

enter image description hereMake sure your plist file is:

  • Downloaded from your Firebase project
  • Added to Copy Bundle Resources (Choose your target -> Build Phase -> Copy Bundle Resources)

Or try to add that file from Menu as below enter image description here

I see the log states that No app has been configured yet. enter image description here

Let's try add these lines of code in the beginning of your AppDelegate

if FirebaseApp.app() == nil {
    let path = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist")
    let firbaseOptions = FirebaseOptions(contentsOfFile: path!)
    FirebaseApp.configure(options: firbaseOptions!)
}
like image 65
jacob Avatar answered Jan 27 '26 18:01

jacob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!