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

Error Building #36

Open
nathansenn opened this issue Mar 2, 2020 · 3 comments
Open

Error Building #36

nathansenn opened this issue Mar 2, 2020 · 3 comments

Comments

@nathansenn
Copy link

When trying to compile and run this script as is I get this error

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.'

@sebastiendan
Copy link

I face the same build error.

@sebastiendan
Copy link

Commenting these lines make the app build correctly:

PivxWallet/PivxWallet/PivxUtils/PivxExtensions.swift

extension UIApplication {
//    var statusBarView: UIView? {
//        return value(forKey: "statusBar") as? UIView
//    }
}

PivxWallet/PivxWallet/PivxUtils/Utils.swift

@objc static func changeStatusBackgroundColor(color:UIColor = K.color.purple_r85g71b108){
//        UIApplication.shared.statusBarView?.backgroundColor = color
}

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

3 participants
@sebastiendan @nathansenn and others