Swift Linting for xcode project

Now that Cursor can address linting errors, I need help with SwiftLint. I can not figure out how to get the Linter to understand the structure of my files so I got tons of cannot find x errors. This means that every time it changes something it sees those errors and thinks it did something wrong. So I had to turn off linting entirely.

Anyone have success getting SwiftLint extension working with an xcode project?

Tried sourcekit-lsp but I’m having trouble. I am still working to figure out a clean setup for linting with Swift and Cursor.

If anyone has a setup, please comment with it!