9

I am trying to implement Google Sign in for Xamarin.iOS app.i have added the package Google Sign-In for iOS required for Sign in process.had Setup AppDelegate, added GoogleService-Info.plist to the Xamarin.iOS app project. when i run the build it displays an error below.

[Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.

Error configuring the Google context: The operation couldn’t be completed. (com.google.greenhouse error -3.)

5 Answers 5

17

Make sure that the file is in your {Project}.iOS build and that the file is exactly called "GoogleService-Info.plist". Also be sure that you set the build action of the "GoogleService-Info.plist" file to: BundleResource

For a full tutorial take a look at: https://components.xamarin.com/gettingstarted/firebaseioscloudmessaging (this is a link for cloud messages but the first part is the same for all firebase services)

1
  • This link no longer exists :( Sep 12, 2018 at 23:53
14

In Visual Studio for Windows,

Include the GoogleService-Info.plist file in the IOs project root,

enter image description here

Then right click on the GoogleService-Info.plist file and go to Properties. Under Properties, set BundleResource for Build Action,

enter image description here

That's all you have to do 😉. Now just clean the project, delete the bin and obj directories, then run the project 😊

1
  • 2
    This is the answer Apr 16, 2019 at 16:30
4
  1. Open "GoogleService-Info.plist" and change any <true></true> or <false></false> to <true /> and <false />
  2. Reopen the xamarin solution
  3. It should work now, worked for me.

Copied from link

1

Open "GoogleService-Info.plist" in editor and change any or to and Reopen the xamarin solution It will work now

0

For me (besides other problems already mentioned here) the Problem was that GoogleService-Info.plist was ticked for "iOS Optimization" in the Properties resulting in unreadable gibberish after building.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.