Xcode.xip can’t be expanded because the current volume doesn’t have enough free space.
I DO have x2 - x5 times the size of Xcode archive or the binary, but the problem is really with the way APFS works.
Following this tip I'm creating a large (~20 GB) file before downloading or unarchiving, and then deleting it after a few seconds and proceeding with the installation.
I thought Xcodes might automate this step.
There is a complete article explaining the underlying APNS problem, but in case it's behind the paywall for you, here is the command that creates a 20GB file:
I'm constantly getting hit by this error:
I DO have x2 - x5 times the size of Xcode archive or the binary, but the problem is really with the way APFS works.
Following this tip I'm creating a large (~20 GB) file before downloading or unarchiving, and then deleting it after a few seconds and proceeding with the installation.
I thought Xcodes might automate this step.
There is a complete article explaining the underlying APNS problem, but in case it's behind the paywall for you, here is the command that creates a 20GB file: