mac安装zstd
# 编译安装
$ git clone https://github.com/facebook/zstd.git
$ cd zstd; make; sudo make install
mac安装xz
http://tukaani.org/xz/xz-5.2.3.tar.gz
# 依次输入以下命令
tar -zxf xz-5.2.3.tar.gz
cd xz-5.2.3
./configure
make
sudo make install (可能需要输入PC用户密码)
xz -V
新的 16.0.8 存档是使用 zst 压缩的,而 dpkg 在 iOS 上不支持该存档。
# dpkg -i frida_16.0.8_iphoneos-arm.deb
dpkg-deb: error: archive 'frida_16.0.8_iphoneos-arm.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive frida_16.0.8_iphoneos-arm.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
frida_16.0.8_iphoneos-arm.deb
要使用 xz 压缩通过 zstd 重新打包存档,请执行以下操作:
mkdir frida_16.0.8_iphoneos-arm
cd frida_16.0.8_iphoneos-arm
ar -x ../frida_16.0.8_iphoneos-arm.deb
zstd -d *.zst
xz *.tar
ar r frida_16.0.8_iphoneos-arm-repacked.deb debian-binary control.tar.xz data.tar.xz
SCP 将 frida_16.0.8_iphoneos-arm-repacked.deb 存档到您的设备,然后运行 dpkg -i:
# dpkg -i frida_16.0.8_iphoneos-arm-repacked.deb
(Reading database ... 2530 files and directories currently installed.)
Preparing to unpack frida_16.0.8_iphoneos-arm-repacked.deb ...
Unpacking re.frida.server (16.0.8) over (16.0.7) ...
/Library/LaunchDaemons/re.frida.server.plist: Operation now in progress
Setting up re.frida.server (16.0.8) ...