With MacOSX built with VMware virtual machines, there was an insufficient disk space error installing Xcode.
Because many friends in the initial installation of MACOSX, the default choice of 40G disk size, the results in two days after the discovery of the disk is not enough.
At this time, Baidu you will find a lot of related articles, is generally correct, but for the version above OS10.10 may appear the PCI external disk size through the disk tool can not be extended problems.
The result is that the disk tool can see that the corresponding disk has been extended to the target size, but cannot be partitioned, where the only MACOSX partition can not be erased and extended operation, because it is very simple, this is the MACOSX system disk, so you can not operate when the system is running. and VMware can't get into MacOSX's recovery partition, so you can only despair.
Toss n long after, accidentally found MacOSX have a diskutil command (inside the terminal used). And Diskutil has a resizevolume command. Well, you already guessed how I did it.
If you see this text, you are using RSS to read or turn to "a Tree-blog park," The original address: http://www.cnblogs.com/atree/p/MacOSX_diskutil_xcode.html
In fact, it is very simple, the solution:
1. Open terminal, enter Diskutil list;
2. Find the partition you need to expand from the list shown (the partition is not a disk, the ID of the partition is generally DISKXSX);
3. Then enter Diskutil resizevolume disk0s1 100GB, where DISK0S2 is the target size for the ID,100GB of the corresponding partition (the target size cannot exceed the total of this disk);
4. Enter, wait for the completion!
It's that simple.
VMware Virtual Machine mac OS X cannot resize the extended hard disk, and there is not enough disk space to update Xcode