could not find a valid GoogleService-Info.plist in your project - iOS, Swift, Objective-C - Swift 4 Tutorials W3Schools

Hot

Post Top Ad

25 Sept 2017

could not find a valid GoogleService-Info.plist in your project - iOS, Swift, Objective-C

*** 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/.'
***

Solution 1:

Check the downloaded plist file name. The correct name should be 'GoogleService-Info.plist'.

Some names like GoogleService-Info(3).plist, GoogleService-Info(5).plist are invalid.

Firebase App configuration looks for the 'GoogleService-Info.plist' file. If the name is invalid and the app will crash with the above error.

So change name and Run, it should works without any error.

Solution 2:

Even though changing the name app still crashing then check the selected target for 'GoogleService-Info.plist'

For that first select 'GoogleService-Info.plist' file.

GoogleService-Info.plist'

Next in the right side panel of Xcode, select 'file inspector'. There we can see 'Target Membership' check our target.



Now try Build and Run,it should works without any error.

No comments:

Post a Comment

Post Top Ad