Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
277 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 Reply

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...