I have tried to install XCode first via app store and then after downloading the file manually, via command
xip --expand Xcode_13.4.1.xip.
In both cases I got the same error relatie to missing space
xip: error: The archive “Xcode_13.4.1.xip” can’t be expanded because the selected volume doesn’t have enough free space.
The error is quite surpraising as on my hard drive there are still ~35 GB of space available. Following some online suggestion I also tried to create an empty file of ~20 GB with
dd if=/dev/urandom of=temp_20GB_file bs=1024 count=$[1024 * 1024 * 20]
and finally remove it, but it didn't work either.
I guess 35 GB should be enough space but I do not get why it cannot make it to install XCode. Any idea to workaround this?