I have an iMac running High Sierra and Xcode version 10.1. I've recently started using Xcode a lot and it keeps hanging on me. I'll do something and the beachball appears. I eventually have to force quit Xcode. I'll restart Xcode and repeat the process but it'll work the 2nd time. This has been happening frequently. How do I stop Xcode from hanging so much?