Cartography
Cartography copied to clipboard
invalid context 0x0 , please set CG_CONTEXT_SHOW_BACKTRACE
Cartography works for me, but recently I've been getting a lot of weird errors in the console, when I use it.
Example
I have this in my layoutSubviews()
super.layoutSubviews()
constrain(questionLabel) {question in
question.width == question.superview!.width - 68
question.height == 31
question.centerX == question.superview!.centerX
question.top == question.superview!.top + 158
}
This generates these errors in the console:
Nov 4 12:14:33 myapp[61898] <Error>: CGContextDrawPath: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Nov 4 12:14:33 myapp[61898] <Error>: CGContextSetRGBFillColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Nov 4 12:14:33 myapp[61898] <Error>: CGContextAddPath: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Nov 4 12:14:33 myapp[61898] <Error>: CGContextDrawPath: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Does anybody know what I can do to solve or hide these errors?