How to find UIWebView in Project and replace it with WKWebView?

妖精的绣舞 提交于 2020-05-29 05:37:32

问题


We identified one or more issues with a recent delivery for your app, "App Name" 1.0 (5.0). Please correct the following issues, then upload again.

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

Best regards,

The App Store Team

Getting above email from no_reply@email.apple.com while uploading build. I've not used UIWebView in my project. I've updated all pods. I searched word 'UIWebView' in workspace but nothing found. I also searched in terminal using grep -r -f "UIWebView"., getting grep: UIWebView.: No such file or directory.

What should I do before uploading new build??


回答1:


I solved a similar problem as follows:

  1. Search in the workspace UIWebView and replace it to WKWebView
  2. Remove UIWebView in the storyboards and add "WKWebView" instead (do not forget about the connection with the code)
  3. In the terminal, in the project folder, enter the command:

    grep -r "UIWebView" .

    (don't forget the space and the dot at the end of command!) to find links to UIWebView in library files.

  4. Update the libraries with UIWebView, and if it does not help, then delete all library that have links to UIWebView. (Most libraries with UIWebView have new updates without UIWebView)



来源:https://stackoverflow.com/questions/61561147/how-to-find-uiwebview-in-project-and-replace-it-with-wkwebview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!