Disconnecting the iPhone closes the app

I develop an iPhone app which requires walking around to test some of the features. When I run my app from Xcode and then disconnect the iphone from the mac to start walking, the app keeps on running. When I run the app from AppCode, disconnecting the iphone closes the app. Is there a way to run it from AppCode and make it keep running when disconnecting the iphone from the mac?

Please sign in to leave a comment.