审核-去掉UIWebView 的坑

问题:从2020年4月开始,苹果将停止接受使用UIWebView API的应用:
ITMS-90809: Deprecated API Usage** - Apple will stop accepting submissions of new apps that use UIWebView APIs starting from April 2020. See https://deve<wbr>loper.apple.<wbr>com/document<wbr>ation/uikit/<wbr>uiwebview for more information.

一、删除 UIWebView+AFNetworking

  1. 修改 podFile,
pod 'AFNetworking', '~> 3.2.1', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']
  1. 打开终端进去到项目目录,输入命令 :
pod update
  1. 替换 #import "AFNetworking.h"
#import <AFNetworking/AFHTTPSessionManager.h>

二、删除项目里所有UIWebView

  1. 打开终端进去到项目目录,输入命令 :
 grep -r UIWebView .

检索出所有的UIWebView。

  1. 逐行删除。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。