ChatKit-OC icon indicating copy to clipboard operation
ChatKit-OC copied to clipboard

线上版本出现一个LeanCloud的崩溃;

Open ConnyYue opened this issue 8 years ago • 0 comments

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

  1. ChatKit Version:0.10.1
  2. App-ID: XX
  3. Language:Objective-C
  4. iOS System Version:iOS10
  5. Prototype(是否是真机):YES
  6. 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];

3. Here is a Demo.

4. Here is my Debug log

ConnyYue avatar Aug 09 '17 03:08 ConnyYue