Afnetworking: ITMS-90809: Deprecated API Usage - UIWebView APIs

Created on 27 Jan 2020  ·  10Comments  ·  Source: AFNetworking/AFNetworking

Your delivery was successful, but you may wish to correct the following issues in your next delivery:

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.

After you’ve corrected the issues, you can upload a new binary to App Store Connect.

Best regards,

The App Store Team

Most helpful comment

A scheme by use pre_install hook to remove the files related about UIWebView, the only things you need do is copy the following code to your Podfile.

pre_install do |installer|
    puts 'pre_install begin....'
    dir_af = File.join(installer.sandbox.pod_dir('AFNetworking'), 'UIKit+AFNetworking')
    Dir.foreach(dir_af) {|x|
      real_path = File.join(dir_af, x)
      if (!File.directory?(real_path) && File.exists?(real_path))
        if((x.start_with?('UIWebView') || x == 'UIKit+AFNetworking.h'))
          File.delete(real_path)
          puts 'delete:'+ x
        end
      end
    }
    puts 'end pre_install.'
end

All 10 comments

This refers to Apple News from December 23, 2019 at:
https://developer.apple.com/news/?id=12232019b

The timing:

The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020.

Your delivery was successful, but you may wish to correct the following issues in your next delivery:

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.

After you’ve corrected the issues, you can upload a new binary to App Store Connect.

Best regards,

The App Store Team

pod 'AFNetworking/NSURLSession', '3.2.1'
pod 'AFNetworking/Reachability', '3.2.1'
pod 'AFNetworking/Security', '3.2.1'
pod 'AFNetworking/Serialization', '3.2.1'
可以暂时这样去解决,如果你没有使用AFNetworking/UIKit

我们也收到这个了呢。
我们使用了AFNetworking/UIKit呢,所以咋处理呢?

Duplicate of #4428, please close.

我们也收到这个了呢。
我们使用了AFNetworking/UIKit呢,所以咋处理呢?

等更新吧,毕竟AFNetworking使用太广泛了,现在是截止2020.12月停止使用UIweb的

坐等更新😀😀

A scheme by use pre_install hook to remove the files related about UIWebView, the only things you need do is copy the following code to your Podfile.

pre_install do |installer|
    puts 'pre_install begin....'
    dir_af = File.join(installer.sandbox.pod_dir('AFNetworking'), 'UIKit+AFNetworking')
    Dir.foreach(dir_af) {|x|
      real_path = File.join(dir_af, x)
      if (!File.directory?(real_path) && File.exists?(real_path))
        if((x.start_with?('UIWebView') || x == 'UIKit+AFNetworking.h'))
          File.delete(real_path)
          puts 'delete:'+ x
        end
      end
    }
    puts 'end pre_install.'
end

See #4439

Updated, released. Can be closed.

Was this page helpful?
0 / 5 - 0 ratings