I was trying to upgrade Xcode because it didn't let me upload to apps to iTunes Connect.
Now it's stuck in installing state (few hours) and doesn't start:
Xcode is being updated
Xcode can not be opened while it is being updated.
What do to?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityI was trying to upgrade Xcode because it didn't let me upload to apps to iTunes Connect.
Now it's stuck in installing state (few hours) and doesn't start:
Xcode is being updated
Xcode can not be opened while it is being updated.
What do to?
There is a small progress bar under the Launchpad icon in the Menu Bar.
You can also see the current download progress by hovering over the icon.
Wait for it to end.
In the Updates tab of the Apple App Store, after waiting 1 hour for "2 minutes left," I hit CMD+R to refresh and that seemed to "jump start" it. It finished within 60s after that. Could have been coincidence though (YMMV).
Update: This answer doesn't work anymore as of Big Sur because there is no Check for Unfinished Downloads
option.
original obsolete answer Try this: enter the App Store, click on Store
in the top-left menu and select Check for Unfinished Downloads
. Enter your Apple ID and password.
The above has worked for me on MacOS Sierra, I suspect that XCode was stuck waiting for credentials before download.
Update:
Check for Unfinished Downloads
option may not be present in the later versions of macOS.
Check for Unfinished Downloads
option in the Store
menu.
In launch pad hold the Xcode icon until the X appears and click the X to delete Xcode then go back to the app store and get a fresh copy.
sudo rm -rf /Applications/Xcode.app
should wipe it out, then you can re-install from the App Store. But do make sure it's not actually updating first. It's a multi-gigabyte download so can take a while (yes, even hours, depending on your internet speed.) Opening Launchpad will show a progress bar if it's in the middle of doing something.
The Xcode had stuck in installing. I just opened finder, applications folder and tapped on Xcode. The installing has finished immediately.
I am not sure if it is coincidence.
Xcode 10.3, Mojave 10.14.6
I just installed Xcode (V12.5) on a fresh installation of Big Sur. It took about 5 hours to complete the final installation part of the process (all previous installs on this machine have been much quicker.
In fact the progress bar (in App Store) didn't actually complete, but Xcode did appear in the Applications folder is working fine.
For the benefit of anyone else running into this problem - I don't use my MacMini much. In fact I am back on it right now after a break of almost one year. When I tried to startup Xcode I got this same message and it would not budge.
I uninstalled it and then tried a reinstall only to be told that my OS was "too old". So there you have it - the system goes into a tizzy trying to upgrade Xcode and being held back by the OS not being up-to-date.
Instead of failing gracefully, it keeps trying over and over again!
Sometimes, a simple restart can solve this.