- Home /
EXC Bad Access In Xcode but runs fine in Unity. iPhone
I am working on an app which works fine in the editor and when I run it using Unity Remote it also works well. So when I build and run to see the app run locally on the iPhone it gives me this error EXC Bad Access, I dont know what that means. If you have a clue to point me in the right direction. Thank you.
Answer by Tetrad · Jan 13, 2011 at 01:13 AM
Usually this seems to be the result of a NullReferenceException. Check your logs in the editor and make sure you aren't getting any of those (the editor can fail relatively gracefully).
Indeed, turns out that I had renderer.material.color.a = 1.0; on an object that did not have a material with an alpha channel. Unity just said "eh what ever, you can play anyway" but the iPhone did not like it.
Your answer
Follow this Question
Related Questions
EXC_BAD_ACCESS on try/catch block 0 Answers
App paused on Splashscreen. Getting EXC_BAD_ACCESS error 2 Answers
EXC_BAD_ACCESS IN X-CODE AT CODE LINE "RESOURCES.LOAD<>()" 1 Answer
Xcode build & run "innocent" (?) problem 0 Answers
EXEC_BAD_ACCESS question 2 Answers