Xcode: View all TODOs in the project

Is there a way to view all TODO tags in an Xcode project?

I know how to do this in a file using the drop down function , but was not sure how to see everything in the project.

+6
source share
3 answers

Instead of labeling them as

 //TODO: do something 

I like to write them like this:

 #warning TODO do something 

This allows you to see them in the problems navigator. On production builds, I even check the compiler’s setting to treat all warnings as errors.

+6
source

Direct text search is how I do it.

Hit shift + command + F (⇧⌘F) and search //TODO: (or, nevertheless, your TODOs are formatted)

+4
source

You can add the “Run Script” build phase to your goal, which will view your entire project for TODO: | FIXME: Mark and mark them as warnings.

This new build phase will then list all TODO tags as alerts in the Navigator Navigator every time you create a% + B project.

Here's a link to Ben Dodson's tutorial for this using Swift files: https://bendodson.com/weblog/2014/10/02/showing-todo-as-warning-in-swift-xcode-project/

Here is a screenshot of how it looks with the project I was working on:

Display TODO tags as alerts in Problem Navigator

+2
source

All Articles