[英]Basic C++ program in Xcode results in Thread 1: EXC_BAD_ACCESS code=2
In Xcode 11.3 on OS X 11.7, I am trying to run the most basic C++ program:在 OS X 11.7 上的 Xcode 11.3 中,我正在尝试运行最基本的 C++ 程序:
int main(int argc, char * argv[]) {
return 0;
}
The Product->Build succeeds just fine. Product->Build 成功了。
Product->Run results in Thread 1: EXC_BAD_ACCESS (code=2...)产品->在线程 1 中运行结果:EXC_BAD_ACCESS (code=2...)
In the Scheme for "Run", I have both Address Sanitizer and Zombie Objects checked, as suggested by other answers to more complicated programs, with no change in the error.在“运行”的方案中,我检查了地址消毒剂和僵尸对象,正如其他更复杂程序的答案所建议的那样,错误没有改变。
Something fundamental must be misconfigured, but i am new to Xcode and am out of obvious places to look.一些基本的东西必须配置错误,但我是 Xcode 的新手,而且我没有明显的地方可以看。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.