202

I just updated my mac to macOS Big Sur, and am trying to update to the next version of XCode. It has been on 75-80% progress for hours: enter image description here

Also, when I go to launchpad I see this:

enter image description here

Is anyone else having this issue or know how to fix it?

3
  • 2
    developer.apple.com/services-account/download?path=/… will trigger a download
    – b_dubb
    Dec 19, 2021 at 8:56
  • Common problem is lack of disk space. Check there are sufficient GB available for download and install. Apr 21 at 14:11
  • The problem seems to be ongoing with macOS 12.4 (App Store Version 3.0 (1006.5.18.1.3)), and updating to Xcode 13.4.1. System monitoring shows a extraordinary amount of disk I/O occurring with very very very unacceptably slow progress. Jul 14 at 19:07

19 Answers 19

652

As a first test to check if everything is just going fine but really slow, try this:

  • Keep the App Store window open (thanks to @Dhruv Saraswat to point this out).
  • Open the "Console" app (not the "Terminal", but the "Console")
  • Go to the "Search bar" and type "App store".
  • Push "Start" button.
  • Log lines will be added from time to time showing you how the installation process goes. In my case, I saw "... Completed: 825 of 1000", and some time later I got "... Completed: 826 to 1000", and so on.

That way you can at least check if everything is working, although really slow. You can then guess how long it will take to the "Completed: 1000 to 1000" step in your own situation.

37
  • 81
    This was very helpful to see the actual progress behind the scene. Really appreciate your solution :)
    – ShellZero
    Oct 11, 2021 at 20:11
  • 8
    oh my God. You are so right. it works. it really has a little progress, at least I can notice it. thanks. but why is this slow and looks like stuck. I mean even the pause/stop button for the installation doesn't work. I try to pause the installation in app store, and nothing happens.
    – CarmenA
    Oct 13, 2021 at 9:33
  • 3
    I think this answer offers an alternative approach that doesn't require downloading a version that's not on the app store, so I'm check-marking it. Oct 22, 2021 at 1:24
  • 7
    With an update from Xcode v13 to Xcode v13.1 on a MacBook Air 2020 i7 16GB RAM, 270 GB free SSD the progress is like this: at 16:24:51: Fraction completed: 0.8970 at 16:50:33: Fraction completed: 0.9150 at 17:49:51: Fraction completed: 0.9680 Oct 26, 2021 at 15:51
  • 37
    I needed to keep the App Store window open for this to work. Thanks for this excellent answer. Mar 15 at 6:00
28

This is weird behaviour everyone face nowadays when installing from AppStore. Instead of that download dmg of required xcode version from apple developer account and install.

Please refer below link to download XCode versions.

Xcode download link for all versions.

Above link contains download link from XCode version 1.0 till the latest.

4
  • 2
    Can you elaborate a little on the process to download and install manually?
    – Andy P
    Sep 21, 2021 at 10:39
  • 1
    @AndyP edited answer. In this provide link to download xcode all versions.
    – Protocol
    Sep 21, 2021 at 14:39
  • 1
    I had the same situation. Downloaded latest from dev account and worked perfect. Appstore download was stuck for hours . Enough disk space(100GB) was also available. Jun 23 at 17:03
  • 1
    This should be the only answer. Search for the xcode version you need: developer.apple.com/download/all Jul 17 at 3:34
17

Had the same issue after updating my MacBook to Big Sur and trying to update Xcode to version 12.5. Tried to reinstall, reboot my Mac, delete the app and install it again from App Store.

Decided to leave the installation overnight and it helped! In the morning Xcode was installed successfully.

13

in my case force quit installd, close and open appstore, run update again

0
11

mine was stuck for about 3 days and even rebooting didn't help! i was trying to update to xcode 13.2.1 on MacOS Monterey what i did was:

1- opened Activity Monitor and force quitted "installd" (not sure if it was necessary though!)

2- opened Launcher, held Option key (to make the icons jiggle) and clicked the x on xcode's corner! asked me if i want to delete the app and i confirmed but magically it stayed and when i opened it it was updated to the latest version! so basically it was done installing just didn't know it.

1
  • 1
    applied step 2 and it worked Feb 17 at 15:15
8

I had exactly the same situation, I updated MacOS and then updated Xcode to 12.5.1 and it got stuck on 7.2GB of 7.2GB. I left it for 4 hours with nothing happening (but in Activity Monitor 'installd' was working away). I left it overnight and it had sorted itself out by the morning.

1
  • 4
    I left it overnight, and still stuck. It's killing me
    – CarmenA
    Oct 13, 2021 at 9:29
7

Just FYI: On the latest Macbook Air M1, 8GB RAM, 256GB SSD, I installed XCode from the App Store. I had exactly the same issue. I thought my installation is stuck. I left Macbook for the whole night, then it downloaded XCode (around 12 GB). After that, it started installing it. I left it for the whole day and didn't touch it. In the evening XCode was installed. I just needed to leave it for around 24 hours to do the job.

1
  • same happened with me
    – Sachin
    May 21 at 19:13
6

If (like me) you only need the command-line tools, you may want to give this a try:

  1. force-quit installd (using ActivityMonitor or ps -kill)
  2. run xcode-select --install from the Terminal command line

Worked for me!

1
  • Force quit installd and any instances of installer currently running in ActivityMonitor allowed me to break the logjam and install/update a backlog of apps that were stuck for days. 14 hours ago
2

Confirm it has in 13.2 and 13.2.1 as well. Viewing the console app in the top answer will show you when it's done

1
  • 1
    Yes upgrading to 13.2.1 caused me this same hung install issue ( on Monterey 12.1), left mine at 805 out of 1000 for 24hrs and it never progressed. I suspect that the App Store software really isn't great at handling large downloads and installs so I'll be sure to always download the update and install manually from now on.
    – Papyrus
    Jan 12 at 19:26
2

I updated Xcode on M1 macbook pro with lots of RAM and lots of SSD MacOS 12.1 today from 12.2 to 12.3. It took 4.5 hours. So patience helps, and watching the logs as well.

1
  • 2
    in my case ASDAppQuery.resultsDidChange 497799835: <NSProgress: 0x600003cd4d20> : Parent: 0x0 (portion: 0) / Fraction completed: 0.8050 / Completed: 805 of 1000 Logs are looking like this
    – Aman Deep
    Apr 6 at 13:47
1

I had the same problem, and for me, the tips in this thread did not work. What I found to be the problem is that App Store didn't think I had enough space when in fact I had enough space for Xcode.

To solve the "space" problem you can create a dummy file and directly remove it. This allows you to trick your computer that you actually have enough space. (Has to do with containers, read here for more info: https://medium.com/geekculture/installing-xcode-with-not-enough-disk-space-available-b96c8f17115b)

STEP BY STEP GUIDE:

  1. Open the Terminal
  2. Move to the location where you want to create your file using cd. Like cd Documents
  3. Now use command mkfile G your-file-name.ext ( example: mkfile 4G mymovie.mov => will create a movie file with name mymovie of size 4GB) Hit Enter, It will take some time to complete the process (depends on the file size)
  4. When the command completes the prompt should return and a file would be created.
  5. Go to finder and remove your file. (Move to trash)
  6. Emeditly install Xcode again.

Hope you find it helpful :)

1

Although it does not speed up, but in Mac App Store, you should see the spinning wheel next in Xcode - place the cursor ON the wheel and you should see the installation progress (eg 52%).

If it does not move, cancel the Xcode installation and start again.

0

Turning off the file shield of your antivirus will helped in my case.

While an anti-virus shouldn’t technically block an app from the Mac App Store, it seems that Xcode is an app with its own unique set of problems which is why disabling the anti-virus works in some cases.

0

The Console is very helpful. It shows that installation is working, albeit slowly.

I had to download xCode 3 times. Re-install it 3 times. All in all about 8-12 hours effort.

It is still proceeding, SLOWLY.

It would be very helpful if the Apple team put in a better "installation progress" indicator -- like exists for so many other products.

0

I faced a similar issue while installing the 13.3 version. My progress bar was showing installing for about 1-2 hours and then it started showing waiting. What eventually worked for me was installing it using terminal code "xcode-select --install".

0

Oh, it really helpful!
I user IOS12.3.1 in VMWare Station, and when I update xcode from 13.2 to 13.3, it get stucked.

additoin: my cpu is i5-9

3
  • this installation cost almost 12 hours....
    – wouldWood
    Apr 11 at 1:23
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Apr 11 at 6:20
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From Review
    – matt
    Apr 13 at 16:53
0

I faced the same issue. I monitored the process using @thelawnmowerman answer. But the process was getting stuck after progressing.

I terminated the App Store every time the process got stuck and opening it again also started monitoring process again, it started progressing every time and I reached to the 1000 (100%).

0

I am using a base Macbook Air M1 2021 (8 GB RAM). I downloaded Xcode from the apple developer portal and installed it with the xip command. Open your Terminal and type the below:

xip -x ~/file-location

Double-clicking the file takes too long, the above command took ~5-8 minutes to expand the file. After that just move it to the applications folder so you can find it in the Launchpad.

Reference to answer: https://stackoverflow.com/a/56913909/15425440

-16

You can open the app store, search XCode and click the stop button. Worked!

3
  • 4
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Sep 28, 2021 at 23:21
  • 1
    I'm glad this worked for you, but it did not work for me; no amount of clicking on the stop button had any effect on a hanging install of Xcode. The App Store did not return to a usable state until I deleted the partially-downloaded Xcode, logged out, and logged in again.
    – E. Bishop
    Oct 22, 2021 at 0:52
  • 1
    Yes, but your answer doesn't address the question itself. Why is xcode taking so long to install and how to fix it. Dec 18, 2021 at 19:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.