chenfanfang / AvoidCrash

This framework can effective avoid crash by potential error code. For example : If you insert a nil into a mutable array, this framework can avoid crash and note you that where cause crash.
MIT License
1.64k stars 383 forks source link

老铁,iOS 11上NSArray_Test_ObjectAtIndex拦不住 #41

Closed 279961172 closed 6 years ago

279961172 commented 6 years ago

__exceptionPreprocess + 171 objc_exception_throw + 48 _CFThrowFormattedException + 194 +[__NSArrayI allocWithZone:] + 0 -[ViewController NSArray_Test_ObjectAtIndex] + 133 -[ViewController viewDidLoad] + 73

279961172 commented 6 years ago

在NSArray,NSMutableArray,NSMutableDictionary中增加 objectAtIndexedSubscript: avoidCrashObjectAtIndexedSubscript: avoidCrashSetObject:forKeyedSubscript: 即可

chenfanfang commented 6 years ago

已更新,兼容iOS11