IOS项目里我新建一个对象
调试的时候会抛出下面这个异常
System.ExecutionEngineException: Attempting to JIT compile method 'IOSNativeLibrary.JPUSHRegisterEntity:.ctor ()' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information. at App1.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00018] in e:\YCX\Documents\visual studio 2013\Projects\XamarinPro\App1\App1.iOS\AppDelegate.cs:35 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/3985/ba11e481/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/3985/ba11e481/source/xamarin-macios/src/UIKit/UIApplication.cs:63 at App1.iOS.Application.Main (System.String[] args) [0x00001] in e:\YCX\Documents\visual studio 2013\Projects\XamarinPro\App1\App1.iOS\Main.cs:19 2017-04-03 11:20:30.282 App1.iOS[505:204344] Unhandled managed exception: Attempting to JIT compile method 'IOSNativeLibrary.JPUSHRegisterEntity:.ctor ()' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information. (System.ExecutionEngineException) at App1.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00018] in e:\YCX\Documents\visual studio 2013\Projects\XamarinPro\App1\App1.iOS\AppDelegate.cs:35 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/3985/ba11e481/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/3985/ba11e481/source/xamarin-macios/src/UIKit/UIApplication .cs:63 at App1.iOS.Application.Main (System.String[] args) [0x00001] in e:\YCX\Documents\visual studio 2013\Projects\XamarinPro\App1\App1.iOS\Main.cs:19
JPUSHRegisterEntity类:
补充说明一下,这个类是Native Library里编译后的结果。
官方提供的连接不太懂。