美文网首页
去掉UIWebView 的坑

去掉UIWebView 的坑

作者: BUG熊 | 来源:发表于2020-11-03 18:30 被阅读0次

问题:从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. 逐行删除。

相关文章

网友评论

      本文标题:去掉UIWebView 的坑

      本文链接:https://www.haomeiwen.com/subject/iljivktx.html