SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Swiftlint is breaking SwiftUI Previews when used as plugin in SPM package.

Open agruchala opened this issue 1 year ago • 1 comments

New Issue Checklist

Describe the bug

Swiftlint is breaking SwiftUI Previews when used as plugin in SPM package.

When Swiftlint is added as plugin to package, previews engine generates this error:

== PREVIEW UPDATE ERROR:

    HumanReadableSwiftError
    
    BuildError: failedToGenerateThunkInfo(could not generate preview info: noTargetBuildGraph)

Without plugin, previews works fine.

agruchala avatar Jul 24 '24 10:07 agruchala

This does rather sound like an issue of SwiftUI Previews than an issue of SwiftLint.

SimplyDanny avatar Jul 24 '24 11:07 SimplyDanny