MacOS – XCode 8 keeps hanging

hangmacosxcode

Since I've updated to Sierra and started using XCode 8, XCode started freezing a lot, specially (but not only) when saving. The beachball appears and nothing can be done in XCode.
Sometimes it freezes for some seconds and resumes, other times it won't resume (or at least, not in a reasonable time).

Already tried XCode 8.1 and 8.2. Same problem.

Is there any fix? Or anyway to troubleshoot this (like logs and such).

Best Answer

  1. Close Xcode
  2. Open Terminal
  3. Type defaults delete com.apple.dt.Xcode
  4. Re-open Xcode

Note: Xcode will be reset to its default settings. This might help if you would like to do so.