See TODO, Fixme, custom labels, and more in Xcode

Source: Internet
Author: User

//TODO: identify what will be done in the future;

//FIXME: Identify the content to be corrected or perfected later.

???: The place of doubt

!!!: Places to be aware of

The above four hints Xcode has been supported.


Add a custom identity and display it in warning at compile time;

Target-->build Phases-->editor-->add Run Script build phases

Paste the following code into the shell box

Keywords= "todo:|fixme:|???: |!!!: | XXX: "
Find "${srcroot}" \ (-name "*.h"-or-name "*.m" \)-print0 | xargs-0 egrep--with-filename--line-number--only-matching "($KEYWORDS). *\$" | Perl-p-E "s/($KEYWORDS)/warning: \$1/"

Reference:

Http://iosdevelopertips.com/xcode/xcode-fixme-and-todo.html

Https://coderwall.com/p/bfd0dq/xcode-view-todo-fixme-custom-tags-as-warning

See TODO, Fixme, custom labels, and more in Xcode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.