Xamarin.iOS Google+ Login

peterlinpeterlin TWMember
edited September 2014 in Xamarin.iOS

Hi, I'm using the component https://components.xamarin.com/gettingstarted/googleplusandplayios

When I add this component into my Xamarin.iOS project and click compile, and error shows up, I've searched some articles but have no result ...

In iOS device

Error MT2002: Failed to resolve "MonoTouch.ObjCRuntime.BaseWrapper" reference from "monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" (MT2002)

In iOS Simulator

2014-09-29 14:24:25.186 GooglePlusSample[5122:70b] Could not register the assembly 'Google.Plus': System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.

at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in :0
at MonoTouch.Registrar.DynamicRegistrar.CollectTypes (System.Reflection.Assembly assembly) [0x00000] in :0
at MonoTouch.Registrar.Registrar.RegisterAssembly (System.Reflection.Assembly assembly) [0x00000] in :0
2014-09-29 14:24:26.123 GooglePlusSample[5122:3c03] You are using Google+ iOS SDK version 1.7.0
2014-09-29 14:24:26.124 GooglePlusSample[5122:3c03] Get the new version 1.7.1 at https://developers.google.com/+/mobile/ios/getting-started

Finally, I decided to build the dll myself from
https://github.com/mono/monotouch-bindings/tree/master/GooglePlusAndPlayGameServices

but I still face some problems

1st. There is no "PlayGameServices.v1.0.zip" on Google anymore

unzip PlayGameServices.v1.0.zip

Archive: PlayGameServices.v1.0.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of PlayGameServices.v1.0.zip or
PlayGameServices.v1.0.zip.zip, and cannot find PlayGameServices.v1.0.zip.ZIP, period.
make[1]: *** [PlayGameServices.v1.0.zip] Error 9
make: *** [build-binding] Error 2

2nd. I download "GooglePlayGames-iOS-SDK.v3.0.zip" instead, and change the file name in "GooglePlayGames-iOS-SDK.v3.0.zip"
but it still build fail.

Here is the error log [https://docs.google.com/document/d/1fDt56WNllwGWdxgHsyxovrddoM4L4JkdDnemtOc5bGc/edit)

is there any other library I can use? or any suggestion of logging into google plus?

Thanks!

Posts

  • AlexSotoAlexSoto MXXamarin Team Xamurai

    You need to update to latest stable Xamarin.iOS (8.x) in order to use the GooglePlay component.

Sign In or Register to comment.