How can I make sure my app actually closes when I manually shut it down through iOS?

When I close my iOS app by double tapping home and ending the task, it doesn’t close properly. Even if I wait a couple of minutes first, the next time I open the app it will be frozen on the screen it was on before.

And then when I reboot it, it hangs on the unity splash screen for infinity, and I have to restart my iPad for it to work.

Any information anyone can give would help. Has anyone else encountered this problem?

This will happen if XCode is running the app, since it doesn’t let go of it until you press Stop. Press Stop and it will close the app. Launch the app from the device and closing it should work just fine.

If Xcode isn’t involved, then I think you broke iOS…