环境:M300 H20镜头 SDK环境:iOS
DJI-SDK-iOS'[color=rgba(0, 0, 0, 0.85)], '~> 4.14-trial1'DJI-UXSDK-iOS', '~> 4.14-trial1' DJIWidget', '~> 1.6.4'
调用接口 - (void)setCaptureStreamSources: (DJICameraStreamSettings *)sourceSettings withCompletion: (DJICompletionBlock)completion 后程序报错
调用如下: DJICameraStreamSettings *sourceSet = [[DJICameraStreamSettings alloc] initWithNeedCurrentLiveView:YES streams: @[@(DJICameraVideoStreamSourceZoom)]]; [color=rgba(0, 0, 0, 0.85)]
[color=rgba(0, 0, 0, 0.85)][self.camera setCaptureStreamSources:sourceSet withCompletion:^(NSError * _Nullable error) { [color=rgba(0, 0, 0, 0.85)] NSLog(@"设置拍照模式:%@", error.deion); [color=rgba(0, 0, 0, 0.85)]}];
[color=rgba(0, 0, 0, 0.85)]错误信息如下:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[5f6089d9-94d5-11ea-b982-acde48001122 requestBodyLength]: unrecognized selector sent to instance 0x282ecddd0'
在GitHub下载Mobile-SDK-iOS的代码,添加上述修改拍照格式的代码后,调用也报同样的错误 [color=rgba(0, 0, 0, 0.85)]请问是什么原因导致的 |