ITMS-90809: Deprecated API Usage - UIWebView

Stack : React native 0.59.10

Problem :

You might have received this email from AppStore connect,

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.

Reason:
This is because you have been using UIWebView instead of WKWebView for bundle creation. by default react native 0.59.10 bundle with this UIWebView.

Solution:

Add this to your web view


<WebView useWebKit={true}/>

Remove references of followings from the libraries of Xcode

First, search your Xcode project for “UIWebView”
You should see this:

Right click and choose “Reveal In Project Navigator”



And it will take you here:



Don’t delete RCTWKWebview.h or RCTWEKWebView.m — they don’t use UIWebView.
Instead, scroll down and delete the following four files:


RCTWebView.h/m and RCTWebViewManager.h/m because they depend on RCTWebView.
Now re-archive your project and submit.



43 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Muchas gracias, me funciono correctamente!

    ReplyDelete
  3. error: /Users/usuario/Documents/Repositorios/OyvoyAplicationMovil/node_modules/react-native/React/Views/RCTWebViewManager.h: No such file or directory (in target 'React' from project 'React')

    ReplyDelete

  4. Showing Recent Errors Only
    PBXCp Views/RCTWebViewManager.h /Users/manawar/Library/Developer/Xcode/DerivedData/mycab-fccwruyrstnlhchbjjbgeegayzap/Build/Intermediates.noindex/ArchiveIntermediates/mycab/BuildProductsPath/Release-iphoneos/include/React/RCTWebViewManager.h
    cd /Users/manawar/MYF_projects/new_mycab_for_merge/cabdesk/node_modules/react-native/React
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/manawar/MYF_projects/new_mycab_for_merge/cabdesk/node_modules/react-native/React/Views/RCTWebViewManager.h /Users/manawar/Library/Developer/Xcode/DerivedData/mycab-fccwruyrstnlhchbjjbgeegayzap/Build/Intermediates.noindex/ArchiveIntermediates/mycab/BuildProductsPath/Release-iphoneos/include/React

    error: /Users/xxxx/xxxxxx/xxxxx/xxxxx/node_modules/react-native/React/Views/RCTWebViewManager.h: No such file or directory

    ReplyDelete
  5. Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.

    python training in bangalore

    python training in hyderabad

    python online training

    python training

    python flask training

    python flask online training

    python training in coimbatore

    ReplyDelete
  6. Hi,

    Works for me,

    i used: react native 0.59.9



    thanks

    ReplyDelete
  7. HI everyone it's really happy if you guys got something out of my post, cheers

    ReplyDelete