Why is Xcode randomly tries to close while I'm debugging? -


while debugging os x app in xcode, when xcode hasn't been focus app short period of time, warning asking if i'm sure "want close project" pops up. if manually tried close project. , "closing workspace stop task..." , of course, until see , cancel it, debug stopped.

i haven't shown code because i'm not sure that's relevant. if has heard of , knows why it's happening, i'd appreciate it. in advance.

enter image description here

yeah. these 2 things.

1) going system preferences, power settings (or that). click restore defaults.

2) go 1 screen in system preferences, , select spotlight. click on privacy tab. click “+” @ bottom, , select mac’s hard drive, , click choose. it’s in list. close system preferences, , reboot mac once. then, go system preferences -> spotlight -> privacy , click on drive in list, click “-” @ bottom of list.

that should it. doesn't mean won't happen again way. had 6 months ago well.