标签:run shu package arch ack roo grep strip rgs
swift 中没法使用#Warning
来提示警告, 可以通过给TODO:
FIXME:
加上警告, 实现类似的效果.
Build Phases ---> Run Script ---> add a new Build Phases ---> new run script phase
TAGS="TODO:|FIXME:"
echo "searching ${SRCROOT} for ${TAGS}"
find "${SRCROOT}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"
如图:
标签:run shu package arch ack roo grep strip rgs
原文地址:http://www.cnblogs.com/lurenq/p/7464002.html