[英]Is there a way to run with --aot-only on the iOS Simulator with Xamarin.iOS?
When I test my app directly on the device, it crashes because I'm attempting to JIT-compile a method. 当我直接在设备上测试我的应用程序时,由于我尝试JIT编译方法而导致崩溃。 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).
这比每次都部署到设备要容易得多(它也花费更少的时间)。
I tried adding --aot-only to the mtouch arguments but I get the "Unknown command line argument" error. 我尝试将--aot-only添加到mtouch参数,但出现“未知命令行参数”错误。
No, there's no AOT compiler shipped for x86. 不,x86没有附带AOT编译器。
Now even if there was one it would: 现在即使有一个,它也会:
a) become a lot slower to build. a)制作速度变慢了很多。 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) still give you different results than iOS devices. b)与iOS设备相比,给您的结果仍然不同。 The iOS simulator is, in many ways, different than iOS devices so testing on devices is very important.
iOS模拟器在许多方面与iOS设备不同,因此在设备上进行测试非常重要。
Notes: 笔记:
A lot of the JIT exceptions are related to the use of value-types inside generics. 许多JIT异常与泛型内部使用值类型有关。 This is being, in large part, fixed in the 6.3.x releases (beta);
这在6.3.x版本(beta)中已得到修复。
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.
你可以找到一些在这里的计算器和(即将)在我的进化2013的视频演示应该可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.