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.)
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)
In Visual Studio for Windows ,
Include the GoogleService-Info.plist file in the IOs project root,
Then right click on the GoogleService-Info.plist file and go to Properties . Under Properties, set BundleResource for Build Action ,
That's all you have to do 😉. Now just clean the project, delete the bin and obj directories, then run the project 😊
<true></true> or <false></false>
to <true /> and <false />
Copied from link
在编辑器中打开“GoogleService-Info.plist”并将任何或更改为并重新打开xamarin解决方案它现在可以工作
对我来说(除了这里已经提到的其他问题)问题是 GoogleService-Info.plist 在属性中勾选了“iOS 优化”,导致构建后出现不可读的乱码。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.