When I run my swift 3.2 code with Xcode 9 beta 4 this is the error I get:
*** 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/.'
I already have a GoogleService-Info.plist file that is named exactly like it should and it is valid.
Is there any trial to firebase or something like that?
This error occur download google service more than 1 time. When we download first time from firebase, it's like
GoolgeService-Info.Plist
. If you download again, that will comeGoogleService-Info(1).Plist
. We need to remove(1)
fromGoogleService-Info(1).Plist
.GoogleService-info.plist
"finder
under the project name and then drag it into the project to reference it.file inspector
for the plist file and tick the box undertarget membership
to include it as part of theproject
.Unfortunately or fortunately, the error specified is very accurate. There is only one option available right now. i.,e placing
Google-Info.plist
file in your project properly. Try to remove and add that again. Also, check if a target is selected or not.1 - open "GoogleService-Info.plist" and change any or to and
2 - reopen the xamarin solution 3 - it should work now
If you have multiple environments (Production, Develop, Staging), you will need a different Google.plist for each.
They all have to have the same name.
To get around this, create folders for each of these files (one for each environment) and place them inside their corresponding folders.
When you drag the files from the Finder to Xcode, make sure to select the proper environment for each under Target Membership
That will do the trick and allow you to build environments separately. Especially if each environment has a different Bundle ID.