ITMS-90809: Deprecated API Usage - existing app that use UIWebView are no longer accepted

前端 未结 9 2065
星月不相逢
星月不相逢 2020-12-30 23:43

ITMS-90809: Deprecated API Usage - Apple will no longer accept submissions of new apps that use UIWebView as of April 30, 2020 and app updates that use UIWebV

相关标签:
9条回答
  • 2020-12-30 23:59

    I get rid out from this by following below steps (in react-native project)-

    Step 1:

    Search “UIWebView” in xcode project directory

    Step 2:

    Right click (on RCTWebView.m) and select “Reveal In Project Navigator”

    Step 3:

    Scroll down and delete the following four files only:

     1. RCTWebView.h
     2. RCTWebView.m
     3. RCTWebViewManager.h
     4. RCTWebViewManager.m
    

    Then clean the project & archive.

    N.B: If you use 'react-native-community/react-native-webview' library then update with latest version otherwise it's done.

    0 讨论(0)
  • 2020-12-31 00:00

    Yes, Apple did change the policies Are you using ionic? if so, install these:

    1. cordova plugin add cordova-plugin-ionic-webview@latest
    2. npm install @ionic-native/ionic-webview

    Then add this to your config.xml under ios platform:

    <preference name="WKWebViewOnly" value="true" />
    <feature name="CDVWKWebViewEngine">`
    <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    

    Finally run ionic cordova prepare ios to reflect the changes then run ionic cordova build ios --prod

    PS: Make sure you have only one webview plugin installed.. either this or the 'cordova-webviewengine'. But the above method worked for me and my app is in app store now

    0 讨论(0)
  • 2020-12-31 00:02

    The answer here solved my problem

    cordova prepare ios
    npm install -g cordova-check-plugins
    npm install -g npm
    cordova-check-plugins --update=auto
    npm update -g cordova
    ionic cordova platform rm android
    ionic cordova platform rm ios
    npm i -g @ionic/cli
    cordova plugin remove cordova-plugin-inappbrowser
    cordova plugin add cordova-plugin-inappbrowser@3.2.0
    ionic cordova platform remove ios && ionic cordova platform add ios@latest && ionic cordova build ios
    
    0 讨论(0)
  • 2020-12-31 00:05

    I have faced same problem in Ionic 4.

    List of steps followed to fix the problem

    please update your IOS platform. and App browser .

    cordova plugin add cordova-plugin-wkwebview-engine
    
    run cordova plugin add cordova-plugin-wkwebview-engine
    
    detele node_modules , then reinstall by run yarn or npm install
    
    run ionic cordova platform rm ios
    
    run ionic cordova platform add ios@5.1.1
    
    npm i cordova-plugin-inappbrowser@3.2.0
    
    cordova plugin add cordova-plugin-inappbrowser@3.2.0
    
    ionic cordova prepare ios.
    
    ionic cordova build ios
    
    0 讨论(0)
  • 2020-12-31 00:11

    For Xamarin Form projects, here is the fix:

    Go to your iOS project, open the project properties and add this flag in the additional mtouch arguments field: --optimize=experimental-xforms-product-type this flag works together with the Linker Behavior set to SDK Only or All.

    Read more from Microsoft: https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/

    0 讨论(0)
  • 2020-12-31 00:17

    i faced the same issue few days earlier for my IONIC 4 Project. when i uploaded my IPA, i got this warnings from App Store Connect.

    I fixed the "UIWebView" issue, by the following steps. hope it will also work for you.

    Follow this steps :

    1. Run the following command to Remove the existing platform.

      ionic cordova platform rm ios

    2. remove the existing web view plugin and install the latest one.

      ionic cordova plugin rm cordova-plugin-ionic-webview

      ionic cordova plugin add cordova-plugin-ionic-webview@latest

    3. Install this also.

      npm install @ionic-native/ionic-webview@latest

    4. Add this to your config.xml file under the ios part.

      <preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

    5. check your "cordova-ios": "^5.1.1" version. it should be 5.1.x or greater.

    6. then run this commands to build again.

      ionic cordova platform add ios

      ionic cordova prepare ios

      ionic cordova build ios

    that's all. it worked for me.


    My Package.json file :

    Sharing my config.xml also :

    Follow this link for more info :

    https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/

    Thanks.

    0 讨论(0)
提交回复
热议问题