iOS 检测是否含有Deprecated API Usage U
2020-04-01 本文已影响0人
行走在北方
ITMS-90809: Deprecated API Usage UIWebView
自从2020开始,每次上传包,都会有Deprecated API usage XXXUIWebView APIS
原以为是不是苹果一刀切给的提示,后来发现,的确内部是含有UIWebView的,那么问题来了,如何能够确定是否含有过期的API呢
1.反编译
class-dump是可以把Objective-C运行时的声明的信息导出来的工具。可以导出.h文件。用class-dump可以把未经加密的app的头文件导出来
class-dump
链接: https://pan.baidu.com/s/1rYupRPvS1IJNXRxd5jI-dA 密码: 9ibg
解压后将class-dump 复制到/usr/bin/class-dump。
下载后,请参考其他小盆友的更相信的文章
https://www.jianshu.com/p/df20e4357bed
2.找到要解压的IPA包
比如

更换文件夹名字为

解压一下

新建一个文件夹,保存反编译后的.h文件,我在桌面上建了一个result文件夹
用命令行cd到Payload该文件夹
输入命令行
class-dump -H Helloword.app -o ~/Desktop/result

result已经有反编译后的文件了

3.利用sublimeText进行查找看这些类是否有UIWebView



好了,已检测没有UIWebView相关的API
完毕!!!!!
如有问题,请私聊,谢谢