有没有办法在Xamarin.iOS的iOS模拟器上以--aot-only运行? [英] Is there a way to run with --aot-only on the iOS Simulator with Xamarin.iOS?

查看:159
本文介绍了有没有办法在Xamarin.iOS的iOS模拟器上以--aot-only运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我直接在设备上测试我的应用程序时,由于我尝试JIT编译方法而导致应用程序崩溃。我知道为什么会发生这些崩溃,我只是想让它们在模拟器上测试时出现。比每次都部署到设备要容易得多(它也花费更少的时间)。

When I test my app directly on the device, it crashes because I'm attempting to JIT-compile a method. I know why these crashes occur, I'm just trying to make them appear when I'm testing on the simulator instead. It's much easier than deploying to a device every time (it also takes less time).

我尝试在mtouch参数中添加--aot-only,但得到的是未知的命令行参数错误。

I tried adding --aot-only to the mtouch arguments but I get the "Unknown command line argument" error.

推荐答案

不,x86没有提供AOT编译器。

No, there's no AOT compiler shipped for x86.

现在,即使有一个,它也会:

Now even if there was one it would:

a)构建速度变得很慢。实际上,这将类似于为设备构建。唯一节省的时间是用于部署(这不是构建/部署时间的最大部分);

a) become a lot slower to build. In fact it would be similar to building for devices. The only time saved would be for deployment (which is not the largest part of the build/deploy time);

b)仍然可以为您提供与iOS设备不同的结果。 iOS模拟器在很多方面与iOS设备不同,因此在设备上进行测试非常重要。

b) still give you different results than iOS devices. The iOS simulator is, in many ways, different than iOS devices so testing on devices is very important.

注意:


  • 许多JIT异常与泛型内部值类型的使用有关。大部分情况已在6.3.x版本(测试版)中修复;

  • A lot of the JIT exceptions are related to the use of value-types inside generics. This is being, in large part, fixed in the 6.3.x releases (beta);

有一些技巧可以使设备的构建速度更快。您可以在stackoverflow中找到一些此处,以及(很快)关于我的Evolve 2013的视频演示文稿应该可用。

There are tricks to make your device builds faster. You can find some here in stackoverflow and (soon) the video about my Evolve 2013 presentation should be available.

这篇关于有没有办法在Xamarin.iOS的iOS模拟器上以--aot-only运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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