相关疑难解决方法(0)

应用程序启动未返回有效的 pid,也未返回启动错误

我的应用程序在模拟器上安装得很好,我可以在手动打开它后附加该进程,但它不会从调试播放按钮运行而不抛出下面的错误。

我已经尝试了我所知道的所有技巧(删除派生数据并重新编译,到处注释掉一些代码,彻底搜索关键字)。

任何帮助或见解将不胜感激。

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; …
Run Code Online (Sandbox Code Playgroud)

xcode simulator ios swift swiftui

34
推荐指数
5
解决办法
2万
查看次数

标签 统计

ios ×1

simulator ×1

swift ×1

swiftui ×1

xcode ×1