For the last 3days, I'm completely stopped my work because my Xcode got an unknown issue. I did several things like delete Xcode, new install Xcode, restore from backup nothing make any change! Currently, the project is built and run in the simulator but not in the preview window it gives a message:
Cannot preview in this file - Timed out waiting for connection to DTServiceHub after 15.0 seconds.
iMac becomes very slow. Please Help!
Good News
I have also tried a fresh OSX installation but the issue has not gone at all. Suddenly It fixed, maybe the last update from apple through a software update called "Command Line Tools for Xcode". Thanks to all of the Apple Devs and Frameworks Engineer who is tracking down the issue with me.