iOS上的WKWebKit在没有调试信息的情况下崩溃

iOS上的WKWebKit在没有调试信息的情况下崩溃,ios,swift,xcode,webkit,mobile-webkit,Ios,Swift,Xcode,Webkit,Mobile Webkit,WebKit在没有任何调试信息的情况下在iOS 11上崩溃-下面是我能做的最好的 Thread 1: EXC_BAD_ACCESS (code=1, address=0x10) 有没有可能找出为什么会崩溃 谢谢 WebKit`>::lookup<WTF::HashMapTranslatorAdapter<WTF::HashMap<WTF::String, WTF::Ref<WebKit::WebURLSchemeHandler>, WTF::StringHa

WebKit在没有任何调试信息的情况下在iOS 11上崩溃-下面是我能做的最好的

Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
有没有可能找出为什么会崩溃

谢谢

WebKit`>::lookup<WTF::HashMapTranslatorAdapter<WTF::HashMap<WTF::String, WTF::Ref<WebKit::WebURLSchemeHandler>, WTF::StringHash, WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::Ref<WebKit::WebURLSchemeHandler> > >::KeyValuePairTraits, WTF::IdentityHashTranslator<WTF::HashMap<WTF::String, WTF::Ref<WebKit::WebURLSchemeHandler>, WTF::StringHash, WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::Ref<WebKit::WebURLSchemeHandler> > >::KeyValuePairTraits, WTF::StringHash> >, WTF::String>:
    0x19270161c <+0>:   stp    x26, x25, [sp, #-0x50]!
    0x192701620 <+4>:   stp    x24, x23, [sp, #0x10]
    0x192701624 <+8>:   stp    x22, x21, [sp, #0x20]
    0x192701628 <+12>:  stp    x20, x19, [sp, #0x30]
    0x19270162c <+16>:  stp    x29, x30, [sp, #0x40]
    0x192701630 <+20>:  add    x29, sp, #0x40            ; =0x40 
    0x192701634 <+24>:  mov    x19, x1
    0x192701638 <+28>:  ldr    w21, [x0, #0xc]
    0x19270163c <+32>:  ldr    x22, [x0]
    0x192701640 <+36>:  ldr    x0, [x19]
->  0x192701644 <+40>:  ldr    w8, [x0, #0x10]
WebKit`>::查找:
0x19270161c:stp x26,x25,[sp,#-0x50]!
0x192701620:stp x24,x23[sp,#0x10]
0x192701624:stp x22,x21[sp,#0x20]
0x192701628:stp x20,x19[sp,#0x30]
0x19270162c:stp x29,x30[sp,#0x40]
0x192701630:添加x29,sp,#0x40=0x40
0x192701634:mov x19,x1
0x192701638:ldr w21[x0,#0xc]
0x19270163c:ldr x22[x0]
0x192701640:ldr x0[x19]
->0x192701644:ldr w8[x0,#0x10]

确保您使用的url具有使用以下代码的http url方案:

if !urlString.hasPrefix("http://") && !urlString.hasPrefix("https://")
    {
        urlString = "http://" + urlString
    }
您可能还需要确保启用了NSAllowsArbitraryLoads,将plist作为源代码打开,然后在中复制并通过

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>
NSAppTransportSecurity
NSAllowsArbitraryLoads

您是如何创建WKWebView的?通过代码还是故事板?我正在通过代码创建WKWebView。我也有同样的崩溃。。。