Skip to content

Can't creating build - SwiftLint #116

Open
@mariohahn

Description

@mariohahn

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__")
			]
		)
	]
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions