首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >iOS 16模拟器:在模拟器中运行应用程序会导致"xpc错误“

iOS 16模拟器:在模拟器中运行应用程序会导致"xpc错误“
EN

Stack Overflow用户
提问于 2022-06-17 01:44:26
回答 5查看 5.8K关注 0票数 9

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

当手动启动时,iPhones模拟器也不会启动:

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

代码语言:javascript
运行
复制
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

在运行iPad 16.0的物理iPadOS上运行相同的应用程序不会造成任何问题。

EN

回答 5

Stack Overflow用户

发布于 2022-09-12 04:29:06

我遇到了一个类似的问题,我解决了如下问题:关于这个Mac > Storage > Manage > Developer并打开屏幕,删除所有缓存,然后它就能正常工作了。

票数 12
EN

Stack Overflow用户

发布于 2022-10-19 22:51:57

这个错误很可能是在Xcode试图启动应用程序时系统应用程序(在SpringBoard中是iOS)崩溃的。当然还有其他原因,但我从Xcode 14开始分析的每一份报告都与SpringBoard终止有关(要么是自身崩溃,要么是因为一个进程崩溃,比如SimMetalHost)。

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

  1. sudo sysdiagnose
  2. xcrun simctl diagnose

http://bugreport.apple.com上提交反馈助理报告,包括上述两个命令所产生的tarball。如果您想让我将您的FB报告连接回您,或者您有关于您的具体情况的问题,请在这里添加您的FB#评论。

票数 2
EN

Stack Overflow用户

发布于 2022-11-14 10:15:54

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

我认为操作系统版本不再可用了(可能因错误而删除)。

希望它对你也有用!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72653527

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档