Xcode update stuck after updating macOS
Asked Answered
G

9

29

After updating macOS,

enter image description here

I cannot update XCode anymore:

enter image description here

enter image description here

I have been waiting for 2 hours but AppStore does not update.

How do I restart the Xcode update process from the beginning?

Regards

Gainer answered 31/3, 2018 at 4:16 Comment(2)
You can download the .xip directly → Xcode_9.3.xipArticulation
same problem, High Sierra 10.13.4 XCode 8.2 (8C38)Pillage
G
50

It updated successfully, after around 5 hours. I just did nothing, just left it there.

Gainer answered 31/3, 2018 at 6:31 Comment(4)
Lol, well this certainly is an answer.Proctor
Xcode 12.3 took about 45 minutes to get to the last sliver of the progress wheel, then it sat with that tiny little bit left doing nothing for another 45 minutes before finally finishing. This answer kept me patient.Capitation
yes I kept awaiting and it went to completionGaynell
Same for XCode 13.Chrisy
A
43

It is painfully slow when it comes to the 'Installing' stage.

Based on the log from console, it does not look like it is spinning empty.

For example, progress from 94.67% to ...

enter image description hereenter image description here

... 94.83% took almost 20 sec

Adolfo answered 31/10, 2018 at 11:12 Comment(8)
How did you find this console?Stereotomy
Just search for 'Console' in Spotlight (support.apple.com/en-us/HT204014)Adolfo
Thanks! Did you filter by the process name somehow? appstoreagent and storedownloadd don't seem to return any logs.Stereotomy
well, you can always try xcode I suppose? It's too long ago I don't remember.Adolfo
I filtered by the storedownload process was returning logs for me. Also using caffeinate caffeinate -w <pid>, I made sure the computer didn't turn off during the long wait time.Haith
Ouch!!! Really slow... I'm using a 300+-Mbs Download internet connection and this is what I'm getting: 896 / 1000 - After 1 minute 898 / 1000... Really slow process.Knurly
That 'console' comment just saved my sanity after 3 reboots! I thought nothing was happening. Thanks a lot @Anthony KongVibratile
You can also just open a terminal and tail -f /var/log/install.logLester
K
40

A lot of the pain of updating XCode from the App Store can be avoided by downloading the latest version from the Apple Developer website directly (including beta versions if you are into them). Use this Apple Developer link.

For more information see this Ask Different answer.

Kauslick answered 31/3, 2018 at 6:48 Comment(2)
Can you still use App Store update after installing it like this?Yablon
@Sébastien Nope, you can not.Yell
S
2

I also had problems with updating Xcode even after deleting it and trying to install it again via the App Store. For me it helped to switch to the Purchased tab in the App Store and cancelling all the other downloads (by pressing Alt / Option and then clicking Cancel). Then the download of Xcode started, hope this helps!

Sterculiaceous answered 5/10, 2018 at 13:41 Comment(0)
D
2

I think there's a download running in background which would explain this waiting time. I restarted a few times my Macbook pro, and ended up waiting until it ran the update successfuly.

When you make an XCode update, you have to do it when you have free time ahead, not during rushes, you never know how much time it can take

Delinquency answered 29/10, 2018 at 9:42 Comment(0)
I
0

Currently Xcode update from developer tools does not work. Also Xcode 9.3 after download the install gets blocked because the file is corrupted. Additional Tool for Xcode 9.3 downloads and install but then does not work either. App Store downloads Xcode and restart but then it is not functional Attempts: https://developer.apple.com/download/more/ App Store

mac iOS developer tools

Illyria answered 4/4, 2018 at 16:34 Comment(2)
Sorry to hear you are having problems. I updated to XCode 9.3 from the Dev link provided last week though and had no problems. Updating High Sierra first was a pain, but not XCode itself.Kauslick
Yes, I also filed a bug directly with Apple Developer platform and will update this issue, once they reply. They require more deets. Thank you for your comment though very much appreciated.Illyria
P
0

I had problem opening .xcworkspace. force quit application window showing it's not responding on macos mojave.

executed below commands after that it started working.

/* remove saved app states for chosen applications*/
rm -rf ~/Library/Saved Application State/com.apple.dt.Xcode.savedState/

/* https://apple.stackexchange.com/questions/104810/is-it-safe-to-erase-library-developer */
rm -rf ~/Library/Developer
Padgett answered 25/10, 2018 at 7:39 Comment(1)
xcrun simctl erase all. i did this too.Padgett
C
0

In my case, my ISP has a slow connection when downloading from Apple's server. Try using VPN to get a faster connection.

Cyano answered 17/10, 2021 at 17:38 Comment(0)
I
0

Installing Xcode from App store was stuck for me as well it kept on showing rotating loader, I have to say their progress bar isn't the best indicator. Before losing hopes its always best to check the progress behind the curtain. You are going to need 'Console' app for this.

  1. Search for 'Console' app from Spotlight Search.
  2. Then go to search bar and type "App Store".
  3. Next you need to click on start.
  4. You will see a lot of activity in app store as it happens. You will see something like "Completed: 980 of 1000"(based on your progress). Monitor that and it will move.

So it's a better indicator rather than sitting and watching app store loading progress.

Incipit answered 24/1, 2022 at 20:26 Comment(1)
Yoy may see this line ASDAppQuery.resultsDidChange 497799835: <NSProgress: 0x6000036e1cc0> : Parent: 0x0 (portion: 0) / Fraction completed: 0.9260 / Completed: 926 of 1000Jacquie

© 2022 - 2024 — McMap. All rights reserved.