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
1. First if you are using it in your code
All you have to do is to start migrating from UIWebView to WKWebview

You need to replace this code

With this code

2. If you are using 3rd party libraries

Migrating from UIWebView to WKWebView might seem relatively 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 do a text search for UIWebView in their sources.

One of the most used 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' .

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

I hope this will help you 🙂

Leave a Reply

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