Nick
Nick

Reputation: 43

Xcode Bus Error When Compiling

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

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).

How can I narrow this down?

EDIT: 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.

Upvotes: 0

Views: 1038

Answers (1)

Moshe
Moshe

Reputation: 58067

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:

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.

Upvotes: 0

Related Questions