Sometimes, when our Mac hard disk space is not enough, we look at the "Users" folder, found that this folder occupies a large amount of storage space, but when we look at the folder under the Sub-folder of the size of the storage space and add up these storage space, we found that These subfolders account for only 30% of the total storage space of the "users" folder, the other 70% inexplicably disappeared, which is very strange, this is why?
In fact, this is the case, in fact, in this "user" folder, there is a folder is hidden, this folder is called "Library", "Resource pool" by default is hidden by the system, we use command-line command to display all hidden files can see it, it occupies "lost storage space", This time, although you can see the size of the "library", but still cannot open it directly from the Finder window, so we still can not know exactly what is under it occupies most of the space.
Here's a way to open it: first switch to the Finder program and open the Go menu.
Then hold down the Option key and the library item will appear in the menu, then click it to open the hidden User repository folder so we can go to this folder.
After opening this folder, we open "Developer"----> "Xcode", in "Xcode" there is a folder called "Deriveddata", in this file saved a lot of files, that is, these files occupy "lost space" of 90% , open "Deriveddata" we can see, in fact, this is what we have previously run on the emulator of the source code of all the programs, we just have to delete them, so we can retrieve the lost dozens of g of storage space.
Workarounds for iOS developers with insufficient Mac space