【问题标题】:How do I fix 'error HE0042' when trying to launch a Xamarin application in iOS 12 and below尝试在 iOS 12 及更低版本中启动 Xamarin 应用程序时如何修复“错误 HE0042”
【发布时间】:2021-02-25 09:26:47
【问题描述】:

尝试在 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.

模拟器系统日志

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 新生成的应用程序上。

我尝试过的事情没有任何结果:

有没有人遇到过同样的问题,您是如何解决的?

谢谢!

【问题讨论】:

标签: ios xcode xamarin xamarin.ios mono


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2019-10-20
    • 2019-11-12
    • 1970-01-01
    • 2022-01-18
    • 2019-08-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-15
    • 2012-02-24
    相关资源
    最近更新 更多