Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

ios - How to search for any UIWebView component usage inside a current project?

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

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.

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.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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

and in the comments someone mentioned grep being the medicine.

So I tried grep -r UIWebView /Path/To/Project/*

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

On the next upload there was no scary email :D


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...