1

我最近下载了 Xcode 13.2.1。当我运行应用程序时,它在调试时在模拟器中的 iOS 15.2 中崩溃。此外,当已经安装应用程序时,我通过点击应用程序图标启动它运行良好。

这是回溯:

  thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
  frame #0: 0x00007fff20198d24 libobjc.A.dylib`class_createInstance + 125
  frame #1: 0x00007fff20112f66
  frame #2: 0x00007fff20118c19
  frame #3: 0x00007fff265e625d
  frame #4: 0x00007fff2011383a
  frame #5: 0x00007fff20114a0d
  frame #6: 0x00007fff265ff8c6
  frame #7: 0x00007fff265ffc0b
  frame #8: 0x00007fff265ff214
  frame #9: 0x00007fff2011383a
  frame #10: 0x00007fff20114a0d
  frame #11: 0x00007fff265ff1ee
  frame #12: 0x00007fff35e0245b NetworkExtension`+[NEFilterSource filterRequired] + 35
  frame #13: 0x00007fff298dde70 WebKit`WebKit::WebPageProxy::createNetworkExtensionsSandboxExtensions(WebKit::WebProcessProxy&) + 52
  frame #14: 0x00007fff298ddc99 WebKit`WebKit::WebPageProxy::addPlatformLoadParameters(WebKit::WebProcessProxy&, WebKit::LoadParameters&) + 95
  frame #15: 0x00007fff29988216 WebKit`WebKit::WebPageProxy::loadRequestWithNavigationShared(WTF::Ref<WebKit::WebProcessProxy, WTF::RawPtrTraits<WebKit::WebProcessProxy> >&&, WTF::ObjectIdentifier<WebCore::PageIdentifierType>, API::Navigation&, WebCore::ResourceRequest&&, WebCore::ShouldOpenExternalURLsPolicy, API::Object*, WebCore::ShouldTreatAsContinuingLoad, std::__1::optional<WebKit::NavigatingToAppBoundDomain>, std::__1::optional<WebKit::WebsitePoliciesData>&&, std::__1::optional<WTF::ObjectIdentifier<WebKit::NetworkResourceLoadIdentifierType> >) + 1060
  frame #16: 0x00007fff29987d0d WebKit`WebKit::WebPageProxy::loadRequest(WebCore::ResourceRequest&&, WebCore::ShouldOpenExternalURLsPolicy, API::Object*) + 787
  frame #17: 0x00007fff2983ac3b WebKit`-[WKWebView loadRequest:] + 137
  frame #18: 0x000000010c7448fa SonyLIV`___lldb_unnamed_symbol7230$$SonyLIV + 73
  frame #19: 0x000000010c6fee83 SonyLIV`___lldb_unnamed_symbol5787$$SonyLIV + 88
  frame #20: 0x000000010c6ff502 SonyLIV`GADDispatchAsyncSafeMainQueue + 45
  frame #21: 0x000000010c6fec3d SonyLIV`___lldb_unnamed_symbol5780$$SonyLIV + 211
  frame #22: 0x000000010c72aa00 SonyLIV`___lldb_unnamed_symbol6756$$SonyLIV + 622
  frame #23: 0x000000010c73e9fe SonyLIV`___lldb_unnamed_symbol7124$$SonyLIV + 207
  frame #24: 0x0000000114e1e848 libdispatch.dylib`_dispatch_call_block_and_release + 12
  frame #25: 0x0000000114e1fa2c libdispatch.dylib`_dispatch_client_callout + 8
  frame #26: 0x0000000114e2e1f1 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1197
  frame #27: 0x00007fff2036c84d CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
  frame #28: 0x00007fff203670aa CoreFoundation`__CFRunLoopRun + 2772
  frame #29: 0x00007fff203660f3 CoreFoundation`CFRunLoopRunSpecific + 567
  frame #30: 0x00007fff2c995cd3 GraphicsServices`GSEventRunModal + 139
  frame #31: 0x00007fff25059f42 UIKitCore`-[UIApplication _run] + 928
  frame #32: 0x00007fff2505eb5e UIKitCore`UIApplicationMain + 101
  frame #33: 0x000000010ba20e9f SonyLIV`main at AppDelegate.swift:18:7
  frame #34: 0x000000011247dee9 dyld_sim`start_sim + 10
  frame #35: 0x000000011e4ea4fe dyld`start + 462

我在模拟器中遇到的这种崩溃仅在运行良好的设备中。

谢谢 :)

4

1 回答 1

0

原因


这里的错误是EXC_BAD_ACCESS,它是由于___lldb_unnamed_symbol.

使固定


因为没有最低限度的可重现代码或完整的崩溃日志。

  • 假设您正在使用Debug 架构检查项目中的框架是否已针对Release builds进行编译,如果是这种情况,请将架构更改为该框架的 Debug 。
于 2022-01-14T06:54:01.903 回答