xcode 如何修复在iOS 12及以下版本中尝试启动Xamarin应用程序时出现的“错误HE0042”

rqenqsqc  于 2022-12-14  发布在  iOS
关注(0)|答案(2)|浏览(96)

当我尝试在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新生成的应用程序上。
我尝试过的事情没有任何结果:

是否有人遇到过同样的问题?您是如何解决的?
谢谢你!

bttbmeg0

bttbmeg01#

在Visual Studio的iOS项目属性中,我在“iOS Build”下选中了“Use the concurrent garbage collector”。这在我的情况下处理了它。

r55awzrz

r55awzrz2#

我在调试iPhone模拟器时也遇到过这种情况。对我来说,修复的方法是将项目的iOS Bundle Signing -〉Custom Entitlements设置为Entitlements. plist。这将强制应用程序进行签名。

相关问题