Vapor project files need to be regenerated after package changes, which means any custom edits will be lost. Here's how I use the pbxplorer gem to add a SwiftLint build phase to project.pbxproj after (re-)creating the .xcodeproj directory. Change the two instances of MyApp below as appropriate.