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

xesrikrc  于 2023-05-19  发布在  iOS
关注(0)|答案(5)|浏览(224)

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

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

下面是描述问题的详细错误消息:

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上运行相同的应用程序不会导致任何问题。

z5btuh9x

z5btuh9x1#

我遇到了一个类似的问题,我解决了如下:关于这个Mac >存储>管理>开发人员和打开屏幕,删除所有缓存,那么它应该工作得很好。

dxpyg8gm

dxpyg8gm2#

此错误很可能表示在Xcode尝试启动应用程序时系统应用程序(iOS中的SpringBoard)崩溃。当然也可能有其他原因,但我分析过的Xcode 14以来的每一份报告都与SpringBoard终止有关(要么是它自己崩溃,要么是因为另一个进程崩溃而被拆除,比如SimMetalHost)。
如果您遇到此问题,请在此状态下(不要退出www.example.com)收集以下数据(通过运行www.example.com中的命令Terminal.appSimulator.app):

  1. sudo sysdiagnose
  2. xcrun simctl diagnose
    http://bugreport.apple.com提交反馈助理报告,包括上述两个命令导致的tarball。如果您想让我将您的FB报告与您联系,或者您对您的具体情况有疑问,请在此处添加您的FB#评论。
6jjcrrmo

6jjcrrmo3#

这个问题通过在Xcode中创建一个新的模拟器来解决,并使用可用的操作系统版本。
我认为操作系统版本不再可用(可能是错误删除)。
希望它也能为你工作!

wsxa1bj1

wsxa1bj14#

它对我有效:1.卸载Xcode 2.重新安装Xcode

2wnc66cl

2wnc66cl5#

这个问题解决了,打开finder > applications > xcode-beta > right click > get info > checklist 'open using Rosetta'

相关问题