ios - 尝试在 iOS 12 及更低版本中启动 Xamarin 应用程序时如何修复 'error HE0042'

标签 ios xcode xamarin xamarin.ios mono

尝试在 iOS 12 及更低版本上启动 Xamarin.iOS 应用程序时出现以下错误(iOS 13 及更高版本确实可以正常启动应用程序):
调试输出:

error HE0042: Could not launch the app 'com.companyname.App1' on the device 'iOS 12.2 (16E226) - iPhone 8 Plus': The request to open "com.companyname.App1" failed.
模拟器系统.Log
com.apple.CoreSimulator.SimDevice.B80099F4-F084-4872-A08A-87BD762045BF[2469] (UIKitApplication:com.companyname.App1[0x3536][2491][3415]): removing service since it exited with consistent failure - OS_REASON_EXEC
甚至在使用 VS for Mac 或 Rider 新生成的应用程序上也会发生此错误。
我尝试过但没有任何结果的事情:
  • 删除模拟器中的所有内容和设置 ( https://forums.xamarin.com/discussion/65978/debugger-wont-start-app-on-ios-device )
  • 重新安装 CoreSimulator ( Xamarin.iOS: Cannot run after Visual Studio 2019 Update )
  • 清理项目,删除 bin 和 obj 文件夹并重建项目

  • 有没有人遇到过同样的问题,你是如何解决的?
    谢谢!

    最佳答案

    在 Visual Studio 中“iOS 构建”下的 iOS 项目属性中,我选中了“使用并发垃圾收集器”。
    在我的情况下处理了它。

    关于ios - 尝试在 iOS 12 及更低版本中启动 Xamarin 应用程序时如何修复 'error HE0042',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66365754/

    相关文章:

    ios - Swift 3 - 使用 Siri 运行具有特定关键字的应用程序

    ios - PhoneRTC 64 位支持吗?

    xamarin - 在 AppCenter 中设置 android 应用程序签名时的密码

    android - 错误 - 找不到与给定名称匹配的资源(在 'MvxItemTemplate' 处,值为 '@layout/itemc')

    Android 模拟器 - 无法截图 - 不支持的协议(protocol) : 2

    没有服务器代码的 iOS cron 作业

    c++ - 从 C++ 函数访问数据到 UITextView Controller

    ios - 如何将 NSData 对象转换为 UIImage?使用 swift

    xcode - ionic 无法加载网页,错误为 : Could not connect to the server

    objective-c - 如何处理 '[<__NSCFString 0x2f1730> valueForUndefinedKey:]: this class is not key value coding-compliant for the key $oid' 错误