Dum*_*ius 5 xcode ios-simulator ios16
当我尝试通过 iPhone 12 Pro 模拟器在 XCode 上启动我的应用程序时,出现以下错误。
\n\n完整的日志是
\nDetails\n\nPseudo Terminal Setup Error\nDomain: IDEPseudoTerminalDomain\nCode: 7\nFailure Reason: ErrorCode: 7 Errno: 6\nUser Info: {\n DVTErrorCreationDateKey = "2023-05-17 14:05:21 +0000";\n IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;\n}\n--\nThe operation couldn\xe2\x80\x99t be completed. Device not configured\nDomain: NSPOSIXErrorDomain\nCode: 6\nFailure Reason: Device not configured\n--\n\nAnalytics Event: com.apple.dt.IDERunOperationWorkerFinished : {\n "device_model" = "iPhone13,3";\n "device_osBuild" = "16.4 (20E247)";\n "device_platform" = "com.apple.platform.iphonesimulator";\n "launchSession_schemeCommand" = Run;\n "launchSession_state" = 1;\n "launchSession_targetArch" = arm64;\n "operation_duration_ms" = 50;\n "operation_errorCode" = 7;\n "operation_errorDomain" = IDEPseudoTerminalDomain;\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_checker_tpc_enable" = 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_testing_launchedForTesting" = 0;\n "param_testing_suppressSimulatorApp" = 0;\n "param_testing_usingCLI" = 0;\n "sdk_canonicalName" = "iphonesimulator16.4";\n "sdk_osVersion" = "16.4";\n "sdk_variant" = iphonesimulator;\n}\n--\n\n\nSystem Information\n\nmacOS Version 13.3.1 (Build 22E261)\nXcode 14.3 (21812) (Build 14E222b)\nTimestamp: 2023-05-17T22:05:21+08:00\nRun Code Online (Sandbox Code Playgroud)\n我已尝试多次重新启动 XCode、清除缓存、尝试其他模拟器,但仍然遇到相同的错误。\n我使用的规格是:\nXCode ver 14.3\nMacOS 13.3.1 (22E261)\n模拟器 IOS 16
\n我已经尝试多次重新启动 XCode、清除缓存、尝试其他模拟器,但仍然遇到相同的错误。
\n小智 2
就像海报一样,我遇到了这个非常烦人的问题。同样,清除、重新启动 Xcode、重新启动后问题仍然存在。无法从 Xcode 运行任何应用程序。对同一问题的一些旧参考暗示了错误的、未终止的进程。执行 ps -ef 显示有大量进程正在运行(并非完全意外)。由于对某些进程持怀疑态度(是的,我正在看你的 Google Chrome 助手),我重新启动并取消选中我通常使用的“重新打开窗口”选项。正在运行的进程数量显着下降,Xcode 恢复正常。所以,我无法确定任何根本原因,但这对我来说是解决方案。