简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM