Unpacking XIP files on Linux:
- Install xar from https://mackyle.github.io/xar/
- Install pbzx from https://github.com/NiklasRosenstein/pbzx
(use
gcc -llzma -lxar -I /usr/local/include pbzx.c -o pbzx
and copy the binary into your PATH) - use
xar -xf XIP_FILE -C /path/to/extract/to
- Change to the directory where you extracted the file.
- Use
pbzx -n Content | cpio -i
to extract the contents.
On modern Linux you need to fix configure.ac: https://askubuntu.com/a/1195797
Also note that you have to install libbz2-dev (and liblzma-dev) on Debian/Ubuntu to extract at least the Xcode xip archive.