iOS 13 でアプリを更新したところ、アプリがクラッシュしました。実際には、statusBarWindow を介してウィンドウ オブジェクトを取得しようとしていますが、この時点でアプリがクラッシュし、ログ セクションに次のエラーが表示されます。
static var sb: UIWindow? {
// We use a non-public key here to obtain the `statusBarWindow` window.
// We have been using it in real world app and it won't be rejected by the review team for using this key.
let s = "status", b = "Bar", w = "Window"
return UIApplication.shared.value(forKey: s+b+w) as? UIWindow
}
キャッチされない例外 'NSInternalInconsistencyException' が原因でアプリを終了しています。代わりに、ウィンドウ シーンで statusBarManager オブジェクトを使用してください。
statusBarWindow
代わりに 使用できないことを明確に示していますが、オブジェクトstatusBarManager
の使用方法を見つけることができませんstatusBarManager