Cannot update xcode on AppStore

Salah picture Salah · Jun 2, 2018 · Viewed 14.6k times · Source

I just upgraded from Sierra to High Sierra And I met this problem which is i cannot Update xcode. When i click on update it shows loading symbol on top starts animating and nothing happen.

enter image description here

I tried this:

sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate.plist RecommendedUpdates
sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate.plist DidRegisterLocalUpdates
sudo rm /Library/Updates
rm -rf ~/Library/Caches/com.apple.SoftwareUpdate/

Any help?

Answer

user9749232 picture user9749232 · Jun 2, 2018

Re-login your apple id in App Store might help. If not, you can download the latest Xcode in developer website instead of updating.

https://developer.apple.com/downloads