I call AppCenter.Start in my app's OnStart method. This works fine if I build and deploy to an iOS simulator BUT if I build and deploy to a connected iPhone I get the following crash on start up:
[0:] An error occurred: 'Could not create an native instance of the type 'Microsoft.AppCenter.iOS.Bindings.MSACWrapperSdk': 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
at Foundation.NSObject..ctor (Foundation.NSObjectFlag x) [0x0000d] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSObject2.cs:147
at Microsoft.AppCenter.iOS.Bindings.MSACWrapperSdk..ctor (System.String wrapperSdkVersion, System.String wrapperSdkName, System.String >wrapperRuntimeVersion, System.String liveUpdateReleaseLabel, System.String liveUpdateDeploymentKey, System.String liveUpdatePackageHash) <0x114830990 + >0x0000a> in <ec0f0f70541d48dcbe5905e6d8ddf187>:0
at Microsoft.AppCenter.AppCenter.SetWrapperSdk () <0x11482ff58 + 0x00012> in <e3f0b909e1aa4c5e99f60c97981cd946>:0
at Microsoft.AppCenter.AppCenter.PlatformStart (System.String appSecret, System.Type[] services) <0x11482fc70 + 0x00002> in ><e3f0b909e1aa4c5e99f60c97981cd946>:0
at Microsoft.AppCenter.AppCenter.Start (System.String appSecret, System.Type[] services) <0x11482f768 + 0x00008> in <e3f0b909e1aa4c5e99f60c97981cd946>:0
Using Visual Studio Professional 2019 16.11