Xcode snippet

Code Snippet Library within Xcode

variable to edit is within <# var #>

// FIXME: <# Subject #>

to make todo / fix into warning

add run script in Build Phases
shell: /bin/sh
(tick 'Show environment variables in build log')

TAGS="TODO:|FIXME:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"

Tags: