WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Ultimate Portfolio - SwiftLint error (Solution)

Forums > Articles

For anyone that may be getting a fatal error when using swiftlint, below is a link to the solution:


Look for the 4th reply. It has a command line code that will fix the issue.


I have done this to a project that I am doing ended up with 160 issues. but it was good and took me a hour or so to reduce it. But a good thing is that if you use //TODO: in your code this is lost but when using swiftlint give you a warning.


I got the 160 errors too... most were the tab on an empty line. "Trailing whitespace"... not sure it has any impact on the code, but I did remove them.... should have finished the video first... would have been easier to get the warnings.

The error for me was running swiftlint for the first time. It was giving me a fatalError. Hence the post 😉


This also fixed my error. The autocorrect command from the comments in that link was very helpful as well.


Hacking with Swift is sponsored by Emerge

SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.