-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
integrationIssues related to integration of SwiftLint into toolchains.Issues related to integration of SwiftLint into toolchains.swift-compilerAn issue caused by a shortcoming in the Swift compiler.An issue caused by a shortcoming in the Swift compiler.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
Including SwiftLint as a plugin in a Swift Package target causes the following error message on Xcode 16.3:
error: a prebuild command cannot use executables built from source, including executable target 'swiftlint'
error: build planning stopped due to build-tool plugin failures
Example Package.swift:
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "example-executable",
platforms: [
.macOS(.v14)
],
dependencies: [
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", exact: "0.58.2")
],
targets: [
.executableTarget(
name: "example-executable",
plugins: [
.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins")
]
)
]
)The issue wasn't present on Xcode <= 16.2 and disappears when downgrading to Xcode 16.2.
Environment
- SwiftLint version 0.58.2
- Xcode version 16.3
- Installation method used: SPM (SwiftLintPlugins repo)
iramonsNoobish1, RichLogan, valeriyvan and iramons
Metadata
Metadata
Assignees
Labels
integrationIssues related to integration of SwiftLint into toolchains.Issues related to integration of SwiftLint into toolchains.swift-compilerAn issue caused by a shortcoming in the Swift compiler.An issue caused by a shortcoming in the Swift compiler.