I recently had some issues with getting EXC_BAC_ACCESS, which seemed to occur due to calling object/vars that didn’t exist, but that Unity didn’t detect as errors.
Then I enabled “Development build” and “Script debugging”, and I could see in Xcode what script caused the issue and could easily fix it.
Now I added a loading screen according to this tutorial:
After this my game works perfectly in “Development build”, and the loader does the job. But when I disable it, to get a production build (?), the game crashes when the loader is supposed to switch to the first level, and I get I get EXC_BAC_ACCESS.
The script uses this, where name is the name of my scene, simply “01_game”:
Application.LoadLevel(name);
Anyone has a clue on how to fix this?