-
If I only have I tried adding Adding I'm out of ideas. Is there something I'm missing? Is this feature not available with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
We have documentation on this here. |
Beta Was this translation helpful? Give feedback.
-
I was using that as a reference. I've figured the problem, which was in This is my original package: // swift-tools-version: 6.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MyApp",
platforms: [.macOS(.v15)],
products: [
.library(
name: "MyApp",
targets: ["MyApp"]),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/sharing-grdb.git", from: "0.4.0")
],
targets: [
.target(
name: "MyApp",
dependencies: [
.product(name: "SharingGRDB", package: "sharing-grdb")
]
),
.testTarget(
name: "MyAppTests",
dependencies: ["MyApp"]
),
],
swiftLanguageModes: [.v6]
) Basically, you need to add both // swift-tools-version: 6.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MyApp",
platforms: [.macOS(.v15)],
products: [
.library(
name: "MyApp",
targets: ["MyApp"]),
],
dependencies: [
.package(
url: "https://github.com/pointfreeco/swift-structured-queries",
from: "0.5.0",
traits: ["StructuredQueriesTagged"]
),
.package(url: "https://github.com/pointfreeco/sharing-grdb.git", from: "0.4.0"),
.package(url: "https://github.com/pointfreeco/swift-tagged.git", from: "0.10.0")
],
targets: [
.target(
name: "MyApp",
dependencies: [
.product(name: "SharingGRDB", package: "sharing-grdb"),
.product(name: "Tagged", package: "swift-tagged")
]
),
.testTarget(
name: "MyAppTests",
dependencies: ["MyApp"]
),
],
swiftLanguageModes: [.v6]
) |
Beta Was this translation helpful? Give feedback.
We have documentation on this here.