注册

更新sdk问题

更新环信SDK之前EaseMobSDK/include/Utility/internal 下有6个文件 分别是 IDeviceManagerBase.h, IDeviceManagerMedia.h, IDeviceManagerProximitySensor, IDeviceManagerCamera.h, IDeviceManagerDevice.h, IDeviceManagerLocation
结果下载最新的SDK就只有3个了 IDeviceManagerBase.h IDeviceManagerProximitySensor IDeviceManagerMedia.h 了


这是怎么回事啊,以哭,求大神。
已邀请:
你遇到的具体问题是什么呢?更新之后不能编译还是怎样?
//判断GPS是否可用 可用开始定位
- (void)gpsStartLocation{

BOOL gps = [.deviceManager isLocationServicesEnabled];
if (gps){
[.deviceManager startUpdatingLocation];
}else{
;
;
}

}

更新完sdk时会出现找不到isLocationServicesEnabled这个方法的错误,因为新sdk里缺少IDeviceManagerLocation这个文件,把旧sdk的文件夹到新sdk里时,一旦进入上述代码时就会崩溃

2015-05-02 20:18:45.994 绿芽 exception.reason: -: unrecognized selector sent to instance 0x174243b10
, *** callStackSymbols:
(
0 CoreFoundation 0x00000001830e82f4 + 160
1 libobjc.A.dylib 0x00000001948bc0e4 objc_exception_throw + 60
2 CoreFoundation 0x00000001830ef3a4 + 0
3 CoreFoundation 0x00000001830ec154 + 928
4 CoreFoundation 0x0000000182feeccc _CF_forwarding_prep_0 + 92
5 绿芽 0x00000001000d226c - + 116
6 绿芽 0x00000001000d2140 - + 592
7 UIKit 0x0000000187b28c84 + 692
8 UIKit 0x0000000187b28994 + 32
9 UIKit 0x0000000187ccb25c + 712
10 UIKit 0x0000000187bddef0 + 468
11 UIKit 0x0000000187bddcbc + 56
12 UIKit 0x0000000187bddc3c + 200
13 UIKit 0x0000000187b25760 + 580
14 QuartzCore 0x000000018746de1c + 152
15 QuartzCore 0x0000000187468884 + 320
16 QuartzCore 0x0000000187468728 + 32
17 QuartzCore 0x0000000187467ebc + 276
18 QuartzCore 0x0000000187467c3c + 528
19 QuartzCore 0x0000000187461364 + 80
20 CoreFoundation 0x00000001830a02a4 + 32
21 CoreFoundation 0x000000018309d230 + 360
22 CoreFoundation 0x000000018309d610 + 836
23 CoreFoundation 0x0000000182fc92d4 CFRunLoopRunSpecific + 396
24 GraphicsServices 0x000000018c7e76fc GSEventRunModal + 168
25 UIKit 0x0000000187b8efac UIApplicationMain + 1488
26 绿芽 0x0000000100221efc main + 124
27 libdyld.dylib 0x0000000194f3aa08 + 4

要回复问题请先登录注册