Apple adopted the xip format digitally signed for Xcode downloads a couple of years in the past. That is basically a signed model of the zip archive. Most frequently, you obtain a xip and double-click. Archive Utility opens the file, verifies its signature, and expands its contents.
In its default settings, Archive Utility all the time builds recordsdata in the identical folder that you just obtain. With Xcode, this can be a huge downside as a result of transferring the applying with its hundreds and hundreds of tiny embedded subfiles and executables takes perpetually. Alternatively, transferring the xip file from one location of your system to a different might be extraordinarily gradual.
Fortuitously, Archive Utility means that you can specify the place to unpack. Launch the applying utilizing Highlight (or / System / Library / CoreServices / Functions / Archive Utility.app) and open the preferences.
Though there is no such thing as a "Ask" possibility for "Save developed recordsdata", you may choose the place you need to retailer objects utilizing "en" within the pop-up window subsequent:
As soon as set, you have to disable it for basic use as a result of the situation persists between launches. Evidently, that is very painful when utilizing archives for functions apart from Xcode:
Fortuitously, you may decompress extra effectively by utilizing the command-line xip utility situated in / usr / bin / xip with out having to play Archive Utility or its preferences:
Use: xip [options] –sign
Utilization: xip –expand
99.9% of all you do with xip is that this final "use" instance. Nevertheless, since xip doesn’t provide the –help possibility, if you wish to know what are these attention-grabbing [options] it’s a must to learn the person web page (man xip). I favor to open the guide pages in Preview as an alternative of the command line, utilizing this little trick:
man-t xip | open -f -a /System/Functions/Preview.app
Discover two issues right here:
First, the -t flag tells the consumer to make use of the Groff composer (unrelated) to format the postscript web page. That is in PDF kind in Preview. (Extra exactly, it makes use of / usr / bin / groff -Tps -mandoc -c if this sort of element intrigues you.)
Secondly, the trail for Preview has been modified in Catalina in / System / Functions. If you wish to do it on Mojave or an earlier model, modify the trail accordingly.
(Just isn’t this a chic option to see the person pages?)
Though the guide web page suggests you signal your individual xip archives and supply your individual identities, don’t trouble. This format is unique to Apple from macOS Sierra. Solely xip archives signed by Apple might be developed in trendy macOS variations. (For extra particulars, see Technical Observe TN 2206.)
Since –expand can’t be used with some other argument, go to / Functions and increase from there:
% cd / Functions /
% time xip –expand /Volumes/Kiku/xips/Xcode_11.2.1.xip
Including the time command initially of the road lets you know the way lengthy it took to decompress, which may be very satisfying for pedants like me. For many who performed, it was
xip: developed components of "/Volumes/Kiku/xips/Xcode_11.2.1.xip"
1109.625u 275.408s 10: 58.85 210.2% zero + 0k zero + 0io 167pf + 0w