Skip to content

Can't creating build - SwiftLint #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mariohahn opened this issue May 13, 2025 · 2 comments
Closed

Can't creating build - SwiftLint #116

mariohahn opened this issue May 13, 2025 · 2 comments

Comments

@mariohahn
Copy link

Cant create Build

swift build --configuration release
error: a prebuild command cannot use executables built from source, including executable target 'swiftlint'
error: build planning stopped due to build-tool plugin failures
[0/1] Planning build
error: a prebuild command cannot use executables built from source, including executable target 'swiftlint'
error: build planning stopped due to build-tool plugin failures

// 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: "Jello",
	platforms: [
		.iOS(.v17),
		.watchOS(.v6),
		.macOS(.v14)
	],
	products: [
		.library(
			name: "Jello",
			targets: ["Jello"]
		),
		.library(
			name: "JelloFonts",
			targets: ["JelloFonts"]
		),
		.library(
			name: "JelloSafeSymbols",
			targets: ["JelloSafeSymbols"]
		)
	],
	dependencies: [
		.package(
			url: "https://github.com/SFSafeSymbols/SFSafeSymbols",
			from: "5.3.0"
		),
		.package(
			url: "https://github.com/pointfreeco/swift-snapshot-testing",
			from: "1.17.6"
		),
		.package(
			url: "https://github.com/apple/swift-argument-parser",
			from: "1.0.0"
		),
        .package(
            url: "https://github.com/Adyen/adyen-swift-public-api-diff",
            from: "0.8.4"
        )
	],
	targets: [
		.target(
			name: "Jello",
			dependencies: [
				"JelloFonts"
			],
			resources: [
				.process("Assets.xcassets")
			],
			swiftSettings: [
				.unsafeFlags(["-enable-library-evolution"])
			]
		),
		.target(
			name: "JelloFonts",
			dependencies: [],
			resources: [
				.process("Fonts")
			],
			swiftSettings: [
				.unsafeFlags(["-enable-library-evolution"])
			]
		),
		.target(
			name: "JelloSafeSymbols",
			dependencies: [
				.product(
					name: "SFSafeSymbols",
					package: "SFSafeSymbols"
				),
				"Jello"
			]
		),
		.testTarget(
			name: "JelloTests",
			dependencies: [
				"Jello",
			//	"JelloFigma",
				"JelloFonts",
				.product(
					name: "SnapshotTesting",
					package: "swift-snapshot-testing"
				)
			],
			resources: [
				.process("__Snapshots__")
			]
		)
	]
)
@mariohahn mariohahn changed the title Issue creating build - SwiftLint Can't creating build - SwiftLint May 13, 2025
@goergisn
Copy link
Contributor

goergisn commented Jun 5, 2025

Hi @mariohahn thanks for reporting.
I see you include the package for adyen-swift-public-api diff in your swift package file.
This is not needed unless you want to build an app/sdk that uses its functionality (e.g. a mac app that shows the output in a specific way)

Are you able to perform the swift build --configuration release command in general? (without the adyen-swift-public-api added)

@goergisn
Copy link
Contributor

Hi @mariohahn
I was able to reproduce the issue you were running into and subsequently removed the plugin in 1.10.1
I hope this also fixes it on your side as well.

Feel free to re-open the issue if you're still running into any issues :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants