rhishikeshj / Xamarin.GoogleAuth

Cross platform plugin for doing Google Authentication for Xamarin iOS and Android apps
BSD 2-Clause "Simplified" License
8 stars 4 forks source link

iOS fails - Invalid IL code in GoogleSignIn #5

Open EdHubbell opened 7 years ago

EdHubbell commented 7 years ago

First, @rhishikeshj, thanks for the effort you've put into this project. Much appreciated. Finally got Droid working, and love the way it behaves.

Now for iOS - I can't get the sample iOS project to initialize. Here's the error I get when running in the simulator:

screen shot 2017-05-14 at 11 21 28 pm

I get this no matter what I send in as a clientId.

Steps to reproduce: Clone current repo. Open in Xamarin Studio or Visual Studio on Mac Update to Xamarin Forms 2.3.4.231 (wouldn't let me run otherwise). Run GoogleAuthSample.iOS in a simulator

Details: at Plugin.GoogleAuth.GoogleAuthImpl.Init (System.Collections.Generic.Dictionary`2[TKey,TValue] config) [0x00035] in /Development/github/authAgain/Xamarin.GoogleAuth/Plugin.GoogleAuth.iOS/GoogleAuthiOS.cs:122 at GoogleAuthSample.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication uiApplication, Foundation.NSDictionary launchOptions) [0x0003a] in /Development/github/authAgain/Xamarin.GoogleAuth/iOS/AppDelegate.cs:23 at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/4691/3e5ac5ff/source/xamarin-macios/src/UIKit/UIApplication.cs:79 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/4691/3e5ac5ff/source/xamarin-macios/src/UIKit/UIApplication.cs:63 at GoogleAuthSample.iOS.Application.Main (System.String[] args) [0x00001] in /Development/github/authAgain/Xamarin.GoogleAuth/iOS/Main.cs:17

I'd run it on a device, but I get an error like

Native linking failed for '/Development/github/authAgain/Xamarin.GoogleAuth/iOS/obj/iPhone/Debug/device-builds/ipad5.1-10.3.1/mtouch-cache/arm64/libGoogleSignIn.dll.dylib'

If anything jumps out at anyone, please let me know. Not sure if anyone has already resolved a similar issue .