如何在 Project 中找到 UIWebView 并将其替换为 WKWebView? [英] How to find UIWebView in Project and replace it with WKWebView?

查看:34
本文介绍了如何在 Project 中找到 UIWebView 并将其替换为 WKWebView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们发现您的应用应用名称"1.0 (5.0) 最近交付的一个或多个问题.请更正以下问题,然后重新上传.

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:不推荐使用 API - 不再接受使用 UIWebView 的新应用.相反,使用 WKWebView 来提高安全性和可靠性.了解更多(https://developer.apple.com/documentation/uikit/uiwebview).

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).

最好的问候,

应用商店团队

在上传构建时收到来自 no_reply@email.apple.com 的上述电子邮件.我没有在我的项目中使用 UIWebView.我已经更新了所有的豆荚.我在工作区中搜索了UIWebView"这个词,但没有找到.我还在终端中使用 grep -r -f "UIWebView". 搜索,得到 grep: UIWebView.: No such file or directory.

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??

推荐答案

我解决了一个类似的问题如下:

I solved a similar problem as follows:

  1. 在工作区UIWebView中搜索并替换为WKWebView
  2. 移除故事板中的 UIWebView 并添加WKWebView"(不要忘记与代码的联系)
  3. 在终端,在项目文件夹中,输入命令:

  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" .

(不要忘记命令末尾的空格和点!)在库文件中找到指向 UIWebView 的链接.

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

使用 UIWebView 更新库,如果没有帮助,则删除所有链接到 UIWebView 的库.(大多数带有 UIWebView 的库都有没有 UIWebView 的新更新)

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)

这篇关于如何在 Project 中找到 UIWebView 并将其替换为 WKWebView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆