小编Ben*_*hen的帖子

NSMutableRLEArray 中的 iOS11 崩溃 replaceObjectsInRange:withObject:length:: Out of bounds

我们的 App Find a Foundation 崩溃,仅在 iOS11 中。如何解决?

Fatal Exception: NSRangeException
NSMutableRLEArray replaceObjectsInRange:withObject:length:: Out of bounds

0  CoreFoundation                 0x184f8bd38 __exceptionPreprocess
1  libobjc.A.dylib                0x1844a0528 objc_exception_throw
2  CoreFoundation                 0x184f8bc80 -[NSException initWithCoder:]
3  Foundation                     0x18587c168 -[NSMutableRLEArray replaceObjectsInRange:withObject:length:]
4  Foundation                     0x18588262c -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:]
5  CoreFoundation                 0x184e65bec -[__NSArrayM enumerateObjectsWithOptions:usingBlock:]
6  UIKit                          0x18ec677b8 -[UILayoutManagerBasedDraggableGeometry draggableObjectsForTextRange:]
Run Code Online (Sandbox Code Playgroud)

crash foundation ios11

7
推荐指数
1
解决办法
2416
查看次数

标签 统计

crash ×1

foundation ×1

ios11 ×1