当我尝试通过iPhone 12 Pro模拟器在XCode上启动我的应用程序时,出现以下错误。
完整日志为
Details
Pseudo Terminal Setup Error
Domain: IDEPseudoTerminalDomain
Code: 7
Failure Reason: ErrorCode: 7 Errno: 6
User Info: {
DVTErrorCreationDateKey = "2023-05-17 14:05:21 +0000";
IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
}
--
The operation couldn’t be completed. Device not configured
Domain: NSPOSIXErrorDomain
Code: 6
Failure Reason: Device not configured
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone13,3";
"device_osBuild" = "16.4 (20E247)";
"device_platform" = "com.apple.platform.iphonesimulator";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 50;
"operation_errorCode" = 7;
"operation_errorDomain" = IDEPseudoTerminalDomain;
"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_checker_tpc_enable" = 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_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphonesimulator16.4";
"sdk_osVersion" = "16.4";
"sdk_variant" = iphonesimulator;
}
--
System Information
macOS Version 13.3.1 (Build 22E261)
Xcode 14.3 (21812) (Build 14E222b)
Timestamp: 2023-05-17T22:05:21+08:00
我已经多次尝试重新启动我的XCode,清除该高速缓存,尝试其他模拟器,但我仍然得到相同的错误。我使用的spec是:XCode ver 14.3 MacOS 13.3.1(22E261)模拟器IOS 16
我已经多次尝试重新启动我的XCode,清除该高速缓存,尝试其他模拟器,但我仍然得到相同的错误。
2条答案
按热度按时间jm81lzqq1#
就像海报一样,我遇到了这个令人讨厌的问题。同样,清除,重新启动Xcode,重新启动和问题仍然存在。无法从Xcode运行任何应用程序。一些旧的参考相同的问题,暗示在错误的,未终止的进程。执行ps -ef显示有大量进程正在运行(并非完全出乎意料)。由于怀疑某些进程(是的,我正在看你的谷歌Chrome助手),我重新启动并取消了“重新打开窗口”选项,我通常使用。运行进程的数量显著下降,Xcode恢复正常。因此,我无法确定任何根本原因,但这是我的解决方案。
rkkpypqq2#
还有这个-尝试关闭Xcode,模拟器(确保不在后台运行)和终端(这将显示崩溃)-然后打开终端和sudo xcode-select -s /Library/Developer/CommandLineTools
选择一个iPhone类型在模拟器时,这运行(地雷被清除)