ipatool使用
1、安装Homebrew
官网链接: https://brew.sh/index_zh-cn
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
国内使用下面命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2、安装ipatool
https://github.com/majd/ipatool
brew tap majd/repo 使用第三方的库安装
brew install ipatool
3、配置用户信息
sudo ipatool auth login -e 账号邮箱 -p 密码
查看用户信息
sudo ipatool auth info
4、查询app的bundleID
sudo ipatool search -l 5 Wechat
[
9:02AM INF apps=[{"bundleID":"com.tencent.xin","id":414478124,"name":"WeChat","price":0,"version":"8.0.60"},{"bundleID":"com.kissapp.stickerswechat","id":674064590,"name":"Stickers for WeChat","price":0.99,"version":"1.50"},{"bundleID":"com.wejoy.weplay.us","id":1580330718,"name":"WePlay - Game and Party","price":0,"version":"5.1.2"},{"bundleID":"com.tencent.wechatvoice","id":544183522,"name":"WeChat Voice","price":0,"version":"2.1"},{"bundleID":"com.appsnice.emojinewstyle","id":1005968741,"name":"Emoji New for WhatsApp,WeChat,QQ,Line","price":0,"version":"1.2.1"}] count=5
]
5、下载app
-b bundleID
-o 输出文件名
sudo ipatool download -b com.tencent.xin -o /path/to/weixin.ipa