realm / SwiftLint

A tool to enforce Swift style and conventions.
https://realm.github.io/SwiftLint
MIT License
18.45k stars 2.2k forks source link

SwiftLintCommandPlugin Unknown option '--target' #5603

Open kostasniks opened 1 month ago

kostasniks commented 1 month ago

Describe the bug

Greetings 👋 , I used the new CommandPlugin but for some reason when I am running it in one of my packages it results to the following error:

CleanShot 2024-05-24 at 14 34 59 CleanShot 2024-05-24 at 14 35 19 CleanShot 2024-05-24 at 14 32 41

My package.swift looks like this:

// MARK: Networking
        .target(
            name: "Networking",
            dependencies: [],
            plugins: [.plugin(name: "SwiftLintCommandPlugin", package: "SwiftLint")]
        ),

Environment

SimplyDanny commented 3 weeks ago

The plugin itself doesn't add the --target option, so it must come from Xcode constructing the call. Can you provide the complete commend that Xcode runs?