diff --git a/ios/sdk/src/dropbox/Dropbox.m b/ios/sdk/src/dropbox/Dropbox.m index 9418e9d37..e4ca8bf0f 100644 --- a/ios/sdk/src/dropbox/Dropbox.m +++ b/ios/sdk/src/dropbox/Dropbox.m @@ -66,7 +66,7 @@ RCT_EXPORT_METHOD(authorize:(RCTPromiseResolveBlock)resolve [DBClientsManager authorizeFromController:[UIApplication sharedApplication] controller:[[self class] topMostController] openURL:^(NSURL *url) { - [[UIApplication sharedApplication] openURL:url]; + [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil]; }]; }); } @@ -137,7 +137,7 @@ RCT_EXPORT_METHOD(getSpaceUsage: (NSString *)token } else { NSString *msg; if ([authResult isError]) { - msg = [NSString stringWithFormat:@"%@, error type: %ld",[authResult errorDescription], [authResult errorType]]; + msg = [NSString stringWithFormat:@"%@, error type: %zd",[authResult errorDescription], [authResult errorType]]; } else { msg = @"OAuth canceled!"; }