问题描述
集成环信的单聊功能,[EaseMob sharedInstance]这个报错,具体错误如下, 请大神帮忙。 调用的代码[[EaseMob sharedInstance] registerSDKWithAppKey:appkey apnsCertName:apnsCertName otherConfig:@{kSDKConfigEnableConsoleLogger:[NSNumber numberWithBool:YES]}]; 错误信息:2015-06-22 19:56:02.142 testhx[15905:265946] -[EMDeviceManager _setupNetworkMonitor]: unrecognized selector sent to instance 0x7ffb8a4349c02015-06-22 19:56:02.145 testhx[15905:265946] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[EMDeviceManager _setupNetworkMonitor]: unrecognized selector sent to instance 0x7ffb8a4349c0'
解决方案
向Build Settings -> Linking -> Other Linker Flags 中 添加-ObjC 注意大小写
时间: 2025-01-20 17:03:39