Mac – Problem updating/uninstalling Xcode

mac-appstoresoftware-updatexcode

So I tried updating Xcode but after the update I still got the same version of it (so there was an update still available).

I decided to uninstall it by throwing the app in the trash. The update still remains. After clicking 'Update', nothing happens and now I can't use it.

Any help on this as it is very important for me right now?

Note: I deleted the Library/Developer folder too

Best Answer

There is a downloads page with all past versions of all of the developer tools on it, try https://developer.apple.com/download/more/

  1. Click on the "+" button to the left of "Xcode 10.2"
  2. Click on the "Xcode 10.2.xip" link to download Xcode.

enter image description here