I added 16,000 words to my NSArray and now when I build for the simulator it works, but for a device — both iPhone and iPad — it gives me this error:
Apple LLVM compiler 3.1 Error
command/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang failed with exit code 1
Can anyone explain to me why this happens and how to solve this?
Something’s different between the two builds — you’ll need to figure out what that is.
Note that this is a compile error, not a runtime error. In other words, it’s not that something is going wrong during the execution of your program; it’s that the compiler can’t even build your app in the first place.
Are you specifying the whole array in a method, like:
Don’t do that. You’re giving the poor compiler a headache. Read your data from a file or something instead.