Xcode keeps getting stuck on "Installing components...", it stops at around 40%. I've let it sit for a whole night, reinstalling it from the App Store and searching for solutions on the internet, but all with no succes.
When I Force Quit and restart Xcode, it does the same thing except that the progress bar immediately jumps to 100% but after that it won't budge. I can only get back to the 40% when i restart my computer.
I have Xcode version 9.4 and i'm running macOS High Sierra (10.13.5).
Question asked when starting the app
Edit: I've fixed it by deleting some .kext files that were messing things up. Found the following on an Apple Community post:
Starting MacOS in Safe Mode and the starting Xcode should fix the issue. I tried in MacOS High Sierra 10.13.6 and it worked perfectly.