ITMS-90809:我使用react-native-webview时不赞成使用API [英] ITMS-90809: Deprecated API Usage when i use react-native-webview

查看:338
本文介绍了ITMS-90809:我使用react-native-webview时不赞成使用API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用react-native-webview,但是当我将应用程序发布到Testflight时,它会发送给我:

i'm using react-native-webview but when i publish the app to Testflight it send me :

App Store Connect

App Store Connect

亲爱的开发人员,

我们确定了您的应用"AlBiddaPark"最近交付的一个或多个问题. 1.2.19(37).请更正以下问题,然后重新上传.

We identified one or more issues with a recent delivery for your app, "AlBiddaPark" 1.2.19 (37). Please correct the following issues, then upload again.

ITMS-90809:不推荐使用的API用法-不再接受使用UIWebView的新应用程序.而是使用WKWebView来提高安全性和可靠性.了解更多信息( https://developer.apple.com/documentation/uikit/uiwebview ).

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

最诚挚的问候,

App Store团队

The App Store Team

我该如何解决这个问题?

How can i solve this problem ?

推荐答案

1-在根文件夹屏幕命令grep -r UIWebView node_modules/* t

1- Run in root folder screen command grep -r UIWebView node_modules/* t

2-检查需要更新的依赖项,但不包括:

2- Check dependencies which need updated, excluding:

node_modules/react-native

node_modules/react-native

node_modules/地铁

node_modules/metro

node_modules/fbjs

node_modules/fbjs

更新所有外部依赖项

4-替换所有使用默认响应本机的WebView.将其替换为 https://github.com/react-native-community/react -native-webview

4- Replace all WebView what used default react native. Replace it on https://github.com/react-native-community/react-native-webview

5-在 Podfile

post_install do |installer|
 # REMOVE ALL WEB VIEWS
 react_project = Xcodeproj::Project.open("../node_modules/react- 
 native/React/React.xcodeproj")
 react_project.main_group["React/Views"].files.each do |file|

    if file.path.match(/^RCTWebView/)
       file.remove_from_project
    end

  end
  react_project.save
 end

6-运行 pod install 命令,您已完成

6- Run pod install command, and you are done

这篇关于ITMS-90809:我使用react-native-webview时不赞成使用API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆