function unxip() { [ -z "$1" ] && echo "usage: unxip /path/to/archive.xip" && return
First, we verify the signature of the xip file, and then extract its contents using xar . Then we use Jonathan Levin pbzx to properly unpack the pbzx and pbzx output into tar , skipping . to avoid overwriting current working directory permissions.
This does the trick to unzip the Xcode8.xip archives on OS X El Capitan.
source share