ITMS-90809: DEPRECATED API USAGE – MIGRATE FROM UIWEBVIEW TO WKWEBVIEW

ITMS-90809: DEPRECATED API USAGE – MIGRATE FROM UIWEBVIEW TO WKWEBVIEW

If you are an IOS developer and you are using UIWebView and constantly deploying apps to the app store that means you definitely faced a warning from apple telling you

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of
app updates that use UIWebView APIs starting from December 2020. 
See https://developer.apple.com/documentation/uikit/uiwebview for more information.

That means you should start to get rid of all the uiwebview and replace them with WKwebView.
And starting from Aprile 2020 you will not be able to submit any app using uiwebview

So How you will do it
First, if you are using it in your code all you have to do is to start migrating from UIWebView to WKWebview

UIWebView Code

you need to replace this code

WKWebView Code

with this code

migrating from UIWebView to WKWebView might seem quite straightforward, but you probably use some 3rd party libraries and they might also contain UIWebView.
You need to find all of them and update them, if available or replace them. This process is not exactly trivial. If you use 3rd party libraries as code, for example via Cocoapods, you can just do a text search for UIWebView in their sources.

one of the most using libraries is RxSwift using the UIWebView in version prior to 5.1.0
so you can use this command to find all of these libraries

grep -r 'UIWebView' .
Search Result

Then check the result that you got and try to upgrade all the pods and that’s it

hope this will help you 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *