Xcode 12 Taking a Long Time to Expand

Hello! I am installing Xcode 12 on an external solid state drive due to low storage on the main hard drive on my Mac. However, I cannot figure out how to get it to finish the unzipping process. As of now, it has been unzipping for the past two hours. Is this supposed to happen? Does anyone have suggestions on how to get it to finish the unzipping process, so I can use it? Thanks!
same issue bro since 2 days I try to install but still not install. Now a days My whole day task is installing Xcode. ;)

Running Time Activity -> imgur.com/a/BZwh6i4
Same here! Went for my lunch and after 1 hour the expanding progress is a little over 60%.
Same here freezed unzip process and also exhausted disk space. Even worst part here in this forum - no one from official Apple team responded yet (3 months and counting.)
Same here!!!
Where did you download from ? Appstore ?

If so, try download from https://developer.apple.com/download/more/
Same here. I tried to install in macOS Sierra V 10.12.6 Still couldn't install it. Taking too much time to expand and stopped in the middle of the process. I, too, need a solution
Same here, Trying to install in macOS Catalina :(
I downloaded Xcode on my external drive and need to extract xip file with command line.

cd /Applications
xip -x /Volumes/mydrive/Xcode_12.5.xip

Same here as well. Anyone got any solution so far on this?

Same here for XCode 13.

I copied to a the external drive and ran :

time xip -x Xcode_13_beta3.xip

After 24 minutes it spits out a bunch of errors:

54: Error: failed to write 8992 bytes to /var/folders/lf/khb1n07j4nvf8tgybttqs81m0000gn/T/C063E34F-1D18-446A-8E4F-34E3377C56A7//Xcode-beta.app/Contents/SharedFrameworks/GameToolsFoundation.framework/Versions/A/Resources/animateWithTexture_48.tiff(9) at 0: No space left on device

man xip says:

--expand <input-file> Expands the archive into the current working directory. This option cannot be used with any other arguments.

Oh really? /var/folders/ is not the current working directory.

I download Xcode_12.5.1.xip and extract it using xip. The extraction takes forever, so I take a look at the extracted files, and it grows over than 96GB from the original 11GB. So I stopped the extraction. Who knows how space will it consume after the full extraction. (76GB is from folder Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator) https://i.imgur.com/yTSk9PS.png https://i.imgur.com/yQyVGTe.png

Why do Apple expect that we all have enough space to store the fat boy Xcode? Does anyone knows how to extract subset of files from a xip?

Here is a tip. First install it on your Mac's internal SSD and then directly move it to your external SSD. In this way, you'll have it installed on your external SSD, and would be a little more faster.

Same here too. Trying to install the current Xcode 13 beta . I am on Big Sur 11.6, first tried with double click ( it did not work ) and now through terminal. So far 2 hours and it is stuck on the very first line that is says: " xip: signing certificate was "Software Update" (validation not attempted)" I dont know what to make of it .... going to leave it like this for the night and check it in the morning. And yes, my hard drive has 1.2 TB free space so this not the reason. Any faster and working solution would be highly appreciated.

Any working solution so far?

Me also had same problem. While I'm writing this (answer) my unzip process just already finished, it takes about almost 3 hours. Almost cancel the process, thank god still have mood to wait. Huhhhh...

Well, this worked for me:

  1. Download XCode from https://developer.apple.com/download/all/
  2. Transfer the .xip file to your external SSD.
  3. Extract/Unzip the Xcode from .xip file there.
  4. After extracting, transfer the XCode into your Applications Folder.

P.S I successfully installed XCode 13.1 using the above process on my MBA.

P.P.S I had around 37 GB left on my mac (before installing) and used a 2 TB SSD

I have MacBook Air with SSD 120GB, MacOS 12.1, downloaded XCode13.2.xip which is 10GB, and couldn't extract it 5+ hours.

BUT

Later I found out that in System Preferences / Battery / Power Adapter / Prevent Mac from automatically sleeping when the display is off WAS Unchecked, and that cause my Mac go to sleep after 5 minutes when the display went off and did this completely silently because I have SSD.

SOLUTION:

Set System Preferences / Battery / Power Adapter / Prevent Mac from automatically sleeping when the display is off = ON, and after that the xip extraction could finish in 30 minutes. The extracted Xcode folder is now 30GB (18GB on disk).

God Bless

Solution for me:

I have the same issue, unpacking with Archive Utility (The default app with the green logo, idk its English name) the xip file stored on an external ssd, and I was stuck at the end for 2 hours.

I analyzed with cleanmymac (im not sponsored) the space of all my storage, and there was 20gb from nowhere on my computer's ssd. So I looked in the path, and there was Xcode.

With more details:

  1. Force to quit Archive utility (so it doesn't delete its cache)
  2. (If you have software that can show you the sizes taking the most place on your storage, use it to find the path), for me the path was /private/var/folders/41/x4clwyh51x157mh_1ty5c6880000gn/T/com.apple.AUHelperService/85EE5F7B-09FD-4B51-89F1-140FBA71258B/Xcode.app. It is the path Archive utility stores the file it is unpacking. This path will probably different for everyone, so go to /private/var/folders/ and try to follow the >20gb size hidden somewhere by looking up space of every directories.
  3. When you finally find it, move it to your applications or anywhere you want to.

I am still doing it rn, so when ill have finished to move it, I am not sure of the app's integrity, I will comment my own post to tell how it went

You just take a look at Xcode and you know the whole thing is just wrong in every way; look at Cocoapods and the architecture.... Nothing works..... the release of apps and submission of the IPA files, the signing certificates, etc. Everything about the whole design is wrong... So this XIP extraction taking forever is in keeping with Apple's "wrong" approach.

What worked for me was cooling it down with a fan. As soon as I started using the fan, the CPU usage went way down and the unzipping process went by in a matter of minutes.

Environment:

MBP Late 2017, 16 GB, SSD 1 TB

Monterey 12.4

XCode 13.4

Update via Appstore got stuck, although more than 40 GB hard disk space available.

Then:

cd /Applications sudo xip -x /Users/$LOGNAME/Downloads/

Took about 10 minutes to extract & verify. After that, start XCode, will again be verified for valid certificates, takes a couple of minutes. After that, you're all set & good to go. Since you didn't remove / delete any XCode related secondary files, all your former projects are still available.

In my case... It took around 9 hours:

➜  ~ cd /Volumes/ADATA\ HD710\ PRO/Applications
➜  Applications time xip -x /Volumes/ADATA\ HD710\ PRO/Documents/Downloads/xCode/Xcode_13.4.1.xip
xip: signing certificate was "Software Update" (validation not attempted)
xip: expanded items from "/Volumes/ADATA HD710 PRO/Documents/Downloads/xCode/Xcode_13.4.1.xip"
xip -x /Volumes/ADATA\ HD710\ PRO/Documents/Downloads/xCode/Xcode_13.4.1.xip  2461.77s user 2212.67s system 14% cpu 9:05:36.61 total
Xcode 12 Taking a Long Time to Expand
 
 
Q