我无法让 llbm 在我的(2020 Intel)Macbook(使用更新的命令行工具)上运行。
我创建一个文件
test.c
,其中包含:
#include <stdio.h>
int main(){
printf("hello world\n");
}
然后运行
clang -g test.c -o prog
。
现在我运行 lldb prog
并得到以下输出:
lldb prog
(lldb) target create "prog"
Current executable set to '/whatever/prog' (x86_64).
(lldb) run
Process 3934 launched: '/whatever/prog' (x86_64)
Process 3934 exited with status = -1 (0xffffffff) lost connection
有人知道这是怎么回事吗?
事实证明,重新安装 Xcode(而不仅仅是更新命令行工具)可以解决该问题。