This just started happening with a project which has been published many times. Now if I compile the app with Development Build turned on the app behaves as it normally does.
If I turn off Development Build I get a crash when the loader scene is switching to the next scene.
The crash takes place inside DisplayManager.mm in the present function on this line:
[surface.context presentRenderbuffer:GL_RENDERBUFFER];
The error is EXC_BAD_ACCESS (code=1,address=0x1)
I can toggle Development Build on and off and repeat the problem. I don’t have a clue where to begin looking for the problem. I am using LoadLevelAsync() but I swapped to LoadLevel() just in case the code was somehow getting to the point of displaying something that wasn’t initialized.
I’ve been working with this code for about a year now, and have never encountered this problem before, and the scene was compiling just fine 2 days ago, and hasn’t been updated since then. I even tried going back to a previous version of the scene. I’m not seeing how this is happening or what kind of impact Development Build could be having here.