Using latest Visual studio for Mac 8.0.9.
My stuff works on ios simulator perfectly, function is called, returning the valid result.
BUT its not working on a real device. Device is a iPad 5th gen so arm64.
Using fat lib, lipo verified that arm64, x86, armv7 are all there.
The error i get: Attempting to JIT compile method 'mymethod (string, string)' while running in aot-only mode.
The definition of the invoke is
[global::System.Runtime.InteropServices.DllImport("__Internal", EntryPoint = "mymethod")]
public static extern global::System.IntPtr mymethod(string arg1, string arg2);
I created a test project where i directly add the .a files as BundleResources and using mtouch arguments. All seems valid as it works in simulator.
In default i used Bindings project, i got the same error. So it seems something else is wrong.
As i read this issue comes when you have some generic stuff in the interface, but i dont have any. And all the libraries are build static libs.
I enabled the optimization in the compiler, didnt help.
I hope somebody can help me with this.
Many many thanks!