[绍棠] 去除AFNetWorking中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://developer.apple.com/documentation/uikit/uiwebview](https://developer.apple.com/documentation/uikit/uiwebview) for more information.

 

方法一: 

如果是手动拖AFNetWorking到你们的项目中,你们其实可以通过手动删除去进行操作的。这里就不详细讲解了。

方法二:

其实AFNetWorking的Git上已经给出的答案

[绍棠] 去除AFNetWorking中UIWebView分类_第1张图片

我们照做就行了

pod 'AFNetworking', '~> 3.2.1', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']

在pch导入文件这里换成

#import 

 

你可能感兴趣的:(Xcode,iOS开发)