首页 > 解决方案 > IDEDebugSessionErrorDomain:LLDB 未提供错误字符串

问题描述

构建我的 Xcode 12.4 项目成功,但立即出现一个弹出窗口,提示“无法启动项目:LLDB 未提供字符串错误”。. (与“LLDB 未提供错误字符串”相关的增强问题- XCode 问题)。

按照这个线程并尝试了所有建议,包括i)重新启动xcode和计算机,ii)sudo DevToolsSecurity -enable,iii)编辑产品>方案(在调试和发布模式下),我得到了:

  1. 选中“调试可执行文件”:`无法启动:LLDB 未提供错误字符串。

         Details
    
         Could not launch “testingC”
         Domain: IDEDebugSessionErrorDomain
         Code: 3
         Failure Reason: LLDB provided no error string.
         User Info: {
             DVTRadarComponentKey = 855031;
             RawLLDBErrorMessage = "LLDB provided no error string.";
         }
         --
    
    
         System Information
    
         macOS Version 10.15.7 (Build 19H2)
         Xcode 12.4 (17801) (Build 12D4e)
         Timestamp: 2021-02-14T16:05:44+01:00
    
  1. 未选中“调试可执行文件”(相同的系统信息):`无法启动:LLDB 未提供错误字符串。

     Details
    
     Launch error
     Domain: IDELaunchErrorDomain
     Code: 9
     Recovery Suggestion: There is a problem launching using posix_spawn (error code: 2).
     --
    

从那里,我发现这篇文章似乎与我尝试过的这种情况相关,导致:“无法打开文件:/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB”,这是正常,因为我没有安装 LLDB。

在这种情况下,在这里尝试的 LLDB 命令是什么?否则,如何修复这些错误?

标签: ioscxcodemacoslldb

解决方案


推荐阅读