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

mahal tertin
  • 3,239
  • 24
  • 41
quanguyen
  • 1,443
  • 3
  • 17
  • 29
  • 3
    You can download the `.xip` directly → [Xcode_9.3.xip](https://download.developer.apple.com/Developer_Tools/Xcode_9.3/Xcode_9.3.xip) – l'L'l Mar 31 '18 at 05:39
  • same problem, High Sierra 10.13.4 XCode 8.2 (8C38) – pixel May 22 '18 at 22:06

9 Answers9

49

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

quanguyen
  • 1,443
  • 3
  • 17
  • 29
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

Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
  • 8
    How did you find this `console`? – Evgenia Karunus Aug 25 '19 at 22:37
  • 14
    Just search for 'Console' in Spotlight (https://support.apple.com/en-us/HT204014) – Anthony Kong Aug 25 '19 at 23:15
  • 1
    Thanks! Did you filter by the process name somehow? `appstoreagent` and `storedownloadd` don't seem to return any logs. – Evgenia Karunus Aug 26 '19 at 01:16
  • 1
    well, you can always try `xcode` I suppose? It's too long ago I don't remember. – Anthony Kong Aug 26 '19 at 01:17
  • I filtered by the `storedownload` process was returning logs for me. Also using [caffeinate](https://computers.tutsplus.com/tutorials/quick-tip-how-to-stop-your-mac-from-sleeping-using-the-command-line--mac-50905) `caffeinate -w `, I made sure the computer didn't turn off during the long wait time. – George Pantazes Oct 02 '19 at 22:25
  • 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. – João Rodrigues May 05 '20 at 17:02
  • That 'console' comment just saved my sanity after 3 reboots! I thought nothing was happening. Thanks a lot @Anthony Kong – lenz Nov 07 '20 at 01:01
  • 2
    You can also just open a terminal and `tail -f /var/log/install.log` – Wedge Martin Jun 22 '21 at 14:44
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.

Ali Beadle
  • 4,486
  • 3
  • 30
  • 55
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!

Mitemmetim
  • 520
  • 3
  • 12
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

Sebastien H.
  • 6,818
  • 2
  • 28
  • 36
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

EULinguist
  • 21
  • 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. – Ali Beadle Apr 04 '18 at 19:59
  • 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. – EULinguist Apr 06 '18 at 18:20
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
Ashok R
  • 19,892
  • 8
  • 68
  • 68
0

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

fxbayuanggara
  • 316
  • 3
  • 16
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.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Rahul Serodia
  • 419
  • 6
  • 13
  • Yoy may see this line `ASDAppQuery.resultsDidChange 497799835: : Parent: 0x0 (portion: 0) / Fraction completed: 0.9260 / Completed: 926 of 1000` – Sagar Aug 04 '22 at 09:00