gpt4 book ai didi

ios - 寻找 [BluetoothDevice classicDevice] 无法识别的选择器上的崩溃来源

转载 作者:行者123 更新时间:2023-12-01 17:40:25 32 4
gpt4 key购买 nike

我发现崩溃实例大幅增加,几个不同的崩溃报告都以相同的致命异常结束:

[BluetoothDevice classicDevice]:无法识别的选择器发送到实例 0x2805a8ba0

这种情况在 iOS 12 中发生过几次,但在 iOS 13 中却出问题了。还有其他人看到这个吗?与iOS 13中新增的蓝牙隐私权限有关吗?我没有其他线索可循,只是试图找到看到此内容的其他人。

导致它的堆栈跟踪与我的应用程序代码中没有任何内容,只有 AppDelegate 的声明行。它是 Foundation、CoreFoundation 和一些称为 BluetoothSettings 的 Apple 框架的混合体。正如您所看到的,我的崩溃日志缺少很多详细信息 - 可能是 dsyms 出了问题,不确定……但它们就在这里。

Fatal Exception: NSInvalidArgumentException
-[BluetoothDevice classicDevice]: unrecognized selector sent to instance 0x2805a8ba0
0 CoreFoundation 0x191b8d54c (Missing)
1 libobjc.A.dylib 0x1918a80c8 (Missing)
2 CoreFoundation 0x191a8bb60 (Missing)
3 CoreFoundation 0x191b91bd4 (Missing)
4 CoreFoundation 0x191b93ac0 (Missing)
5 BluetoothSettings 0x1bb3ae944 (Missing)
6 Foundation 0x191f56a94 <redacted>
7 CoreFoundation 0x191ae5478 (Missing)
8 CoreFoundation 0x191ae54c8 (Missing)
9 CoreFoundation 0x191ae47c0 (Missing)
10 CoreFoundation 0x191ae446c (Missing)
11 CoreFoundation 0x191a5d434 (Missing)
12 CoreFoundation 0x191ae3d9c (Missing)
13 Foundation 0x191e457fc (Missing)
14 libobjc.A.dylib 0x1918a3af0 <redacted>
15 Foundation 0x191f81404 (Missing)
16 CoreFoundation 0x191b08b40 (Missing)
17 CoreFoundation 0x191b08a94 (Missing)
18 CoreFoundation 0x191b08200 (Missing)
19 CoreFoundation 0x191b030cc (Missing)
20 CoreFoundation 0x191b02978 (Missing)
21 GraphicsServices 0x19bc32534 (Missing)
22 UIKitCore 0x195bf4f0c (Missing)
23 MY APP 0x1003bf8e8 main + 42 (AppDelegate.swift:42)
24 libdyld.dylib 0x191982f04 <redacted>

最佳答案

我在我的应用程序中也看到了这个问题。这是带有符号的堆栈轨道:

Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x18595dc30 __exceptionPreprocess
1 libobjc.A.dylib 0x1856780c8 objc_exception_throw
2 CoreFoundation 0x18585bfc0 -[NSOrderedSet initWithSet:copyItems:]
3 CoreFoundation 0x1859623d4 ___forwarding___
4 CoreFoundation 0x185964570 _CF_forwarding_prep_0
5 BluetoothSettings 0x1af49f074 -[BTAlert showAlertWithResult:]
6 Foundation 0x185d28288 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_2
7 CoreFoundation 0x1858b5b30 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
8 CoreFoundation 0x1858b5b80 ___CFXRegistrationPost1_block_invoke
9 CoreFoundation 0x1858b4e78 _CFXRegistrationPost1
10 CoreFoundation 0x1858b4b10 ___CFXNotificationPost_block_invoke
11 CoreFoundation 0x18582db08 -[_CFXNotificationRegistrar find:object:observer:enumerator:]
12 CoreFoundation 0x1858b4440 _CFXNotificationPost
13 Foundation 0x185c16dcc -[NSNotificationCenter postNotificationName:object:userInfo:]
14 libobjc.A.dylib 0x185673af0 -[NSObject performSelector:withObject:]
15 Foundation 0x185d52c10 __NSThreadPerformPerform
16 CoreFoundation 0x1858d9260 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
17 CoreFoundation 0x1858d91b4 __CFRunLoopDoSource0
18 CoreFoundation 0x1858d8920 __CFRunLoopDoSources0
19 CoreFoundation 0x1858d37ec __CFRunLoopRun
20 CoreFoundation 0x1858d3098 CFRunLoopRunSpecific
21 GraphicsServices 0x18fa3d534 GSEventRunModal
22 UIKitCore 0x1899f37ac UIApplicationMain
23 <redacted> 0x104e0ded0 main + 25 (main.mm:25)
24 libdyld.dylib 0x185752f30 start

到目前为止,这个问题似乎是 iOS 13 独有的(我有 25 份关于此崩溃的报告,全部在 iOS 13 上)。

关于ios - 寻找 [BluetoothDevice classicDevice] 无法识别的选择器上的崩溃来源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58139932/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com