Xamarin.ios

Xamarin.ios ,xamarin.ios,Xamarin.ios,目前我不知道Xamarin有什么方便的解决方案。 然而,Unity 3D有这样一个解决方案 你可以试试。它是LINQtoObjects扩展方法的自定义实现,可以在iOS上工作,而不会出现JIT编译错误。如果您正在使用Xamarin,您可以尝试将.dll从LINQ转换为iOS,并在项目中使用它。毕竟,Xamarin和Unity都使用Mono编译器。目前我不知道Xamarin有什么方便的解决方案。 然而,Unity 3D有这样一个解决方案 你可以试试。它是LINQtoObjects扩展方法的自定义实

目前我不知道Xamarin有什么方便的解决方案。 然而,Unity 3D有这样一个解决方案


你可以试试。它是LINQtoObjects扩展方法的自定义实现,可以在iOS上工作,而不会出现JIT编译错误。如果您正在使用Xamarin,您可以尝试将.dll从LINQ转换为iOS,并在项目中使用它。毕竟,Xamarin和Unity都使用Mono编译器。

目前我不知道Xamarin有什么方便的解决方案。 然而,Unity 3D有这样一个解决方案


你可以试试。它是LINQtoObjects扩展方法的自定义实现,可以在iOS上工作,而不会出现JIT编译错误。如果您正在使用Xamarin,您可以尝试将.dll从LINQ转换为iOS,并在项目中使用它。毕竟,Xamarin和Unity都使用Mono编译器。

好的,现在我用List试过了。干得好!它在模拟器上工作得很好,但在我的设备上却不行。@Alex模拟器使用JIT编译器(不是AOT编译器)来确保尽可能快的开发周期(编辑、构建、调试)。模拟器和设备之间还有其他区别,但大多数与MonoTouch无关。好的,现在我用List试用了一下。干得好!它在模拟器上工作得很好,但在我的设备上却不行。@Alex模拟器使用JIT编译器(不是AOT编译器)来确保尽可能快的开发周期(编辑、构建、调试)。模拟器和设备之间还有其他区别,但大多数与MonoTouch无关。请在上填写错误报告,我们将查看最新的alpha版本(5.3.x)是否解决了这些问题。如果没有,它将被添加到我们的测试套件中,修复后会通知您(在大多数情况下,我们可以根据您的测试用例为您提供解决方案)。请在上填写错误报告,我们将查看解决这些问题的最新alpha发行版(5.3.x)中是否修复了此问题。如果没有,它将被添加到我们的测试套件中,并且在修复后会通知您(在大多数情况下,我们可以根据您的测试用例为您提供解决方案)。我也有这个问题,我非常困惑。从周一到周四,它工作得很好。周四晚上它坏了。在那些日子里,它在我的iPad上工作没有任何问题。我真的很确定我的代码中没有改变任何东西。我也犯了这个错误,我很困惑。从周一到周四,它工作得很好。周四晚上它坏了。在那些日子里,它在我的iPad上工作没有任何问题。我确信我的代码中没有任何更改。
public int GetUsersSqlCount()
{
    // Here i get the Error
    return this.GetUsersSql().Count();
}

public IEnumerable<CsUser> GetUsersSql()
{       
    return (from x in this._storage.CsUsers
           join y in this._storage.CeMitarbs on x.MitNr equals y.MitNr
           select x).OrderBy(x => x.KurzZch);
}
Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile method 'System.Linq.Enumerable:<ToLookup`2>m__5A<Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CeMitarb, System.Nullable`1<int>> (Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CeMitarb)' while running with --aot-only.

  at System.Linq.Enumerable.ToLookup[CeMitarb,Nullable`1,CeMitarb] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00079] in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2966 
  at System.Linq.Enumerable.ToLookup[CeMitarb,Nullable`1] (IEnumerable`1 source, System.Func`2 keySelector, IEqualityComparer`1 comparer) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2934 
  at System.Linq.Enumerable+<CreateJoinIterator>c__Iterator18`4[Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CsUser,Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CeMitarb,System.Nullable`1[System.Int32],Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CsUser].MoveNext () [0x00023] in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:1157 
  at System.Collections.Generic.List`1[Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CsUser].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CsUser]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[CsUser] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at System.Linq.QuickSort`1[Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CsUser]..ctor (IEnumerable`1 source, System.Linq.SortContext`1 context) [0x00000] in <filename unknown>:0 
  at System.Linq.QuickSort`1+<Sort>c__Iterator2F[Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CsUser].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.Count[CsUser] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at CSMobile.Logic.Forms.Login_Dal.GetUsersSqlCount () [0x00000] in /Volumes/Mobile2011/Mobile 2011/trunk/WinCE/CSMobile/CSMobile.Logic/Forms/Login.Dal.cs:38 
  at CSMobile.Logic.Forms.Login_Logic.GetUsers () [0x0001f] in /Volumes/Mobile2011/Mobile 2011/trunk/WinCE/CSMobile/CSMobile.Logic/Forms/Login.Logic.cs:198 
  at CSMobile.Logic.Forms.Login_Logic.Anmelden2 (Int32 selectedProduct) [0x00050] in /Volumes/Mobile2011/Mobile 2011/trunk/WinCE/CSMobile/CSMobile.Logic/Forms/Login.Logic.cs:416 
  at CSMobile.UI.Login.Logic_LoginStepCompleted (Login_StepResult result) [0x0003e] in /Volumes/Mobile2011/Mobile 2011/trunk/IOS/CSMobile/CSMobile.UI/Forms/Login.cs:325 
  at CSMobile.Logic.Forms.Login_Logic.Anmelden1 () [0x00084] in /Volumes/Mobile2011/Mobile 2011/trunk/WinCE/CSMobile/CSMobile.Logic/Forms/Login.Logic.cs:364 
  at CSMobile.UI.Login.StartLogin () [0x00000] in /Volumes/Mobile2011/Mobile 2011/trunk/IOS/CSMobile/CSMobile.UI/Forms/Login.cs:75 
  at CSMobile.UI.Login.Pad_Start_TouchUpInside (MonoTouch.Foundation.NSObject sender) [0x00000] in /Volumes/Mobile2011/Mobile 2011/trunk/IOS/CSMobile/CSMobile.UI/Forms/Login.cs:235 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:34 
  at CSMobile.UI.Application.Main (System.String[] args) [0x0000a] in /Volumes/Mobile2011/Mobile 2011/trunk/IOS/CSMobile/CSMobile.UI/Main.cs:18 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException: Attempting to JIT compile method 'System.Linq.Enumerable:<ToLookup`2>m__5A<Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CeMitarb, System.Nullable`1<int>> (Genesis.DataAccess.Schema.Mobile.V1.Wrapper.CeMitarb)' while running with --aot-only.