Reputation: 65
I have uploaded app in Testflight and got letter with this content: ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
I refactored my code but still I have UIWebView+AFNetworking.h file in the project.
I updated pods, now I have AFNetworking (3.2.1)
Say me please, how to remove UIWebView from AFNetworking also.
Upvotes: 2
Views: 2097
Reputation: 18202
I faced the same issue. I did not use UIWebView in the code anywhere but checks out two external libraries that had UIWebView references. So I had to remove the references.
How to find out which external library is using UIWebView?
$ grep -r "UIWebView" . //Rookie mistake. Don't forget the . <-(dot)
It will give a list of libraries which has UIWebView references in them.
I found 2 libraries in my case?
It seems the new version has removed the UIWebView references so I bumped the AFNetworking library in Podfile to the latest version.
pod 'AFNetworking', '~> 4.0'
TwitterKit also has references to UIWebView. But the problem was that there is no new version available and they have officially discontinued the development of this library two years ago.
So I had to remove TwitterKit from the project. For that, I removed TwitterKit dependency from Podfile
Upvotes: 0
Reputation: 3031
Pod Install
#import <AFNetworking/[FileName].h>
to: #import "[FileName].h"
in some of your filesUpvotes: 1