Flutter: How to fix ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs

后端 未结 5 2133
生来不讨喜
生来不讨喜 2021-02-06 22:35

When submitting my latest build, Apple suddenly returned a message saying that there was an issue, specifically:

ITMS-90809: Deprecated API Usage - Apple

相关标签:
5条回答
  • 2021-02-06 22:55

    I think it was being used from the firebase_auth plugin. Try to update it to its latest version and then remember run pod update.

    0 讨论(0)
  • 2021-02-06 22:55

    Since this has become the "goto answer" on Google for this rejection message, I'll add a React Native fix.

    On React Native, considering that you've been a good developer and are not using UIWebView in your own code, use the following command to find out which of your dependencies still does use UIWebView:

    grep -r UIWebView node_modules/*
    

    There is a bit more info here.

    0 讨论(0)
  • 2021-02-06 23:07

    Even though I'm not using firebase_auth in my app, I was finding references to UIWEBVIEW in Xcode search from FirebaseAuth. It seems that Pods includes this by default. So this worked for me:

    1. Open project in Xcode
    2. Open the Pods folder and you will probably see a lot of sub-folders (packages)
    3. Right-click on the FirebaseAuth folder and select Delete
    4. Then select "Remove References" not "Move to Trash"
    5. Build the project
    6. The UIWEBVIEW references should be gone
    0 讨论(0)
  • 2021-02-06 23:08

    I have this with our Cordova app and fixed it by updating a dependency.

    Are you by any chance using the dependency or an other dependency is using the dependency "cordova-plugin-inappbrowser".

    If so, this should be fixed in 3.1.0. See the release notes https://github.com/apache/cordova-plugin-inappbrowser/blob/master/RELEASENOTES.md And the PR fixing it https://github.com/apache/cordova-plugin-inappbrowser/pull/271

    Update: it's not fixed yet. See issue on cordova-ios: https://github.com/apache/cordova-ios/issues/661 Note the: There is no deadline, I've contacted an Apple developer that has been tweeting about moving to WKWebView to see if he can provide more information, will update if I get a response.

    Update: Cordova-ios 5.1.0 seems to fix this. See https://github.com/apache/cordova-ios/pull/715

    0 讨论(0)
  • 2021-02-06 23:08

    In my case the problem was the version of the Facebook plugin for Flutter that I was using in debug

    I had to change the version from:

    flutter_facebook_login: ^2.0.1
    

    to:

    flutter_facebook_login: ^3.0.0
    

    Also had to change the pod file from:

    pod 'FBSDKCoreKit', '~> 4.39.1'
    pod 'FBSDKLoginKit', '~> 4.39.1'
    

    to:

    pod 'FBSDKCoreKit', '~> 5.5'
    pod 'FBSDKLoginKit', '~> 5.5'
    

    Then another problem became with the call of this function

    fbLogin.logInWithReadPermissions(['email']);
    

    just replaced with

    fbLogin.logIn(['email']);
    

    then rebuild everything, and upload again.

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