Is there a limit to how long Xcode will run an app on a device, before "Finishing"?
I would submit the app to TestFlight so you aren’t running in a constrained fashion. I know no way to circumvent this timeout but hopefully someone else will edit this post or answer if there is a better way (by hook or by crook if necessary).