Hi I am in a migration of Xamarin.Ios project to net7.0. I am using the “net7.0-ios16.1” as the target framework. When I execute the below code, I am getting the exception.
"Attempting to JIT compile method '(wrapper delegate-invoke) bool <Module>:invoke_callvirt_bool_List`1<bool>_int (System.Collections.Generic.List`1<bool>,int)' while running in aot-only mode."
Please note that the below code is working in the simulator for both debug and release mode. But it is not working on the real device for both Release and Debug mode.
var lambda = Expression.Lambda<Func<Line, bool>>(expression, param);
var filterLines = new ObservableCollection<Line>(iQueryable.Where(lambda));
I have added the below code in the Project.cs page. But still the above crashing .
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
<UseInterpreter>true</UseInterpreter>
<MtouchInterpreter>-all</MtouchInterpreter>
</PropertyGroup>
Can anyone suggest a way to solve this issue.