I am using ServiceStack.Client (5.0.2) in a Xamarin.Form (.NET Standard 2.0) project. When debugging the iOS app on iOS devices, it throws an exception: System.ExecutionEngineException:
Attempting to JIT compile method ‘(wrapper delegate-invoke) :invoke_callvirt_void_HttpWebRequest_bool (System.Net.HttpWebRequest,bool)’ while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
Running with Simulators doesn’t have this issue.
Part of my code is as the following:
using ServiceStack;
private static JsonServiceClient apiClient = new JsonServiceClient(“https://someurl”);
var auth = new Authenticate();
auth.UserName = name;
auth.Password = password;
authResp = apiClient.Post(auth);