DJIWidget
DJIWidget copied to clipboard
Xcode warnings when building for Device (not sim)
We are seeing these warnings when building for device.

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.
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?
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.