Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9: Block-compressed payload operation failed

MacBook Pro El Capitan (10.11.6) here. I'm trying to install Xcode 9 so that I can play around with ARKit. From the Apple Developer's site, the only version of 9 I can find is Xcode_9_beta_6.xip (please correct me if I'm wrong!), so I download it:

enter image description here

Then I extract & run the XIP file:

enter image description here

But that operation fails due to this strange error that Google doesn't really help me out with (at all):

The operation couldn't be completed. Block-compressed payload operation failed

enter image description here

Any ideas what's going on here?

like image 889
smeeb Avatar asked Sep 05 '17 15:09

smeeb


People also ask

How to fix “XCode not installing on disk” error?

Here’s the solution to installing Xcode when you get this error: Create a very large file (multiple GBs) using dd (or similar), wait a moment, then delete it (and clear your trash). Now you have enough free space to install Xcode. Still interested in the full reason why this is working? Keep reading. What is the Problem? Is it really the disk size?

Why can’t I expand my Xcode XIP file?

“Xcode.xip can’t be expanded because the current volume doesn’t have enough free space.” Error prompt from the Xcodes App ( github.com/RobotsAndPencils/XcodesApp) The initial reaction: “Huh. Wait a minute? I do have enough space, don’t I?”. Then you check your disk usage statistics, and yes, looks like there should be enough free space.

How much space do we need for the full Xcode app?

The archive has about 11 GB of file size. That is quite a lot of data, especially for an archive which is the compressed version of Xcode.app. So how much space do we really need for the full app, on our disk? We need a whopping 30 GB of space on our disk. This is a challenge, especially for developers with small drives.


2 Answers

You must use at least the version 10.12.6 to install Xcode 9 beta 6 , I had the same problem but this solved after update my MacOs version, you can try unzip the file with Archive Utility.

like image 124
DariusV Avatar answered Nov 06 '22 18:11

DariusV


xip -x Xcode_12.5_beta_2.xip worked for me today.

like image 34
Dan M Avatar answered Nov 06 '22 19:11

Dan M