ChatKit-OC
ChatKit-OC copied to clipboard
线上版本出现一个LeanCloud的崩溃;
Base Info for this issue
崩溃提示
You must implement -setFetchProfilesBlock: to allow ChatKit to get user information by user clientId. (_mh_execute_header + 3566456)
崩溃点的堆栈信息
__68-[LCCKUserSystemService getProfilesInBackgroundForUserIds:callback:]_block_invoke_2 (in kmfCourse) (LCCKUserSystemService.m (Line 80)) + 3566456
- ChatKit Version:0.10.1
- App-ID: XX
- Language:Objective-C
- iOS System Version:iOS10
- Prototype(是否是真机):YES
- Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A
1. How to repeat the problem.
没有步骤 线上版本出现的崩溃 统计工具检测到了崩溃
2. Please help me in this way.
我已经实现了 [[LCChatKit sharedInstance] setFetchProfilesBlock: 并在回调中实现了用户信息的获取 但是在LCCKUserSystemService中73行的判断代码,if (!_fetchProfilesBlock){}仍然执行了
NSString *reason = [NSString stringWithFormat:@"You must implement -setFetchProfilesBlock: to allow ChatKit to get user information by user clientId."];
@throw [NSException exceptionWithName:NSGenericException reason:reason userInfo:nil];