Search code examples
iosswiftxcodeswiftuixcode13.2

Xcode 13.2.1 Preview Not Working but Simulator Works


My Xcode Version 13.2.1 (13C100) got an unknown issue. I did several things like delete Xcode, new install Xcode, restore from backup nothing make any change! Currently, the project can be 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.

What is the issue here any idea? iMac becomes very slow when I taped the resume button. Please Help!

enter image description here


Solution

  • Suddenly It fixed, maybe the last update from apple through a software update called "Command Line Tools for Xcode". Before I have also tried a fresh OSX installation but the issue has not gone at all.

    Check Software Update from system preference.
    


    Thanks to the great community.