The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Parchment, reference main (5d888b), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 06:02:03 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/k-kohey/Parchment-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/k-kohey/Parchment-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5d888b0 Merge pull request #35 from k-kohey/fix/module_name
Cloned https://github.com/k-kohey/Parchment-swift.git
Revision (git rev-parse @):
5d888b07f7e5efb974b53e91164b8369b7995770
SUCCESS checkout https://github.com/k-kohey/Parchment-swift.git at main
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/stephencelis/SQLite.swift.git
[1/2038] Fetching swift-docc-plugin
[226/11621] Fetching swift-docc-plugin, sqlite.swift
Fetched https://github.com/stephencelis/SQLite.swift.git from cache (1.85s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.85s)
Computing version for https://github.com/stephencelis/SQLite.swift.git
Computed https://github.com/stephencelis/SQLite.swift.git at 0.14.1 (0.69s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.0.0 (0.66s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.0.0
Creating working copy for https://github.com/stephencelis/SQLite.swift.git
Working copy of https://github.com/stephencelis/SQLite.swift.git resolved at 0.14.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "parchment-swift",
      "name": "Parchment",
      "url": "https://github.com/k-kohey/Parchment-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Parchment-swift",
      "dependencies": [
        {
          "identity": "sqlite.swift",
          "name": "SQLite.swift",
          "url": "https://github.com/stephencelis/SQLite.swift.git",
          "version": "0.15.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SQLite.swift",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/k-kohey/Parchment-swift.git
[1/3552] Fetching parchment-swift
Fetched https://github.com/k-kohey/Parchment-swift.git from cache (1.15s)
Fetching https://github.com/stephencelis/SQLite.swift.git from cache
Fetched https://github.com/stephencelis/SQLite.swift.git from cache (0.59s)
Computing version for https://github.com/stephencelis/SQLite.swift.git
warning: 'sqlite.swift': /Package.swift:7:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
 5 |     name: "SQLite.swift",
 6 |     platforms: [
 7 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
 8 |         .macOS(.v10_13),
 9 |         .watchOS(.v4),
/Package.swift:10:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
 8 |         .macOS(.v10_13),
 9 |         .watchOS(.v4),
10 |         .tvOS(.v11),
   |                `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
11 |         .visionOS(.v1)
12 |     ],
Computed https://github.com/stephencelis/SQLite.swift.git at 0.15.3 (0.52s)
Creating working copy for https://github.com/stephencelis/SQLite.swift.git
Working copy of https://github.com/stephencelis/SQLite.swift.git resolved at 0.15.3
Creating working copy for https://github.com/k-kohey/Parchment-swift.git
Working copy of https://github.com/k-kohey/Parchment-swift.git resolved at main (5d888b0)
warning: 'sqlite.swift': /Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SQLite.swift/Package.swift:7:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
 5 |     name: "SQLite.swift",
 6 |     platforms: [
 7 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
 8 |         .macOS(.v10_13),
 9 |         .watchOS(.v4),
/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SQLite.swift/Package.swift:10:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
 8 |         .macOS(.v10_13),
 9 |         .watchOS(.v4),
10 |         .tvOS(.v11),
   |                `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
11 |         .visionOS(.v1)
12 |     ],
warning: '.resolve-product-dependencies': dependency 'parchment-swift' is not used by any target
Found 1 product dependencies
  - SQLite.swift
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/k-kohey/Parchment-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/7] Write sources
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/50] Emitting module SQLite
[9/53] Compiling SQLite Value.swift
[10/53] Compiling SQLite Cipher.swift
[11/53] Compiling SQLite FTS4.swift
[12/53] Compiling SQLite FTS5.swift
[13/53] Compiling ParchmentCore Payload.swift
/Users/admin/builder/spi-builder-workspace/Sources/ParchmentCore/Payload.swift:190:26: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
188 |
189 |         let parametersContainer = try container.nestedContainer(keyedBy: DynamicCodingKeys.self, forKey: .parameters)
190 |         parameters = try decodeFromContainer(container: parametersContainer)
    |                          `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
191 |     }
192 |
[14/53] Compiling ParchmentCore LoggerComponent.swift
[15/54] Compiling ParchmentCore Mutation.swift
[16/54] Compiling ParchmentCore Loggable.swift
[17/54] Compiling ParchmentCore LoggerBundler.swift
[18/54] Compiling ParchmentCore LogBuffer.swift
[19/54] Compiling ParchmentCore BufferFlowController.swift
[20/54] Emitting module ParchmentCore
/Users/admin/builder/spi-builder-workspace/Sources/ParchmentCore/LoggableDictonary.swift:14:1: warning: extension declares a conformance of imported type 'PartialKeyPath' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
12 | public typealias LoggableDictonary = [PartialKeyPath<Loggable>: Sendable]
13 |
14 | extension PartialKeyPath<Loggable>: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'PartialKeyPath' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
15 |
16 | extension LoggableDictonary: Loggable {
[21/54] Compiling ParchmentCore AnyLoggable.swift
[22/54] Compiling ParchmentCore LoggableDictonary.swift
/Users/admin/builder/spi-builder-workspace/Sources/ParchmentCore/LoggableDictonary.swift:14:1: warning: extension declares a conformance of imported type 'PartialKeyPath' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
12 | public typealias LoggableDictonary = [PartialKeyPath<Loggable>: Sendable]
13 |
14 | extension PartialKeyPath<Loggable>: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'PartialKeyPath' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
15 |
16 | extension LoggableDictonary: Loggable {
[23/54] Compiling SQLite CoreFunctions.swift
[24/54] Compiling SQLite CustomFunctions.swift
[25/54] Compiling SQLite DateAndTimeFunctions.swift
[26/54] Compiling SQLite AggregateFunctions.swift
[27/54] Compiling SQLite Coding.swift
[28/54] Compiling SQLite Collation.swift
[29/54] Compiling SQLite RTree.swift
[30/54] Compiling SQLite Foundation.swift
[31/54] Compiling SQLite Helpers.swift
[32/54] Compiling SQLite Connection+Schema.swift
[33/54] Compiling SQLite Expression.swift
[34/54] Compiling SQLite Operators.swift
[35/54] Compiling SQLite Query+with.swift
[36/54] Compiling SQLite SQLiteFeature.swift
[37/54] Compiling SQLite SQLiteVersion.swift
[38/54] Compiling SQLite Statement.swift
[39/54] Compiling SQLite URIQueryParameter.swift
[40/54] Compiling SQLite Connection+Pragmas.swift
[41/54] Compiling SQLite Connection.swift
[42/54] Compiling SQLite Errors.swift
[43/54] Compiling SQLite Result.swift
[44/54] Compiling SQLite Backup.swift
[45/54] Compiling SQLite Blob.swift
[46/54] Compiling SQLite Connection+Aggregation.swift
[47/54] Compiling SQLite Connection+Attach.swift
[48/54] Compiling SQLite SchemaChanger.swift
[49/54] Compiling SQLite SchemaDefinitions.swift
[50/54] Compiling SQLite SchemaReader.swift
[51/54] Compiling SQLite Query.swift
[52/54] Compiling SQLite Schema.swift
[53/54] Compiling SQLite Setter.swift
[54/54] Compiling ParchmentCore osLogger.swift
[55/64] Compiling TestSupport Stub.swift
[56/64] Emitting module TestSupport
[57/64] Compiling Parchment Export.swift
[58/64] Compiling Parchment LoggerBundler+.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[59/64] Compiling Parchment DeviceDataMutation.swift
[60/64] Compiling Parchment DefaultBufferFlowController.swift
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/DefaultBufferFlowController.swift:18:17: warning: stored property 'bufferTask' of 'Sendable'-conforming class 'DefaultBufferFlowController' is mutable; this is an error in the Swift 6 language mode
16 |     @MainActor private var inputAccumulationPayloads: [Payload] = []
17 |
18 |     private var bufferTask: Task<Void, Error>? = nil
   |                 `- warning: stored property 'bufferTask' of 'Sendable'-conforming class 'DefaultBufferFlowController' is mutable; this is an error in the Swift 6 language mode
19 |
20 |     public init(
[61/64] Emitting module Parchment
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/DefaultBufferFlowController.swift:18:17: warning: stored property 'bufferTask' of 'Sendable'-conforming class 'DefaultBufferFlowController' is mutable; this is an error in the Swift 6 language mode
16 |     @MainActor private var inputAccumulationPayloads: [Payload] = []
17 |
18 |     private var bufferTask: Task<Void, Error>? = nil
   |                 `- warning: stored property 'bufferTask' of 'Sendable'-conforming class 'DefaultBufferFlowController' is mutable; this is an error in the Swift 6 language mode
19 |
20 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:14:45: error: missing argument label 'value:' in call
12 | public final actor SQLiteBuffer: LogBuffer {
13 |     private enum Column {
14 |         static let event = Expression<Data>("event")
   |                                             `- error: missing argument label 'value:' in call
15 |         static let timestamp = Expression<Date>("timestamp")
16 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:15:49: error: missing argument label 'value:' in call
13 |     private enum Column {
14 |         static let event = Expression<Data>("event")
15 |         static let timestamp = Expression<Date>("timestamp")
   |                                                 `- error: missing argument label 'value:' in call
16 |     }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:38:19: error: generic parameter 'V' could not be inferred
36 |         try db.run(
37 |             events.create(ifNotExists: true) { t in
38 |                 t.column(Column.event, primaryKey: true)
   |                   `- error: generic parameter 'V' could not be inferred
39 |                 t.column(Column.timestamp)
40 |             }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SQLite.swift/Sources/SQLite/Typed/Schema.swift:272:17: note: in call to function 'column(_:primaryKey:check:defaultValue:)'
270 |     }
271 |
272 |     public func column<V: Value>(_ name: Expression<V>, primaryKey: Bool, check: Expression<Bool>? = nil,
    |                 `- note: in call to function 'column(_:primaryKey:check:defaultValue:)'
273 |                                  defaultValue: Expression<V>? = nil) {
274 |         column(name, V.declaredDatatype, primaryKey ? .default : nil, false, false, check, defaultValue, nil, nil)
[62/64] Compiling Parchment Tracked.swift
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/Tracked.swift:87:17: warning: capture of 'self' with non-sendable type 'Binding<Tracked<InnerType, Scope>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | ///     @Tracked(name: "age", with: logger, scope: \.age) var state: State
14 | @propertyWrapper
15 | public struct Tracked<Value: Sendable, ScopeValue: Sendable> {
   |               `- note: consider making generic struct 'Tracked' conform to the 'Sendable' protocol
16 |     private let logger: LoggerBundler
17 |     private let option: LoggerBundler.LoggingOption
   :
85 |         Binding<InnerType>(
86 |             get: {
87 |                 wrappedValue.wrappedValue
   |                 `- warning: capture of 'self' with non-sendable type 'Binding<Tracked<InnerType, Scope>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 |             }, set: {
89 |                 wrappedValue.wrappedValue = $0
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/Tracked.swift:89:17: warning: capture of 'self' with non-sendable type 'Binding<Tracked<InnerType, Scope>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | ///     @Tracked(name: "age", with: logger, scope: \.age) var state: State
14 | @propertyWrapper
15 | public struct Tracked<Value: Sendable, ScopeValue: Sendable> {
   |               `- note: consider making generic struct 'Tracked' conform to the 'Sendable' protocol
16 |     private let logger: LoggerBundler
17 |     private let option: LoggerBundler.LoggingOption
   :
87 |                 wrappedValue.wrappedValue
88 |             }, set: {
89 |                 wrappedValue.wrappedValue = $0
   |                 `- warning: capture of 'self' with non-sendable type 'Binding<Tracked<InnerType, Scope>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 |             })
91 |     }
[63/64] Compiling Parchment View+track.swift
[64/64] Compiling Parchment SQLiteBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:14:45: error: missing argument label 'value:' in call
12 | public final actor SQLiteBuffer: LogBuffer {
13 |     private enum Column {
14 |         static let event = Expression<Data>("event")
   |                                             `- error: missing argument label 'value:' in call
15 |         static let timestamp = Expression<Date>("timestamp")
16 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:15:49: error: missing argument label 'value:' in call
13 |     private enum Column {
14 |         static let event = Expression<Data>("event")
15 |         static let timestamp = Expression<Date>("timestamp")
   |                                                 `- error: missing argument label 'value:' in call
16 |     }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:38:19: error: generic parameter 'V' could not be inferred
36 |         try db.run(
37 |             events.create(ifNotExists: true) { t in
38 |                 t.column(Column.event, primaryKey: true)
   |                   `- error: generic parameter 'V' could not be inferred
39 |                 t.column(Column.timestamp)
40 |             }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SQLite.swift/Sources/SQLite/Typed/Schema.swift:272:17: note: in call to function 'column(_:primaryKey:check:defaultValue:)'
270 |     }
271 |
272 |     public func column<V: Value>(_ name: Expression<V>, primaryKey: Bool, check: Expression<Bool>? = nil,
    |                 `- note: in call to function 'column(_:primaryKey:check:defaultValue:)'
273 |                                  defaultValue: Expression<V>? = nil) {
274 |         column(name, V.declaredDatatype, primaryKey ? .default : nil, false, false, check, defaultValue, nil, nil)
/Users/admin/builder/spi-builder-workspace/Sources/Parchment/SQLiteBuffer.swift:65:14: error: instance method 'joined(separator:)' requires the types 'Data.Element' (aka 'UInt8') and '(any Binding)?' be equivalent
63 |         let entities = try db.prepare(target)
64 |             .map { $0[Column.event] }
65 |             .joined(separator: ",".data(using: .utf8)!)
   |              `- error: instance method 'joined(separator:)' requires the types 'Data.Element' (aka 'UInt8') and '(any Binding)?' be equivalent
66 |         let jsonData = "[".data(using: .utf8)! + entities + "]".data(using: .utf8)!
67 |
Swift.Sequence:2:40: note: where 'Separator.Element' = 'Data.Element' (aka 'UInt8'), 'Self.Element.Element' = '(any Binding)?'
1 | extension Sequence where Self.Element : Sequence {
2 |     @inlinable public __consuming func joined<Separator>(separator: Separator) -> JoinedSequence<Self> where Separator : Sequence, Separator.Element == Self.Element.Element
  |                                        `- note: where 'Separator.Element' = 'Data.Element' (aka 'UInt8'), 'Self.Element.Element' = '(any Binding)?'
3 | }
BUILD FAILURE 6.0 macosSpm