I'm having a similar situation on my Macs. Whenever they sleep and then wake, Xcode wants to have quit out (my app is running in Xcode - so it is prompting me to stop the app first). If I stop my app Xcode quits as if it had been command-q'd during sleep.... I can repro on multiple Macs here.
Topic:
UI Frameworks
SubTopic:
AppKit