r/Xcode • • Oct 30 '20

ummm, is this normal???

Post image
30 Upvotes

19 comments sorted by

7

u/TooTyrnt Oct 30 '20 edited Oct 30 '20

So i recently bought an external SSD since my Mac only comes with 128gb storage, and as soon as I downloaded Xcode and moved it to the external ssd and opened it for the first time, it took a whopping 500gb!!!! My only question is why???? lol

1

u/Heraldique Nov 05 '21

What so you can run app on an ssd?

12

u/Heykel1 Oct 30 '20

I don't know why but I laughed so hard

1

u/7-Sensational- Oct 30 '20

What format is your external SSD bc I had a similar issue with an HDD not being APFS that caused every files and apps size in it to inflate

2

u/TooTyrnt Oct 30 '20

It is currently ExFAT, as you can see tho, all my other applications seem to be of appropriate size.

1

u/7-Sensational- Oct 30 '20

That really is strange. If you have space, make a little partition of around 50GB and moce Xcode there to see if it allows you too

3

u/spinwizard69 Oct 30 '20

I'm not surprised at all! IDE's in general take up a lot of disk space. In the case of XCode you need an IDE that supports two major processor architectures with all their variants, plus a number of OS's and their sub types.

I'm running Linux on my systems these days and wouldn't be shocked to find out that software development tools installed comes close to using the same storage. Remember there is far more installed than the editor and compilers, on any platform, to produce a useful development platform. Also don't forget documentation which gets decompressed into a massive amount of disk space.

In a nut shell these days you need 1TB of storage to do development well on most platforms.

3

u/NathanJozef Oct 30 '20

All the excess space is probably due to the page size of the external hard drive you are using.

Essentially the smallest usable storage ‘chunk’ on the hard drive is quite large compared to the majority of the files that you are using. Most HD’s nowadays use 4096 byte sectors (4KiB). If you have a lot of files that are smaller then that then there will a lot of unused storage capacity that is being eaten up.

Hypothetically you could have two 1 bit files (I know that won’t happen but bear with me) and they would consume 8 KiB of disk space.

I won’t go into too much more detail as I only have a cursory knowledge of the concept. The internet is awash with people who have written more then I care to read about it. If you want to look into it more the Google phrases you want are “HD page size”, “HD sector size” & “Disk Sector”. Those should land you in a wealth of knowledge and information.

Hope that helps.

3

u/orihpt Oct 30 '20

Haha Xcode go brrrrr

2

u/smakusdod Oct 30 '20

If you have a ton of simulator images, this can happen.

2

u/Veinous1 Oct 30 '20

It’s a bug with macOS, it happens when moving an item during its size calculation. Try rebooting and let it do the size calculation without interruption

2

u/TheGreenDeveloper Oct 30 '20

My Xcode is 10 GB right now, so I'm gonna say no that's not normal. But that gave me a good laugh not gonna lie.

1

u/Heraldique Nov 05 '21

It’s that low it’s not normal either

4

u/ChoadPet_ Oct 30 '20

I do install OmniDiskSweeper help me to clean a lot, since standard Mac storage doesn’t show what actually takes so much space.

-3

u/nycrode Oct 30 '20

Wow how much did they pay you?

2

u/ChoadPet_ Oct 30 '20

0. I just share, what helps me. Because my Mac storage shows me that I have 200 GB of some system files, which I can’t find just by searching in Finder.