且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法在Xamarin.iOS的iOS模拟器上以--aot-only运行?

更新时间:2023-02-25 13:16:44

不,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);

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

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