//设置申请许可的模块
NSArray *moduleList = @[CORE_RUNTIME,NAVIGATION_RUNTIME,MAP3D_RUNTIME];
//传入需要申请许可的模块数组和序列号
[Environment setUserLicInfo:@"----------" Modules:moduleList];
//设置许可激活回调
[Environment setLicenseDelegate:self];
[Environment activateDevice];
m_workspace = [[Workspace alloc] init];
//打开工作空间
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *fileName = [[paths objectAtIndex:0] stringByAppendingPathComponent:[SACUserCenter defaultCenter].mapDataPath];
m_Info = [[WorkspaceConnectionInfo alloc]init];
m_Info.server = fileName;
m_Info.type = SM_SMWU;
BOOL licenseValid = [m_workspace open:m_Info];
iOS10.3版本都有这个问题,请尽快给解决方案,其他版本没有,激活会失败