首页 新闻 会员 周边 捐助

Xamarin.IOS调试时抛出异常System.ExecutionEngineException: Attempting to JIT compile method 'IOSNativeLibrary.JPUSHRegisterEntity:.ctor ()' while running with --aot-only.

0
[已关闭问题] 关闭于 2017-10-31 11:11

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 
View Code

JPUSHRegisterEntity类:

 

补充说明一下,这个类是Native Library里编译后的结果。

官方提供的连接不太懂。

HotSky的主页 HotSky | 菜鸟二级 | 园豆:223
提问于:2017-04-03 18:08
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册