DJIWidget icon indicating copy to clipboard operation
DJIWidget copied to clipboard

Xcode warnings when building for Device (not sim)

Open logancautrell opened this issue 6 years ago • 2 comments

We are seeing these warnings when building for device.

screen shot 2018-11-06 at 4 44 42 pm
DJIRtmpMuxer.m:964:58: warning: values of type 'OSStatus' should not be used as format arguments; add an explicit cast to 'int' instead [-Wformat]
                                NSLog(@"start audio queue failed %d, disable audio", status);
                                                                 ~~                  ^~~~~~
                                                                 %d                  (int)
1 warning generated.

DJIImageCalibrateHelper.o

DJIImageCalibrateHelper.m:112:95: warning: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
        NSString* workHash = [NSString stringWithFormat:@"image.calibrate(%ld).working.queue",self.hash];
                                                                          ~~~                 ^~~~~~~~~
                                                                          %lu                 (unsigned long)
DJIImageCalibrateHelper.m:122:94: warning: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
        NSString* rendHash = [NSString stringWithFormat:@"image.calibrate(%ld).render.queue",self.hash];
                                                                          ~~~                ^~~~~~~~~
                                                                          %lu                (unsigned long)
2 warnings generated.

logancautrell avatar Nov 06 '18 22:11 logancautrell

Hi @logancautrell , DJIWidget is not a standalone library, you need to use it with DJI iOS SDK: https://github.com/dji-sdk/Mobile-SDK-iOS, have you try to use Cocoapods to install DJIWidget in your Xcode project?

dji-dev avatar Nov 07 '18 19:11 dji-dev

We manually embed both DJISDK and DJIUXSDK in our project currently.

My concern here is that the warnings are indicating potential bugs in the Widget codebase.

logancautrell avatar Nov 07 '18 19:11 logancautrell