If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

X-Code 7 报错:  <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.


X-Code 7 的bug,有强迫症的童鞋不要纠结了. 这是apple的官方bug reporter: https://forums.developer.apple.com/thread/13683


网上说在info.plist里面将UIViewControllerBasedStatusBarAppearance改为NO和将product -> edit scheme -> arguments -> environment variables 里面添加 CG_CONTEXT_SHOW_BACKTRACE 的都不行.

你可能感兴趣的:(error,7,X-Code,X-Code)