0
votes

I can not install xcode 10.1 on my mac it gives me error

There is not enough disk space available to install the product.

although I have 18 GB free

can anyone tell me what is the problem

4
I have the same issue with XCode 10.2.1. I have 54 GB free on my mac.oferei

4 Answers

3
votes

Clear the data from these two locations on your mac book

~/Library/Developer/Xcode/iOS DeviceSupport/

~/Library/Developer/Xcode/DerivedData/

These are temp files. They will be regenerated by Xcode.

Now try installing.

1
votes

The xcode xip file is around 6GB. When you unzip it, it will take around 12 GB of space. Further installation will take place once you launch the xcode first time. So yes 18GB seems a lot but xcode can eat it all in no time and want more.

0
votes

There is something wrong with AppStore, I had the same issue I had to download the file directly

here is the link for Xcode 10.2 https://download.developer.apple.com/Developer_Tools/Xcode_10.2/Xcode_10.2.xip

here my alternative link from google drive https://drive.google.com/uc?id=1obcFEhddXF9cCMviSiA144r9ymDzNHhv&export=download

just download and installed

0
votes

⦿ if you have enough space and still facing this issue, you may need to Restart Your Mac.

⦿ And if you want to clear some space, you need to remove these folders:

~/Library/Developer/Xcode/iOS DeviceSupport/

~/Library/Developer/Xcode/DerivedData/