Problem when building to development iPhone

I am having some problems when building to my development iPhone.

Note: I have deselected “Debug” options on the build settings box.

When I click “Build and Run” for the first time, the game is built and deployed to the iPhone via XCode as expected. The app starts off running fine but after a few seconds the frame rate drops and it continues to decline.

Clicking the “Stop” button in XCode does not end the app, and ending the app on the iPhone does not end the app in XCode. Any further attempts to deploy the game via “Build and Run” result with a GDB build error. It is also not possible to run the app via the iPhone home screen.

Interestingly, no other Unity powered games that I have purchased from the app store run properly either. Some of them run very very slow and jittery, and one of them doesn’t load at all.

If I restart my iPhone and run my game from the home screen (disconnected from Mac) the game runs absolutely fine. It doesn’t ever slow down, and I can close and open the app as much as I please. Likewise all purchased games play properly as well.

If I want to update my app I have to go “Build and Run” and then restart my iPhone before I can see it running at its true performance. This is really annoying, any ideas guys?

I have reconstructed my scene file from scratch and it now appears to be working fine.

Original problems persists if original version of scene is included in build. New identical scene seems to be working fine, so I guess the scene file must have some how become corrupt somewhere along the line.

Any comments on this would be welcome

Tip Guys: Backup your scenes regularly just in case