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

Fel*_*ter 12 macos xcode ios16 xcode14

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

\n

\n

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

\n

在此输入图像描述

\n

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

\n
Details\n\nThe operation couldn\xe2\x80\x99t be completed. xpc error\nDomain: NSPOSIXErrorDomain\nCode: 64\nFailure Reason: xpc error\nUser Info: {\n    DVTErrorCreationDateKey = "2022-06-17 16:19:12 +0000";\n    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;\n}\n--\n\nAnalytics Event: com.apple.dt.IDERunOperationWorkerFinished : {\n    "device_model" = "iPhone14,3";\n    "device_osBuild" = "16.0 (20A5283p)";\n    "device_platform" = "com.apple.platform.iphonesimulator";\n    "launchSession_schemeCommand" = Run;\n    "launchSession_state" = 1;\n    "launchSession_targetArch" = "x86_64";\n    "operation_duration_ms" = 44430;\n    "operation_errorCode" = 64;\n    "operation_errorDomain" = NSPOSIXErrorDomain;\n    "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;\n    "operation_name" = IDERunOperationWorkerGroup;\n    "param_consoleMode" = 0;\n    "param_debugger_attachToExtensions" = 0;\n    "param_debugger_attachToXPC" = 1;\n    "param_debugger_type" = 3;\n    "param_destination_isProxy" = 0;\n    "param_destination_platform" = "com.apple.platform.iphonesimulator";\n    "param_diag_MainThreadChecker_stopOnIssue" = 0;\n    "param_diag_MallocStackLogging_enableDuringAttach" = 0;\n    "param_diag_MallocStackLogging_enableForXPC" = 1;\n    "param_diag_allowLocationSimulation" = 1;\n    "param_diag_gpu_frameCapture_enable" = 0;\n    "param_diag_gpu_shaderValidation_enable" = 0;\n    "param_diag_gpu_validation_enable" = 0;\n    "param_diag_memoryGraphOnResourceException" = 0;\n    "param_diag_queueDebugging_enable" = 1;\n    "param_diag_runtimeProfile_generate" = 0;\n    "param_diag_sanitizer_asan_enable" = 0;\n    "param_diag_sanitizer_tsan_enable" = 0;\n    "param_diag_sanitizer_tsan_stopOnIssue" = 0;\n    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;\n    "param_diag_showNonLocalizedStrings" = 0;\n    "param_diag_viewDebugging_enabled" = 1;\n    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;\n    "param_install_style" = 0;\n    "param_launcher_UID" = 2;\n    "param_launcher_allowDeviceSensorReplayData" = 0;\n    "param_launcher_kind" = 0;\n    "param_launcher_style" = 0;\n    "param_launcher_substyle" = 0;\n    "param_runnable_appExtensionHostRunMode" = 0;\n    "param_runnable_productType" = "com.apple.product-type.application";\n    "param_runnable_type" = 2;\n    "param_testing_launchedForTesting" = 0;\n    "param_testing_suppressSimulatorApp" = 0;\n    "param_testing_usingCLI" = 0;\n    "sdk_canonicalName" = "iphonesimulator16.0";\n    "sdk_osVersion" = "16.0";\n    "sdk_variant" = iphonesimulator;\n}\n--\n\n\nSystem Information\n\nmacOS Version 13.0 (Build 22A5266r)\nXcode 14.0 (21257.0.0.0.22) (Build 14A5228q)\nTimestamp: 2022-06-17T11:19:12-05:00\n
Run Code Online (Sandbox Code Playgroud)\n

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

\n

小智 21

我遇到了类似的问题,我解决如下:关于这台Mac>存储>管理>开发人员并打开屏幕,删除所有缓存,然后它应该可以正常工作。

截屏

  • 解决了这个问题并节省了我一些磁盘空间! (2认同)

小智 -3

这个问题已解决,打开finder > applications > xcode-beta > 右键单击​​> get info > checklist 'open using Rosetta'