问题描述
我知道发出警告的方法,但是我想将合法警告与待办事项分开. 而且xcode的todo支持仅适用于功能之外的todo.
I am aware of the method of making them warnings, but I want to keep my legit warnings separate from my todos. And xcode's todo support only works on todos outside of functions...
在此处中概述的构建阶段脚本非常好,但是它会使TODO成为警告,而Objective C会创建足够的合法警告,我不想让我的工作阻塞了清单.有没有一种方法可以使待办事项成为不同的构建结果,例如信息结果或其他内容?不会使Xcode的真实警告(应该是一半的 错误)在人群中消失的东西?
The build phase script that is outlined here is wonderful, but it makes the TODOs into warnings, and Objective C creates enough legitimate warnings that I don't want my todo's clogging up the list. Is there a way to make the todo's a different build result, like an info result or something? Something that will not make Xcode's real warnings (half of should be errors) vanish in the crowd?
推荐答案
更新
从Xcode 4.4开始; FIXME:
, ???:
, ????:
, !!!:
均在功能/方法.
UPDATE
As of Xcode 4.4; FIXME:
, ???:
, ????:
, !!!:
all work outside of a function/method.
xcode 的问题将突出显示TODO
//TODO: This will show in function drop down
-(void)method1
{
//TODO: This will not show
}
此外; FIXME
, ???
, ????
, !!!!
.
In addition; FIXME
, ???
, ????
, !!!!
do the same.
这篇关于Xcode中的TODO:如何使其脱颖而出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!