我试图通过MonoTouch中的Debug | iPhone选项在iOS设备上运行我们的应用程序。然而,我们遇到问题的速度相当快。但下列情况除外使用LINQ在设备上单击JIT错误
Attempting to JIT compile method "System.Linq.Enumerable:<FirstOfDefault`1>m_13<int> (int)" while running with aot-only.
应用程序崩溃现在我明白了这个问题来自于通用的部分是JIT,这是不允许的实际iOS设备上。我无法找到的是如何解决它。
下面是它崩溃的代码:
int nextTag = (from tag in _cellControllers.Keys
where tag > currentTag
select tag).FirstOrDefault();
_cellControllers是
Dictionary <int, UITableViewSource>
我怎样才能防止这种错误的发生?
究竟是哪种通用词典? –
看我的第一篇文章。不得不编辑它,所以它会显示类型,因为在这里stackoverflow格式化。嘿:) – Kroan