gpt4 book ai didi

ios - Flutter iOS 热重启崩溃 [__NSCFString setStreamHandler :]: unrecognized selector

转载 作者:行者123 更新时间:2023-12-03 18:48:01 25 4
gpt4 key购买 nike

由于某些原因,当我热重启应用程序时,应用程序崩溃并显示以下消息:

-[__NSCFString setStreamHandler:]: unrecognized selector sent to instance 0x281a0bb10
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString setStreamHandler:]: unrecognized selector sent to instance 0x281a0bb10'
*** First throw call stack:
(0x18b1b986c 0x1a01d2c50 0x18b0c095c 0x18b1bc438 0x18b1be740 0x104ec6668 0x104ec8610 0x104ed669c 0x104ed4620 0x104ed3674 0x10c4dc694 0x10bc7c038 0x10bf7b41c 0x10bf1a81c 0x10bf1ced4 0x18b135fa0 0x18b135ba0 0x18b134ffc 0x18b12eee4 0x18b12e21c 0x1a2cf8784 0x18db6eee8 0x18db7475c 0x1049c995c 0x18adee6b0)
libc++abi.dylib: terminating with uncaught exception of type NSException
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00000001b9109414 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
-> 0x1b9109414 <+8>: b.lo 0x1b9109434 ; <+40>
0x1b9109418 <+12>: pacibsp
0x1b910941c <+16>: stp x29, x30, [sp, #-0x10]!
0x1b9109420 <+20>: mov x29, sp
Target 0: (Runner) stopped.
Lost connection to device.
我不知道如何调试它。
知道是什么原因造成的吗?

最佳答案

修复后崩溃对我来说消失了 -[FLTFirebaseAuthPlugin cleanupWithCompletion:]方法:

- (void)cleanupWithCompletion:(void (^)(void))completion {
// Cleanup credentials.
[_credentials removeAllObjects];

for (FlutterEventChannel *channel in self->_eventChannels.allValues) {
[channel setStreamHandler:nil];
}
[self->_eventChannels removeAllObjects];
for (NSObject<FlutterStreamHandler> *handler in self->_streamHandlers.allValues) {
[handler onCancelWithArguments:nil];
}
[self->_streamHandlers removeAllObjects];

if (completion != nil) completion();
}
原问题是由 for..in引起的在字典键上迭代但将它们用作值的循环。
更多详情 here

关于ios - Flutter iOS 热重启崩溃 [__NSCFString setStreamHandler :]: unrecognized selector,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67425163/

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