Skip to content

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

@agruchala

Description

@agruchala

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionTopics that cannot be categorized as bugs or enhancements yet. They require further discussions.integrationIssues related to integration of SwiftLint into toolchains.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions