iOS 16模拟器:在模拟器中运行一个应用程序会导致“ .xpc错误”

发布于 2025-02-08 17:13:16 字数 3173 浏览 2 评论 0 原文

在更新MACOS 13.0 beta并安装Xcode 14.0 Beta之后,我们运行一个应用程序,将目标OS设置为16。发生以下错误:

“”

iPhones模拟器在手动启动时都不会启动:

在这里描述问题的详细错误消息:

Details

The operation couldn’t be completed. xpc error
Domain: NSPOSIXErrorDomain
Code: 64
Failure Reason: xpc error
User Info: {
    DVTErrorCreationDateKey = "2022-06-17 16:19:12 +0000";
    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone14,3";
    "device_osBuild" = "16.0 (20A5283p)";
    "device_platform" = "com.apple.platform.iphonesimulator";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = "x86_64";
    "operation_duration_ms" = 44430;
    "operation_errorCode" = 64;
    "operation_errorDomain" = NSPOSIXErrorDomain;
    "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_consoleMode" = 0;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphonesimulator";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 0;
    "param_launcher_substyle" = 0;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphonesimulator16.0";
    "sdk_osVersion" = "16.0";
    "sdk_variant" = iphonesimulator;
}
--


System Information

macOS Version 13.0 (Build 22A5266r)
Xcode 14.0 (21257.0.0.0.22) (Build 14A5228q)
Timestamp: 2022-06-17T11:19:12-05:00

在运行iPados 16.0的物理iPad上运行同一应用不会引起任何问题。

After updating to macOS 13.0 Beta and installing Xcode 14.0 Beta we run an app where we set the target OS to 16. The following error occurs:

The iPhones simulators won't start either when started manually:

enter image description here

Here the detailed error message describing the issue:

Details

The operation couldn’t be completed. xpc error
Domain: NSPOSIXErrorDomain
Code: 64
Failure Reason: xpc error
User Info: {
    DVTErrorCreationDateKey = "2022-06-17 16:19:12 +0000";
    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone14,3";
    "device_osBuild" = "16.0 (20A5283p)";
    "device_platform" = "com.apple.platform.iphonesimulator";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = "x86_64";
    "operation_duration_ms" = 44430;
    "operation_errorCode" = 64;
    "operation_errorDomain" = NSPOSIXErrorDomain;
    "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_consoleMode" = 0;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphonesimulator";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 0;
    "param_launcher_substyle" = 0;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphonesimulator16.0";
    "sdk_osVersion" = "16.0";
    "sdk_variant" = iphonesimulator;
}
--


System Information

macOS Version 13.0 (Build 22A5266r)
Xcode 14.0 (21257.0.0.0.22) (Build 14A5228q)
Timestamp: 2022-06-17T11:19:12-05:00

Running the same app on a physical iPad running iPadOS 16.0 does not cause any problems.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

浅笑依然 2025-02-15 17:13:16

我遇到了一个类似的问题,我解决了以下问题:
关于此Mac>存储>管理>开发人员并打开屏幕,删除所有缓存,然后应该很好地工作。

I met a similar issue, and I solved like below:
About this Mac > Storage > Manage > Developer and Open the screen, delete all cache, then it should work well.

Screenshot

牵你手 2025-02-15 17:13:16

当Xcode试图启动您的应用程序时,此错误很可能代表系统应用程序(iOS的跳板)崩溃。肯定可能还有其他原因,但是自XCode 14以来,我分析的每份报告都与Springboard终止有关(由于Antoher过程中的崩溃,例如Simmetalhost崩溃)。

如果遇到此问题,请在此状态(不要退出simulator.app)时收集以下数据(通过在terminal.app中运行命令):

  1. sudo sysdiagnose
  2. xcrun simctl诊断

This error most likely represents the system app (SpringBoard in the case of iOS) crashing while Xcode is trying to launch your application. There could certainly be other causes, but every report I've analyzed since Xcode 14 has been related to SpringBoard terminating (either crashing itself or being torn down because of a crash in antoher process, like SimMetalHost).

If you encounter this issue, please collect the following data (by running the commands in Terminal.app) while in this state (don't quit Simulator.app):

  1. sudo sysdiagnose
  2. xcrun simctl diagnose

File a feedback assistant report at http://bugreport.apple.com including the tarballs that resulted from those above two commands. Feel free to add a comment here with your FB# if you want me to connect your FB report back to you or you have questions about your specific case.

遥远的绿洲 2025-02-15 17:13:16

通过在Xcode中创建新的模拟器,并使用可用的OS版本来解决这个问题。

我认为不再可用的OS版本(可能被错误删除)。

希望它也对您有用!

The problem is solved for me by creating a new simulator in Xcode, with available OS version.

I think the OS version wasn’t available anymore (maybe deleted by error).

Hope it work for you too !

梦在夏天 2025-02-15 17:13:16

它对我有用:
1. Unistall Xcode
2.重新安装xcode

It works for me:
1.Unistall Xcode
2.Reinstall Xcode

你与昨日 2025-02-15 17:13:16

解决了这个问题,开放式查找器>应用> xcode-beta>右键单击>获取信息>清单“使用Rosetta打开”

This issue is solved, open finder > applications > xcode-beta > right click > get info > checklist 'open using Rosetta'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文