ios - xamarin 构建在模拟器上通过但在真实设备上失败

标签 ios exception xamarin

我正在使用 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/

相关文章:

ios - 如何将 Swift CocoaPods 与桥接头文件集成

mysql 使用 signal/resignal 进行错误处理

.net - Try-Finally block 上的 Final 内的异常

java - 何时使用扩展 RuntimeException 的用户定义类?

c# - Xamarin - 按 "Add NuGet Packages..."没有任何作用

ios - 从Safari分享扩展中获取HTML?

ios - 从 NSMutableArray 添加按钮到 UIActionSheet

c# - 如何在 iOS mono 中禁用后退按钮

ios - SwiftUI 中的自定义模式转换

android - 在空白 Xamarin.Forms 应用程序中生成错误