I get the following error:
<Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Looking back, this is apparently caused by:
UIViewControllerBasedStatusBarAppearance in Info.plist
Soruce: apple dev forum
When I read the stream, I see that the apple dev answers: - "You can ignore this warning."
But is there any fix for this other than removing the UIViewControllerBasedStatusBarAppearance from the Info.plist file? I need this so that my status bar is white in my VCs and I donโt just want to ignore the warning.
source share