编译时Xcode总线错误 [英] Xcode Bus Error When Compiling

查看:248
本文介绍了编译时Xcode总线错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPhone应用程序编译很好,然后突然,它开始无法编译,出现错误:

My iPhone app was compiling just fine, then all of the sudden, it started failing to compile, with the error:


GCC 4.2错误内部编译错误:总线错误10

LLVM GCC 4.2 Error Internal Compiling Error: Bus Error 10

它对模拟器编译正常,但不会构建到设备。我试过似乎一切,没有什么工作。没有我可以发布的堆栈跟踪。此外,代码太长,无法粘贴所有这里,因为我不能确定问题是什么(再次,没有堆栈跟踪)。

It compiles just fine for the simulator but it won't build to a device. I have tried what seems like everything, and nothing works. There is no stack trace that I can post. Additionally, the code is too long to paste all of it here since I can't be sure exactly where the problem is (again, no stack trace).

如何

编辑:我知道我之前尝试过,但将编译器设置为GCC而不是LLVM GCC成功编译的应用程序。我希望我知道为什么Xcode的行为这样的方式,但现在我可以粉笔这是ghosts。

I KNOW that I tried this before, but setting the compiler to GCC instead of LLVM GCC successfully compiled the app. I wish I knew the reason why Xcode was behaving this way, but for now all I can chalk this up to is ghosts.

推荐答案

我经常得到这个错误时,有一些语法错误,编译器不能继续前进。旧版本的Xcode用来说这样:

I've often gotten this error when there's some syntax error and the compiler can't move forward. Older versions of Xcode used to say something like this:


由早期的错误困惑,bailing out

confused by earlier errors, bailing out

(我怀疑内部是一样的)

(I suspect it's the same thing internally.)

回去看看你最近的变化。我敢打赌它是一个分号或报价缺失某处。这就是为什么我们应该每小时重复编译一次。我以前有过。这不是一个重大灾难。你没有打破任何开发工具。只需检查您的代码,看看语法错误。

Go back and cheek your recent changes. I'll bet it's a semicolon or quote missing somewhere. This is why we are supposed to hit compile more than once an hour. I've had this before. It's not a major disaster. You didn't break any of the dev tools. Just review your code and look fr the syntax error.

这篇关于编译时Xcode总线错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆