gpt4 book ai didi

ios - -[__NSCFString countByEnumeratingWithState :objects:count:]: unrecognized selector sent to instance

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:16:17 54 4
gpt4 key购买 nike

我无法找出不断弹出的 IOS 崩溃的原因。它只会在极少数用户的极少数情况下发生。我无法根据崩溃报告返回到应用程序中的任何内容,因此我没有发布任何代码。任何人都可以帮助或指出我正确的方向吗?这是 crashlytics 报告的线程是崩溃的根源......

Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x000000018663c2d8 __exceptionPreprocess + 132
1 libobjc.A.dylib 0x0000000197c480e4 objc_exception_throw + 60
2 CoreFoundation 0x00000001866433a4 __methodDescriptionForSelector
3 CoreFoundation 0x0000000186640154 ___forwarding___ + 928
4 CoreFoundation 0x0000000186542ccc _CF_forwarding_prep_0 + 92
5 UIKit 0x000000018b2d4400 +[_UIDynamicAnimation _updateAnimations:timer:] + 884
6 QuartzCore 0x000000018aa1229c CA::Display::DisplayLinkItem::dispatch() + 32
7 QuartzCore 0x000000018aa12134 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 324
8 IOKit 0x00000001877ed470 IODispatchCalloutFromCFMessage + 376
9 CoreFoundation 0x00000001865dedc4 __CFMachPortPerform + 180
10 CoreFoundation 0x00000001865f3a54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
11 CoreFoundation 0x00000001865f39b4 __CFRunLoopDoSource1 + 436
12 CoreFoundation 0x00000001865f1934 __CFRunLoopRun + 1640
13 CoreFoundation 0x000000018651d2d4 CFRunLoopRunSpecific + 396
14 GraphicsServices 0x000000018fbf36fc GSEventRunModal + 168
15 UIKit 0x000000018b0e2fac UIApplicationMain + 1488
16 MyAppName 0x00000001000c8394 main (main.m:7)
17 libdyld.dylib 0x00000001982c6a08 start + 4

其余的线程也没有给我更多信息。

最佳答案

-countByEnumeratingWithState:objects:count: 是用于在 for...in 语句中枚举集合的方法。

您试图在某处枚举 NSString(__NSCFString 是它的一种表示形式)或悬空指针(其类可能被错误地报告为 __NSCFstring),而不是集合。

关于ios - -[__NSCFString countByEnumeratingWithState :objects:count:]: unrecognized selector sent to instance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29686832/

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