JIT error with LINQ OrderBy using C# on iOS
问题 I'm receiving the following error on my iOS device: ExecutionEngineException: Attempting to JIT compile method 'System.Linq.OrderedEnumerable 1<System.Collections.Generic.KeyValuePair 2>:GetEnumerator ()' while running with --aot-only. I'm using Unity3D, and I know the error is caused because LINQ expressions have issues with ordering value types when compiling Unity to iOS. Because (I think) that the expression attempts to use reflection to instantiate a new type which implements the