TestFlight不再接受使用UIWebView的新应用。而是使用WKWebView

时间:2020-06-26 05:23:02

标签: ios swift uiwebview app-store wkwebview

当我尝试部署到TestFlight时遇到此错误:

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).

我了解我需要将ios文件夹中的所有uiwebview都更改为WKWebView。我不确定从哪里开始以及需要更新什么。

提到uiwebview的地方 enter image description here

这是Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'BorroUp' do
    # this is very important to have!
    rn_path = '../node_modules/react-native'
    pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
    pod 'React', path: rn_path, subspecs: [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
    ]  

    pod 'FBSDKCoreKit', '~> 4.39.1'
    pod 'FBSDKLoginKit', '~> 4.39.1'
    pod 'FBSDKShareKit', '~> 4.39.1'
    # Stripe
    pod 'Stripe', '~> 14.0.0'

    # Install additional dependencies
    pod 'Firebase/Core'
    pod 'Firebase/Auth'
    pod 'Firebase/Crash'
    pod 'Firebase/Database'
    pod 'Firebase/Firestore'
    pod 'Firebase/Messaging'
    pod 'Firebase/Performance'
    pod 'Firebase/Storage'

    inherit! :search_paths
    pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'

    end

    # very important to have, unless you removed React dependencies for Libraries 
    # and you rely on Cocoapods to manage it
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        if target.name == "React"
          target.remove_from_project
        end
        if target.name == "yoga"
          target.remove_from_project
        end
      end
    end

0 个答案:

没有答案