Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode warnings when building for Device (not sim) #12

Open
logancautrell opened this issue Nov 6, 2018 · 2 comments
Open

Xcode warnings when building for Device (not sim) #12

logancautrell opened this issue Nov 6, 2018 · 2 comments

Comments

@logancautrell
Copy link

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.
@dji-dev
Copy link
Contributor

dji-dev commented Nov 7, 2018

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?

@logancautrell
Copy link
Author

logancautrell commented Nov 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants