Sho*_*een 34 xcode simulator ios swift swiftui
我的应用程序在模拟器上安装得很好,我可以在手动打开它后附加该进程,但它不会从调试播放按钮运行而不抛出下面的错误。
我已经尝试了我所知道的所有技巧(删除派生数据并重新编译,到处注释掉一些代码,彻底搜索关键字)。
任何帮助或见解将不胜感激。
Details
Application launch for '------' did not return a valid pid nor a launch error.
Domain: NSPOSIXErrorDomain
Code: 3
Failure Reason: No such process
User Info: {
IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
}
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone14,2";
"device_osBuild" = "15.0 (19A339)";
"device_platform" = "com.apple.platform.iphonesimulator";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = "x86_64";
"operation_duration_ms" = 845;
"operation_errorCode" = 3;
"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_swiftVersion" = "5.5.1";
"param_runnable_type" = 2;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphonesimulator15.0";
"sdk_osVersion" = "15.0";
"sdk_variant" = iphonesimulator;
}
--
System Information
macOS Version 11.6.1 (Build 20G224)
Xcode 13.1 (19466) (Build 13A1030d)
Timestamp: 2021-11-18T16:14:15-07:00
Run Code Online (Sandbox Code Playgroud)
小智 61
面临同样的问题。问题是模拟器是在 Xcode 之前启动的。
解决方案:只需关闭模拟器并重新构建项目即可
小智 15
就我而言,即使我没有在 Rosetta 下运行它,我也必须安装它。为此,请运行此脚本:
softwareupdate --install-rosetta
Run Code Online (Sandbox Code Playgroud)
或者如果您想跳过许可协议,请执行以下操作:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Run Code Online (Sandbox Code Playgroud)
造成此错误的原因似乎有多种。我在 M1 Max / macOS Monterey 上运行。我尝试了上面的一些解决方案,但发现它们要么不适用,要么没有效果。最后,答案(对于我的配置)就在这里——安装 Rosetta。这也是 Xcode 在每次启动时提示我做的事情。我正在运行一个使用 Cocapods 的应用程序。
| 归档时间: |
|
| 查看次数: |
22741 次 |
| 最近记录: |