IOS下运行到dispatch_once时出现异常。
IOS下运行我集成的项目,执行到EaseSDKHelper.m的shareHelper函数中的
dispatch_once时出现异常。
执行顺序如下:
easemobApplication:(UIApplication *)application didFinishLaunchingWithOptions
-》[[EaseSDKHelper shareHelper] easemobApplication:application didFinishLaunchingWithOptions
-》(instancetype)shareHelper
-》dispatch_once(&onceToken,
dispatch_once时出现异常。
执行顺序如下:
easemobApplication:(UIApplication *)application didFinishLaunchingWithOptions
-》[[EaseSDKHelper shareHelper] easemobApplication:application didFinishLaunchingWithOptions
-》(instancetype)shareHelper
-》dispatch_once(&onceToken,
没有找到相关结果
已邀请:
7 个回复
lifei9241
赞同来自: guozl 、fat1
lifei9241
guozl
是[[EaseSDKHelper shareHelper] easemobApplication:application
didFinishLaunchingWithOptions:
调用结束,返回时报的错。
guozl
- (void)easemobApplication:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
函数里,执行下面函数时出异常的:
-------
//注册easemob sdk
[[EaseMob sharedInstance] registerSDKWithAppKey:appkey
apnsCertName:apnsCertName
otherConfig:otherConfig];
-------
传入的 appkey,apnsCertName,otherConfig的值也是对的。
lifei9241
guozl
guozl
太谢谢你了。