简体   繁体   English

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

[英]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.

相关问题 Xamarin iOS:System.ExecutionEngineException。 详细信息:在仅 aot 模式下运行时尝试 JIT 编译方法 - Xamarin iOS: System.ExecutionEngineException. Details: attempting to JIT compile method while running in aot-only mode Xamarin.iOS模拟器不显示 - Xamarin.iOS Simulator not display Xamarin.iOS应用程序无法在模拟器上运行(可能是在上次Xamarin.iOS更新后) - Xamarin.iOS application failed to run on simulator(Probably after last Xamarin.iOS update) Xamarin.iOS在6.1模拟器上崩溃 - Xamarin.iOS crash on 6.1 simulator 无法在 Xamarin.iOS 上 AOT Microsoft.CSharp.dll 的程序集 - Could not AOT the assembly for Microsoft.CSharp.dll on Xamarin.iOS 地理围栏事件在模拟器上不起作用(Xamarin.ios) - Geofencing events not working on simulator (Xamarin.ios) 在没有完整 AOT 的 Xamarin.iOS 中使用 Protobuf-Net - Using Protobuf-Net In Xamarin.iOS without full AOT Xamarin.ios 不适用于真正的 iOS 设备,但它适用于模拟器 - Xamarin.ios does NOT work on real iOS device but it works on Simulator Xamarin.Ios应用程序在启动时(在Simulator和iPhone中)终止,仅说明“该应用程序已终止” - Xamarin.Ios App terminates while starting (in Simulator and iPhone) only stating “The App has been terminated” 绑定的Xamarin.iOS库子类在模拟器上崩溃 - Bound Xamarin.iOS library subclass crashes on simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM