Search code examples
iosxcodeuiwebviewwkwebview

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?


Solution

  • 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