我正在使用 xamarin 创建一个跨平台的应用程序。我的 android 版本在模拟器和真实设备上运行良好。 ios版本只能在模拟器中运行。当我尝试在真实设备上调试时出现此错误
Error MT2002: Failed to resolve "System.Reflection.Emit.DynamicMethod" reference from "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" (MT2002)
注意更多...
最佳答案
检查 Xamarin.iOS 限制:http://developer.xamarin.com/guides/ios/advanced_topics/limitations/
Since the iPhone's kernel prevents an application from generating code dynamically Mono on the iPhone does not support any form of dynamic code generation.
These include: The System.Reflection.Emit is not available.
关于ios - xamarin 构建在模拟器上通过但在真实设备上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26225730/