Xcode:如何设置CA_DEBUG_TRANSACTIONS = 1? [英] Xcode: How to set CA_DEBUG_TRANSACTIONS=1?

查看:164
本文介绍了Xcode:如何设置CA_DEBUG_TRANSACTIONS = 1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调试器的日志窗口中收到此警告:

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.

我必须找出我的什么代码正在调用CATransaction,以便确保它在主线程上运行.我的代码没有直接调用CATransaction. IE.在我的代码中搜索CATransaction不会发现任何结果.

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.

在Xcode 5中,在环境中设置CA_DEBUG_TRANSACTIONS = 1的正确方法是什么?

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.

推荐答案

产品->方案->编辑方案

Product -> Scheme -> Edit Scheme

选择运行"条目,然后选择参数"选项卡,然后在环境变量"中添加"CA_DEBUG_TRANSACTIONS"作为名称,并添加"1"作为值".

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

这篇关于Xcode:如何设置CA_DEBUG_TRANSACTIONS = 1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆