文章转载自:https ://www.cnblogs.com/CoderAlex/p/6295497.html
1.软件准备
【必备】Charles
2.正式开始
2.1打开Charles青花瓷

2.2安装证书以便能够拦截解析HTTPS请求数据

2.2.1如果是选择本地安装证书的话,记住保存格式选择.cer

2.2.2双击下载好的证书

2.2.3右键点击证书

2.2.4信任证书

2.2.5 ssl代理证书配置完成

2.3打开iTunes

2.4单击编辑左上角以便能够出现应用
这个选项

2.5在下拉选项中选择应用

2.6单击正上方的App Store

2.7搜索需要下载历史版本的App,这里我以IT之家为例

2.8点击获取按钮,就会变成正在下载

2.9这时候查看Charles能够看到一大堆请求,看关键字p28-buy
,这个是Itunes的下载请求,而且是HTTPS加密的,链接旁边有一把小锁,不能查看里面的内容

2.10打开ssl代理并打断点拦截该请求

2.11进入iTunes删除刚才下载的App,因为刚才只为为了获取下载请求

2.12删除好App后刷新一下,重启Charles,再次点击iTunes的获取按钮

2.13可以看到这时候已经能够查看HTTPS请求里面的内容了,点击图中相应位置

2.14往下翻,可以查看到一大串数字,这些全都是该应用的历史版本编号,我们只需要把想下载的历史版本的编号复制下来就好,后面会用到,这里我复制第一个11577427
,为该应用程序的第一个版本

2.15再次点击获取按钮,下载请求会被拦截,跳转到Charles

2.16这时候把刚才我们复制好的历史版本号

2.17点击Excute
执行按钮,可能会来断点2次,除了第一次,后面的都直接点击Excute
执行按钮

2.18大功告成!!!

2.19查看下载好的App的版本号



3.安装旧版本应用程序
旧版本的应用程序下载好了,接下来我们要安装到手机上才是王道,或者进行其他用途,这里介绍下2种安装到iPhone上的方法。
1.利用iTunes的安装
手机链接电脑,iTunes会自动弹出,然后会进行同步,刚才电脑上下载好的应用会自动安装到iPhone上。2.利用iTools的安装

