Search code examples
objective-cswiftuiwebviewapp-store-connectwkwebview

UIWebView still exist in Google Mobile Ads


I am trying to build for IOS but after uploading to ITuneconnect I got this message. 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).

I know this problem exists already. I searched my Project using this command

grep -r "UIWebView".

I got one match

Binary file ./GoogleMobileAds.framework/GoogleMobileAds matches

Please let me know how can I solve this problem.

Anyone have a solution then, please help me.

Thank you.


Solution

  • Alright!

    So Install your Google Ads pod with put this line pod 'Google-Mobile-Ads-SDK'

    And don't worry about grep -r "UIWebView" . It will show UIWebView in Google Ads,

    But It will not stop you from Build your app and submit to TestFlight/App Store,

    Because Google has fixed this.

    Points:

    • Clear your derived data (/Users/yourMacName/Library/Developer/Xcode/DerivedData/)
    • Clean Xcode project (cmd+shift+k)