Post

Replies

Boosts

Views

Activity

Reply to Click on UITextView or UITextField to crash
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString timeIntervalSinceReferenceDate]: unrecognized selector sent to instance 0x11495e690' *** First throw call stack: (0x19a0bf988 0x1970097c4 0x19a1588f4 0x19a03f35c 0x19a047200 0x1eb8da9a8 0x1eb8dd220 0x10564ec08 0x1067e863c 0x1068022d0 0x1067f0b4c 0x1067f17d4 0x1067fdb20 0x1067fd1c4 0x1f62a13b8 0x1f62a08c0) libc++abi: terminating due to uncaught exception of type NSException Received external candidate resultset. Total number of candidates: 6 containerToPush is nil, will not push anything to candidate receiver for request token: 5F205501
Topic: App & System Services SubTopic: General Tags:
Sep ’25
Reply to Crashed on "[UITextField becomeFirstResponder]"
#import "NSString+Safe.h" @implementation NSString (Safe) - (NSTimeInterval)timeIntervalSinceReferenceDate { NSString *stack = [NSThread callStackSymbols].description; NSLog(@"🔴 非法调用详情:\n" @"- 调用者类: %@\n" @"- 内存地址: %p\n" @"- 调用堆栈: %@", [self class], self, stack); return 0; } - (NSTimeInterval)timeIntervalSinceDate:(NSDate *)date { NSLog(@"⚠️ 拦截非法调用2: [%@ %@]", [self class], NSStringFromSelector(_cmd)); return 0; } @end Using NSString protection can solve this problem. But the root cause is that InputAnalytics (system keyboard service) called timeIntervalSinceReferenceDate in the asynchronous queue (dispatch_async).
Topic: App & System Services SubTopic: General Tags:
Sep ’25