Xcode stuck on "Installing components..."

Vic Segers picture Vic Segers · Jun 11, 2018 · Viewed 12.5k times · Source

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

Installation stuck at 40%

Installation stuck at 100%

Edit: I've fixed it by deleting some .kext files that were messing things up. Found the following on an Apple Community post:

  1. Open Terminal in /Applications/Utilities
  2. Enter "system_profiler SPExtensionsDataType > ~/Desktop/kextList.txt" without the quotes and hit return(this will take a while to run).
  3. There should now be a kextList.txt file on your desktop, open it and press both the "Apple(Command)" and "F" keys to bring up the find.
  4. In the find field insert "Obtained from: Not Signed" Copy the destination to the .kext file to a list for use later.
  5. Browse your drive to /System/Library/Extensions and remove any of the unsigned kext files.
  6. Reboot and you should be all set.

Answer

JaimeRave picture JaimeRave · Sep 6, 2018

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.