iOS应用商店ExecutionEngineException试图JIT编译 [英] iOS App Store ExecutionEngineException attempting to JIT compile

查看:282
本文介绍了iOS应用商店ExecutionEngineException试图JIT编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常尴尬的问题。我建立我的应用程序适用于iOS和测试它在所有的仿真器和它工作正常。我已经安装了它的设备(iPhone 6加号)上,并且正常工作为好。然而,当我把它提交给应用程序商店,反馈是,它崩溃上所有设备的推出。崩溃日志附件是此错误;

I have a really awkward problem. I have build my app for iOS and tested it on all emulators and it works fine. I have installed it on a device (iPhone 6 plus) and that works fine as well. However, when I submit it to the app store, the feedback is that it crashes on launch on all devices. The crash log attached shows this error;

Unhandled Exception:
    System.ExecutionEngineException: Attempting to JIT compile method 'GalaSoft.MvvmLight.Messaging.Messenger:get_Default ()' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.

在code导致此错误是在viewWillAppear中;

The code that causes this error is in ViewWillAppear;

Messenger.Default.Register<LoggedInFailedMessage>(this, LoginFailed);
Messenger.Default.Register<LoggedInMessage>(this, LoggedIn);

下面的堆栈溢出线程似乎表明它可能会通过使用值类型造成的,但我使用引用类型。

The below stack overflow thread seems to indicate it might be caused by using value types, but I am using reference types.

<一个href=\"http://stackoverflow.com/questions/12837517/system-executionengineexception-attempting-to-jit-compile-method-only-in-debug\">System.ExecutionEngineException:试图JIT编译方法仅在调试模式器件(MonoTouch的)

任何意见将大大AP preciated!我不知道我怎么可以测试这些错误,如果他们的工作,当我在调试仿真器和设备,但未能当苹果测试。

Any ideas would be greatly appreciated! I don't know how I can test for these errors if they work when i debug on emulator and device but fail when apple test it.

推荐答案

多数,其中前固定时间长了这些问题。确保您的选项,在的AppStore 建立(或者你用于提交一个)与您正在测试的一个(例如调试版本)。

Most of those issues where fixed a long time ago. Make sure your options for the AppStore builds (or the one you used to submit) match the one you're testing (e.g. Debug builds).

在特别确保在启用通用值类型共享选项为打开您所提交的版本。这将包括一些额外的code,以确保所有的值类型code路径变量在运行时可用。

In particular make sure that the Enable generic value type sharing options is ON on the build you are submitting. This will include some extra code to ensure all value types code path variants are available at runtime.

请注意,此设置应已打开按默认值。它仍然是一个很好的做法,以确保您的调试/释放设置的大多的(除调试东西)是相同的。否则,你的风险测试不同的code,在本地,比你要提交到商店的东西。

Note that this setting should already be ON by default. Still it's a good practice to ensure your debugging/release settings are mostly (except debugging stuff) identical. Otherwise you risk testing different code, locally, than what you're submitting to the store.

这篇关于iOS应用商店ExecutionEngineException试图JIT编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆