JJException
JJException copied to clipboard
Protect the objective-c application(保护App不闪退)
- (void) hookInsertObject:(id)anObject atIndex:(NSUInteger)index { if (anObject && index
**Describe the bug**   我参考你的库,写了库到线上,发现线上有概率崩溃
您好,我们在使用JJException时,最近收到大量Out of Memory的崩溃信息,定位到NSMutableAttributedString+MutableAttributedStringHook.m文件中的113行:[self hookReplaceCharactersInRange:range withString:str]; 使用的版本是0.2.12版本
JJException SDK 版本 V0.2.13, ReactiveObjC 版本V3.1.1。项目加载 JJException 方式如下:  当加上 JJExceptionGuardKVOCrash 选项后app 无法启动,移除后一切正常。最近buglly 里报了一个KVO的异常,信息如下:  请问,项目中要怎么开启 KVO的防护?谢谢
项目中Swift语言使用YYModel时,由于客户端字段类型跟后端返回的数据类型不匹配导致的闪退问题,JJException是否能防护?
集成了保利威直播的SDK,多处调用[TimerObject fireTimer]时报错。 后来发现: 在 NSTimer+CleanTimer.m中 把 @property(nonatomic,readwrite,【weak】)id target 改成 【strong】可以避免, 但是【不确定】这样 是否会造成循环引用。
#### 报错文件 NSTimer+CleanTimer.m 错误定位代码 ``` - (void)fireTimer{ if (!self.target) { [self.timer invalidate]; self.timer = nil; handleCrashException(JJExceptionGuardNSTimer,[NSString stringWithFormat:@"Need invalidate timer from target:%@ method:%@",self.targetClassName,self.targetMethodName]); return; } if ([self.target respondsToSelector:self.selector]) { // Fix...
内存泄漏
我通过leaks分析出来