用 xip -x 解压签名过的 .xip 文件
在终端解包 Apple 的 .xip 归档(如 Xcode 安装包),并自动校验签名。
运行 xip -x 加 .xip 文件路径,签名校验通过后内容会解压到当前目录。
01命令
命令
$ xip -x ~/Downloads/Xcode_15.xip02作用说明
.xip 是带签名的压缩归档:解压前 xip 会对照 Apple 证书链校验签名,下载文件损坏或被篡改时会明确报错,而不会装出一个坏应用。它没有指定输出目录的参数,先 cd 到目标位置再运行即可。
03风险
!注意: xip 只能解压到当前目录,安装 Xcode 前先 cd 到合适的文件夹(如「应用程序」)。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- xip(1) – OS X manual page依据: xip -x expands a signed .xip archive into the current directory; the signature is verified against Apple's certificate before extraction completes.
最后验证: 2026-09-18 · 分类: 开发者