1. 检测原因
各位在递交 AppStore 审核时,应该都遇到过苹果邮件,截止到 2020.12 月,UIWebView 全部禁止使用了,但是工程里并没有使用,可能还是会爆出来,这时候就需要检测一下 .a .framework lib 等各种文件。
2. 苹果邮件
Your delivery was successful, but you may wish to correct the following issues in your next delivery:
**ITMS-90809: Deprecated API Usage** - App updates that use UIWebView will no longer be accepted as of December 2020\. Instead, use WKWebView for improved security and reliability. Learn more ([https://developer.apple.com/documentation/uikit/uiwebview](https://developer.apple.com/documentation/uikit/uiwebview)).
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
3. 检测方法
其实很简单,就一行命令搞定。先 cd 到工程根目录,然后执行 grep 命令,注意别漏掉后边那个点。
grep -r UIWebView .
然后就可以看到哪些地方有这些文件了。
网友评论