使用react native webview时发生xcode模拟器错误NSURERRORDOMAI1202

使用react native webview时发生xcode模拟器错误NSURERRORDOMAI1202,xcode,react-native-webview,self-signed-certificate,Xcode,React Native Webview,Self Signed Certificate,我正在使用 “react native webview”:“7.4.3” “expokit”:“^36.0.0” 当我在自签名证书服务器上使用URL运行应用程序时,将出现如下错误消息。如果URL更改为具有正确颁发的证书的服务器,则不会显示错误 Encountered an error loading page, Object { "canGoBack": false, "canGoForward": false, "code": -1202, "description": "

我正在使用

  • “react native webview”:“7.4.3”
  • “expokit”:“^36.0.0”
当我在自签名证书服务器上使用URL运行应用程序时,将出现如下错误消息。如果URL更改为具有正确颁发的证书的服务器,则不会显示错误

Encountered an error loading page, Object {
  "canGoBack": false,
  "canGoForward": false,
  "code": -1202,
  "description": "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “xxxxx.xxx.xxx” which could put your confidential information at risk.",
  "didFailProvisionalNavigation": true,
  "domain": "NSURLErrorDomain",
  "loading": false,
  "target": 265,
  "title": "",
  "url": "",
}
我在Info.plist中尝试了以下设置

    <key>NSAppTransportSecurity</key>
        <dict>
            <key>NSAllowsArbitraryLoads</key>
            <true/>
            <key>NSAllowsArbitraryLoadsInWebContent</key>
            <true/>
            <key>NSExceptionDomains</key>
            <dict>
                <key>xxx.xxx.xx.xx</key>
                <dict>
                    <key>NSExceptionAllowsInsecureHTTPLoads</key>
                    <true/>
                    <key>NSExceptionRequiresForwardSecrecy</key>
                    <false/>
                    <key>NSIncludesSubdomains</key>
                    <true/>
                </dict>
            </dict>
        </dict>
NSAppTransportSecurity
NSAllowsArbitraryLoads
NSAllowsArbilarLoadsInWebContent
NSExceptionDomains
xxx.xxx.xx.xx
N异常低安全Http负载
NSExceptionRequiresForwardSecretary
n包括多个域
有一个描述自签名证书的示例,但不太确定如何配置它。有人有这个想法吗