Exc_bad_access

Hi,

I’m porting someone else’s code to iOS. When I currently build and run the project, I get this:

[Switching to thread 11523]
Program received signal:  “EXC_BAD_ACCESS”.

However, if I then start the application on the device again manually, the game runs fine. Problem is that there are performance issues and I need to use the profiler, but I can’t Build And Run from xcode or I get that non-descriptive error.

This error happens in a second scene (right after a nearly empty dummy scene), and it happens before anything is rendered at all.

Thanks!

when you get that error look at the callstack. it will tell you which function has the null reference error (exc bad access is near always caused by a nullref exception thats not cought)

Ok, that was helpful, thanks!
Didn’t know to look there (and since I usually work with my own code exclusively, I usually have a better idea would could be causing errors like this).