Catalina - XCode won't update

Any ideas?
I’ve tried again latered several times, wired and wireless network.

Sign out of the Mac App Store.

Reboot.

If that doesn’t work…

Here’s a script that I’ve used to delete the Mac App Store cache files before.

#!/usr/bin/env zsh -f
# Purpose: Delete the cache of the Mac App Store app
#
# From:	Timothy J. Luoma
# Mail:	luomat at gmail dot com
# Date:	2016-04-09

NAME="$0:t:r"

if [ -e "$HOME/.path" ]
then
	source "$HOME/.path"
else
	PATH='/usr/local/scripts:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin'
fi

	## Don't run if app store app is running

pgrep -q 'App Store' && echo "$NAME: App Store.app running" && exit 0

sudo -v

for i in \
	"/Library/Application Support/App Store" \
	"$HOME/Library/Application Support/App Store" \
	"$HOME/Library/Preferences/com.apple.appstore.plist" \
	"$HOME/Library/Caches/com.apple.appstore"
do

	if [ -e "$i" ]
	then

		if [ -w "$i" ]
		then
			rm -rfv "$i"
		else
			sudo rm -rfv "$i"
		fi
	else
		echo "$NAME: $i does not exist"
	fi

done

CACHE_DIR=${TMPDIR}../C/com.apple.appstore

CACHE_DIR="$CACHE_DIR:A"

if [[ ! -d "$CACHE_DIR" ]]
then

	echo "$NAME: no directory found at '$CACHE_DIR'."

else

	find "$CACHE_DIR" -type f -print -delete

fi

echo "

$NAME: You should reboot.

"

exit 0
#EOF

This happened to me on our 2013 iMac with Fusion drive. I determined that a ‘verify’ for Xcode was taking place in the background which is a new feature in Catalina. And due to the size of Xcode it was taking forever. I simply deleted Xcode and then it installed fine.

I have no idea if you have this scenario so just mentioning it as an option.

2 Likes

Hi
a restart fixed it for me

Delete and reinstall (command line tools, etc.) worked.
Thanks @ronguest!

1 Like

Thanks to everyone who replied!