I also had this problem, and I have a couple of things that might work. Please note that these are not bug fixes, but workarounds - they may not work in your case. However, I hope they ...
Try in sequential order ...
Click (top bar) → Product → Stop, although you may have tried this.
Click (top panel) → Product → Clear. This can stop the erroneous task.
- Xcode . , "" .
- , XCode ( + + ) .
, , , ( , , ). , ( ) → → .