我的应用程序在iOS上不断崩溃,但Android部分工作顺利
救命!
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView bridge]: unrecognized selector sent to instance 0x7f957cf1f340'
*** First throw call stack:
(
0 CoreFoundation 0x000000011227d8ab __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000010bdb6ba3 objc_exception_throw + 48
2 CoreFoundation 0x000000011228cab8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 UIKitCore 0x000000013a17ee0a -[UIResponder doesNotRecognizeSelector:] + 264
4 CoreFoundation 0x0000000112281d71 ___forwarding___ + 1431
5 CoreFoundation 0x0000000112284068 _CF_forwarding_prep_0 + 120
6 TestApp 0x000000010169c204 +[ReactNativeBlobUtil getRCTEventDispatcher] + 244
7 TestApp 0x000000010169c6c4 __27-[ReactNativeBlobUtil init]_block_invoke + 36
8 libdispatch.dylib 0x000000011679cd18 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x000000011679df5b _dispatch_client_callout + 8
10 libdispatch.dylib 0x00000001167aed55 _dispatch_main_queue_drain + 1463
11 libdispatch.dylib 0x00000001167ae790 _dispatch_main_queue_callback_4CF + 31
12 CoreFoundation 0x00000001121dcb1f __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13 CoreFoundation 0x00000001121d7436 __CFRunLoopRun + 2482
14 CoreFoundation 0x00000001121d66a7 CFRunLoopRunSpecific + 560
15 GraphicsServices 0x000000011fd1128a GSEventRunModal + 139
16 UIKitCore 0x000000013a144ad3 -[UIApplication _run] + 994
17 UIKitCore 0x000000013a1499ef UIApplicationMain + 123
18 TestApp 0x0000000100f8d678 main + 104
19 dyld 0x000000010ba342bf start_sim + 10
20 ??? 0x0000000203536310 0x0 + 8645731088
)
libc++abi: terminating with uncaught exception of type NSException
Message from debugger: Terminated due to signal 6
我尝试删除派生数据并进行pod更新和podinstall以及清理构建文件夹
1条答案
按热度按时间pexxcrt21#
出现此问题的原因可能是您使用的库可能仅支持最新的iOS版本,或者它可能是一个过时的库。因此,请尝试通过在不同的iOS版本中运行您的应用程序来找出问题所在。应用程序将根据问题在特定的iOS版本中运行。如果应用程序再次崩溃,请尝试在从项目中卸载该库后运行。现在应用程序将运行。如果其他库不支持您使用的iOS版本,请尝试该库。
我在支持高于iOS 15的iOS版本的PayPalCheckout Library上也遇到了同样的问题。当我在iOS 12设备上运行它时,我遇到了同样的问题,但当我试图在iOS 15.7上运行它时,它运行得很好。