如何在当前项目中搜索任何 UIWebView 组件使用情况?

How to search for any UIWebView component usage inside a current project?(如何在当前项目中搜索任何 UIWebView 组件使用情况?)

本文介绍了如何在当前项目中搜索任何 UIWebView 组件使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在提交我的最新版本时,Apple 对此警告做出了回应.

when submitting my latest build, Apple has response with this warning.

ITMS-90809:已弃用的 API 使用 - Apple 将停止接受使用 UIWebView API 的应用提交.有关详细信息,请参阅 https://developer.apple.com/documentation/uikit/uiwebview.

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.

仅供参考,我已经根据 Apple 的建议将项目中的所有 UIWebView 组件迁移到 WKWebView 组件,但 Apple 仍然以相同的警告响应.

Fyi, I already migrate all UIWebView component to WKWebView component in my project based on Apple recommendation but Apple still response with the same warning.

除了使用 Xcode 中的搜索功能之外,还有其他方法可以搜索仍附加到我的项目的任何 UIWebView 元素吗?

Is there any ways to search for any UIWebView element that still attached to my project other that using Search functionality inside Xcode?

推荐答案

嘿,我尝试在 Xcode 中搜索.几个第三方库使用了它.(以 FBSDK 为例)我更新了这些库,但这还不够.

Hey I tried searching in Xcode. Couple of the third party libraries used it. (FBSDK for example) I updated those libraries but that wasn't sufficient.

在下一次上传时,可怕的电子邮件又来了.

On the next upload the scary email arrived again.

然后我发现了这篇文章:https://medium.com/@zivchen_42755/for-me-that-wasnt-enough-it-didn-t-found-all-of-them-thats-奇怪的事情要做与pod-i-a068d55b7fab

Then I found this article: https://medium.com/@zivchen_42755/for-me-that-wasnt-enough-it-didn-t-found-all-of-them-thats-weird-something-to-do-with-pod-i-a068d55b7fab

在评论中有人提到 grep 是药物.

and in the comments someone mentioned grep being the medicine.

所以我尝试了 grep -r UIWebView/Path/To/Project/*

它发现了几个也使用 UIWebView 的二进制框架.(GoogleSignin、Crashlytics ...)我也更新了这些.

And it found a couple of the binary frameworks that also use UIWebView. (GoogleSignin, Crashlytics ...) I updated those too.

在下一次上传时没有可怕的电子邮件:D

On the next upload there was no scary email :D

这篇关于如何在当前项目中搜索任何 UIWebView 组件使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何在当前项目中搜索任何 UIWebView 组件使用情况?

基础教程推荐