How can I set CG_CONTEXT_SHOW_BACKTRACE environmental variable?

后端 未结 4 1080
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 13:45

I have three buttons in my view. After setting the cornerRadus in the viewDidLoad() : button.layer.cornerRadius = 20 I get the following error message in the lo

相关标签:
4条回答
  • 2020-11-27 13:55

    This problem happen with Xcode 7. In my case i removed the UIViewControllerBasedStatusBarAppearance from Info.plist and the problem solved! See the answer in this post:

    0 讨论(0)
  • 2020-11-27 14:02

    It's a bug in 9b5:
    https://forums.developer.apple.com/thread/13683

    File a RADAR with Apple.

    0 讨论(0)
  • 2020-11-27 14:06

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

    0 讨论(0)
  • 2020-11-27 14:15

    On Xcode 7:

    In case you still want the status bar is hidden, just change UIViewControllerBasedStatusBarAppearance in the Info.plist file into View controller-based status bar appearance. Don't forget to set it by NO

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