Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.iOS app project App doesn't recognize GoogleService-Info.plist

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.)

like image 871
govind kumar Avatar asked Feb 07 '17 06:02

govind kumar


People also ask

Where do I put GoogleService-info plist?

Add your GoogleService-Info. plist file is something you can download from your Firebase's project settings. Drag your GoogleService-Info. plist to the Runner folder.


2 Answers

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)

like image 158
Jörgen Dijk Avatar answered Oct 14 '22 02:10

Jörgen Dijk


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 😊

like image 13
Rizan Zaky Avatar answered Oct 14 '22 02:10

Rizan Zaky