Xcode console warnings since Xcode 7

前端 未结 1 1307
醉话见心
醉话见心 2021-01-29 01:37

if I start my app (ios 9 with Swift 2) in xcode 7, I get this warnings at beginning:

Oct 9 10:45:11 AppName[2866] : CGContextSaveGState: invalid context

相关标签:
1条回答
  • 2021-01-29 02:21

    It seems like that you are setting the corner radius(working with layers) of a view.

    Solution 1:

    Set environmental variable via menu: Product-> Scheme->Edit Scheme. In "Run" item, locate "Arguments" tab, you'll see "Environmental Variables" in the tab, Add CG_CONTEXT_SHOW_BACKTRACE and set its value to YES.

    Solution 2:- If above solutions does not work for you, then remove the UIViewControllerBasedStatusBarAppearance from Info.plist.

    0 讨论(0)
提交回复
热议问题