I had a problem when multiple Xcode instances were running in the background, which caused Xcode to crash. I'm not sure if this will help or not, but you can try the following in the terminal.
alias findp="ps -axww | grep $*"
These are just a few abbreviations.
see what it does.
findp Xcode
If you have a huge list of instances returning for this call when you are not actually using Xcode, then you have a bunch of xcode processes with orphaned backgrounds. The simulator will also contain xcode instances, so you will also need to close this.
In any case, if you have a problem, you will see repons along the lines
7645 ?? 0:00.12 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks/Accounts.framework/accountsd
you can kill them with
kill -9 7645
Not sure if this will help you or not, but it saved me many times when xcode played stupid buggers with me.
source share