被拒日常(7)--Deprecated API Usage(ui
新、老项目提审被拒邮件如下:
Dear Developer,
We identified one or more issues with a recent delivery for your app, "New ProjectName" 1.0 (20080923). Please correct the following issues, then upload again.
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Best regards,
The App Store Team
Dear Developer,
We identified one or more issues with a recent delivery for your app, "Old ProjectName" 2.4.6 (20052510). 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).
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
Best regards,
The App Store Team
苹果于2020年12月将不再使用UIWebView,替换为WKWebView,新老项目提交审核都需要做修改,否则会收到苹果上面的邮件提示,直至该问题解决
一、检查项目中哪些文件中含有UIWebView
1.使用终端打开项目路径
cd /Users/andy/Documents/xxxx_project
2.打开终端后,键入下面命令行查找含有UIWebView
的文件
grep -r "UIWebView" .
Binary file ./ZhongT.xcworkspace/xcuserdata/zhangfuwei.xcuserdatad/UserInterfaceState.xcuserstate matches
grep: ./Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h: matches
./Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h: #import "UIWebView+AFNetworking.h"
如果没有使用uiwebview
,直接删除上述出现的文件、内容、库;如果用到了uiwebview,替换相应的库!