Xcode: How to set CA_DEBUG_TRANSACTIONS=1?

南笙酒味 提交于 2019-12-18 14:46:09

问题


I'm getting this warning in the log window of the debugger:

 CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.

I have to find out what code of mine is calling CATransaction so I can make sure it is running on the main thread. My code doesn't call CATransaction directly. I.e. a search of my code for CATransaction turns up nothing.

In Xcode 5, what is the correct way to set CA_DEBUG_TRANSACTIONS=1 in the environment?

Thanks in advance to all for any info.


回答1:


Product -> Scheme -> Edit Scheme

Select "Run" entry and then "Arguments" tab, and in "Environment Variables" add "CA_DEBUG_TRANSACTIONS" as Name and "1" as "Value".



来源:https://stackoverflow.com/questions/23867470/xcode-how-to-set-ca-debug-transactions-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!