You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/07/29 09:57:28 UTC

[GitHub] [cordova-plugin-statusbar] michaelsogos opened a new issue #215: Xcode 12 and iOS 9.0 various deprecation

michaelsogos opened a new issue #215:
URL: https://github.com/apache/cordova-plugin-statusbar/issues/215


   Dear all,
   
   With Xcode 12 and iOS 9.0 seems that a lot of methods to play with status bar have been deprecated, like:
   ```bash
   cordova-plugin-statusbar/CDVStatusBar.m:389:14: warning: 
         'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden]
         [-Wdeprecated-declarations]
           [app setStatusBarHidden:NO];
   
   cordova-plugin-statusbar/CDVStatusBar.m:267:56: warning: 
         implicit conversion loses integer precision: 'UIStatusBarStyle' (aka 'enum UIStatusBarStyle') to 'int' [-Wshorten-64-to-32]
           vc.sb_statusBarStyle = [NSNumber numberWithInt:style]
   
   cordova-plugin-statusbar/CDVStatusBar.m:271:44: warning: 
         'setStatusBarStyle:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController preferredStatusBarStyle]
         [-Wdeprecated-declarations]
           [[UIApplication sharedApplication] setStatusBarStyle:style];
   ```
   
   Even if are warning, the build fail 'cause Project POD is automatically configured to raise error also when encounter warnings.
   For now I will resolve this playing with Xcode build flags thank to build.json (I hope 🤞).
   
   In the mean time can you play with a new major version (in order to leave 2.x as it is for older projects) which solve above issues?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org