DoubleTake is an XCode extension that removes duplicate imports, @class and @protocol. It works in both Objective-C and Swift projects. The inspiration behind this extension is that I was working on a legacy project which contained many duplicate imports. This became a pain to do by hand so like any good developer I automated it. Hopefully, this will help you too and remove some headaches in your projects.