*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
Shahbaz89khan opened this issue · 5 comments
I am facing this crash in Xcode 11 and iOS 13
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
Please help me out if anyone can?
merged in a fix for this today: https://github.com/cjlarsen/SideMenuController
merged in a fix for this today: https://github.com/cjlarsen/SideMenuController
Can i copy the library inmy main bundle ? by this way i can include in my project right ?
@cjlarsen Will this fix make it to version retrieved via CocoaPods, or should we manually patch, or include in project, as Arpit723 asks?
@joe149 I believe I was using it through cocoapods and pointed at my fork. Last time I used it was in August of 2019 though so things may have changed. If cocoapods isn't working manually should.
fileprivate var sbw: UIWindow? {
let s = "status"
let b = "Bar"
let w = "Window"
return UIStatusBarManager //UIApplication.shared.value(forKey: s+b+w) as? UIWindow
}
Comment this code from SideMenuController class as this is using statusbarWindow
and also: sbw?.set(hidden, withBehaviour: _preferences.animating.statusBarBehaviour)