Xcode tries to close while running simulator for extended time.

While debugging my app on simulator for an extended time, Xcode tries to close the project after about 18 hours. This interrupts whatever process is happening in the app. Why does this occur and is it possible to keep the app running on the simulator?

Xcode tries to close while running simulator for extended time.
 
 
Q