Open mikthemonster opened 4 years ago
A few months to late this was posted in 2019 !
[0:] An error occurred: 'Could not create an native instance of the type 'Google.Maps.MapView': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.'. Callstack: ' at Foundation.NSObject.InitializeObject (System.Boolean alloced) [0x0002e] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSObject2.cs:247
Any updates on this. Still having this issue. Worked before, then I put down the project for a year and when I came back to it I get this issue.
VERSIONS
PLATFORMS
ACTUAL BEHAVIOR
After updating Xamarin.Forms.GoogleMaps from version 3.2.1 to 3.3.0 our build server (Visual Studio App Center) fails to build for IOS. We get the following error:
MTOUCH : error MT2101: Can't resolve the reference 'Foundation.NSArray Foundation.NSArray::FromNSObjects(!!0[])', referenced from the method 'System.Void Google.Maps.Polyline::set_Spans(Google.Maps.StyleSpan[])' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [/Users/runner/runners/2.159.2/work/1/s/iOS/WorkingWithMaps.iOS.csproj]
If I re-install v 3.2.1 the build is working, but as soon as I update to 3.3.0 the build fails.