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

Successful build of CNKit, reference 0.6.0 (04ca97), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 21:27:59 UTC.

Swift 6 data race errors: 0

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/kiliankoe/cnkit.git
Reference: 0.6.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/cnkit
 * tag               0.6.0      -> FETCH_HEAD
HEAD is now at 04ca973 parallelize tests and order randomly
Cloned https://github.com/kiliankoe/cnkit.git
Revision (git rev-parse @):
04ca973e7e6f03fd1d19f633ddff84dd6ee3ad32
SUCCESS checkout https://github.com/kiliankoe/cnkit.git at 0.6.0
========================================
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": "cnkit",
      "name": "CNKit",
      "url": "https://github.com/kiliankoe/cnkit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/cnkit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kiliankoe/cnkit.git
[1/1589] Fetching cnkit
Fetched https://github.com/kiliankoe/cnkit.git from cache (1.08s)
Creating working copy for https://github.com/kiliankoe/cnkit.git
Working copy of https://github.com/kiliankoe/cnkit.git resolved at 0.6.0 (04ca973)
warning: '.resolve-product-dependencies': dependency 'cnkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kiliankoe/cnkit.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/30] Emitting module CNKit
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/CLLocationCoordinate2D.swift:3:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
1 | import struct CoreLocation.CLLocationCoordinate2D
2 |
3 | extension CLLocationCoordinate2D: Equatable {
  | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
4 |     public static func ==(lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
5 |         return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/Color.swift:41:9: warning: 'public' modifier is redundant for property declared in a public extension
39 |     #elseif os(macOS)
40 |         /// The color this room should be displayed as.
41 |         public var color: NSColor? {
   |         `- warning: 'public' modifier is redundant for property declared in a public extension
42 |             return NSColor(withRGB: self.rawColor)
43 |         }
[4/33] Compiling CNKit CanteenMenu.swift
[5/33] Compiling CNKit Floor.swift
[6/33] Compiling CNKit Hash.swift
[7/33] Compiling CNKit Result.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:64:35: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 62 |
 63 |         queue.async {
 64 |             let yVals = Array(0..<zoomLevel.rawValue)
    |                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |             let xVals = Array(0..<zoomLevel.rawValue * 6) // Does 6 here really cover everything for all buildings?
 66 |
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:17: warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                 |- warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:69:99: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 67 |             let tileCandidates = yVals.flatMap { y -> [FloorplanTile] in
 68 |                 return xVals.map { x in
 69 |                     let url = Tiles.floorplanURL(building: building, floor: floor, x: x, y: y, z: zoomLevel)
    |                                                                                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 70 |                     return FloorplanTile(xPos: x, yPos: y, url: url)
 71 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:69:99: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 67 |             let tileCandidates = yVals.flatMap { y -> [FloorplanTile] in
 68 |                 return xVals.map { x in
 69 |                     let url = Tiles.floorplanURL(building: building, floor: floor, x: x, y: y, z: zoomLevel)
    |                                                                                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 70 |                     return FloorplanTile(xPos: x, yPos: y, url: url)
 71 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:17: warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                 |- warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:28: warning: capture of 'tiles' with non-sendable type '[FloorplanTile]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 31 |
 32 | /// Position and URL for a floorplan tile image.
 33 | public struct FloorplanTile {
    |               `- note: consider making struct 'FloorplanTile' conform to the 'Sendable' protocol
 34 |     public let xPos: Int
 35 |     public let yPos: Int
    :
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                            `- warning: capture of 'tiles' with non-sendable type '[FloorplanTile]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 79 |             }
 80 |         }
[8/33] Compiling CNKit Ternary.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:64:35: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 62 |
 63 |         queue.async {
 64 |             let yVals = Array(0..<zoomLevel.rawValue)
    |                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |             let xVals = Array(0..<zoomLevel.rawValue * 6) // Does 6 here really cover everything for all buildings?
 66 |
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:17: warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                 |- warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:69:99: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 67 |             let tileCandidates = yVals.flatMap { y -> [FloorplanTile] in
 68 |                 return xVals.map { x in
 69 |                     let url = Tiles.floorplanURL(building: building, floor: floor, x: x, y: y, z: zoomLevel)
    |                                                                                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 70 |                     return FloorplanTile(xPos: x, yPos: y, url: url)
 71 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:69:99: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 67 |             let tileCandidates = yVals.flatMap { y -> [FloorplanTile] in
 68 |                 return xVals.map { x in
 69 |                     let url = Tiles.floorplanURL(building: building, floor: floor, x: x, y: y, z: zoomLevel)
    |                                                                                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 70 |                     return FloorplanTile(xPos: x, yPos: y, url: url)
 71 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:17: warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                 |- warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:28: warning: capture of 'tiles' with non-sendable type '[FloorplanTile]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 31 |
 32 | /// Position and URL for a floorplan tile image.
 33 | public struct FloorplanTile {
    |               `- note: consider making struct 'FloorplanTile' conform to the 'Sendable' protocol
 34 |     public let xPos: Int
 35 |     public let yPos: Int
    :
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                            `- warning: capture of 'tiles' with non-sendable type '[FloorplanTile]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 79 |             }
 80 |         }
[9/33] Compiling CNKit Tiles.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:64:35: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 62 |
 63 |         queue.async {
 64 |             let yVals = Array(0..<zoomLevel.rawValue)
    |                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |             let xVals = Array(0..<zoomLevel.rawValue * 6) // Does 6 here really cover everything for all buildings?
 66 |
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:17: warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                 |- warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:69:99: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 67 |             let tileCandidates = yVals.flatMap { y -> [FloorplanTile] in
 68 |                 return xVals.map { x in
 69 |                     let url = Tiles.floorplanURL(building: building, floor: floor, x: x, y: y, z: zoomLevel)
    |                                                                                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 70 |                     return FloorplanTile(xPos: x, yPos: y, url: url)
 71 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:69:99: warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 38 |
 39 | extension Tiles {
 40 |     public enum Zoomlevel: Int {
    |                 `- note: consider making enum 'Zoomlevel' conform to the 'Sendable' protocol
 41 |         case one = 1
 42 |         case two = 2
    :
 67 |             let tileCandidates = yVals.flatMap { y -> [FloorplanTile] in
 68 |                 return xVals.map { x in
 69 |                     let url = Tiles.floorplanURL(building: building, floor: floor, x: x, y: y, z: zoomLevel)
    |                                                                                                   `- warning: capture of 'zoomLevel' with non-sendable type 'Tiles.Zoomlevel' in an isolated closure; this is an error in the Swift 6 language mode
 70 |                     return FloorplanTile(xPos: x, yPos: y, url: url)
 71 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:17: warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                 |- warning: capture of 'completion' with non-sendable type '([FloorplanTile]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Tiles.swift:78:28: warning: capture of 'tiles' with non-sendable type '[FloorplanTile]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 31 |
 32 | /// Position and URL for a floorplan tile image.
 33 | public struct FloorplanTile {
    |               `- note: consider making struct 'FloorplanTile' conform to the 'Sendable' protocol
 34 |     public let xPos: Int
 35 |     public let yPos: Int
    :
 76 |
 77 |             DispatchQueue.main.async {
 78 |                 completion(tiles)
    |                            `- warning: capture of 'tiles' with non-sendable type '[FloorplanTile]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 79 |             }
 80 |         }
[10/33] Compiling CNKit Config.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/CLLocationCoordinate2D.swift:3:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
1 | import struct CoreLocation.CLLocationCoordinate2D
2 |
3 | extension CLLocationCoordinate2D: Equatable {
  | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
4 |     public static func ==(lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
5 |         return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
[11/33] Compiling CNKit Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/CLLocationCoordinate2D.swift:3:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
1 | import struct CoreLocation.CLLocationCoordinate2D
2 |
3 | extension CLLocationCoordinate2D: Equatable {
  | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
4 |     public static func ==(lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
5 |         return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
[12/33] Compiling CNKit CLLocationCoordinate2D.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/CLLocationCoordinate2D.swift:3:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
1 | import struct CoreLocation.CLLocationCoordinate2D
2 |
3 | extension CLLocationCoordinate2D: Equatable {
  | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
  | `- note: add '@retroactive' to silence this warning
4 |     public static func ==(lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
5 |         return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
[13/33] Compiling CNKit RoomType.swift
[14/33] Compiling CNKit Route.swift
[15/33] Compiling CNKit Search.swift
[16/33] Compiling CNKit Timetable.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/APIResource.swift:38:17: warning: capture of 'completion' with non-sendable type '(Result<Self.CollectionType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |                   error == nil
37 |             else {
38 |                 completion(.failure(Error.response))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<Self.CollectionType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 |                 return
40 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/APIResource.swift:71:13: warning: capture of 'rawDataHandler' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |
70 |             // To be used for storing raw responses elsewhere.
71 |             rawDataHandler?(data)
   |             |- warning: capture of 'rawDataHandler' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |
73 |             if let error = try? JSONDecoder().decode(APIError.self, from: newlinestrippedData) {
[17/33] Compiling CNKit Transport.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/APIResource.swift:38:17: warning: capture of 'completion' with non-sendable type '(Result<Self.CollectionType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |                   error == nil
37 |             else {
38 |                 completion(.failure(Error.response))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<Self.CollectionType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 |                 return
40 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/APIResource.swift:71:13: warning: capture of 'rawDataHandler' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |
70 |             // To be used for storing raw responses elsewhere.
71 |             rawDataHandler?(data)
   |             |- warning: capture of 'rawDataHandler' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |
73 |             if let error = try? JSONDecoder().decode(APIError.self, from: newlinestrippedData) {
[18/33] Compiling CNKit APIResource.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/APIResource.swift:38:17: warning: capture of 'completion' with non-sendable type '(Result<Self.CollectionType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |                   error == nil
37 |             else {
38 |                 completion(.failure(Error.response))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<Self.CollectionType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 |                 return
40 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/APIResource.swift:71:13: warning: capture of 'rawDataHandler' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |
70 |             // To be used for storing raw responses elsewhere.
71 |             rawDataHandler?(data)
   |             |- warning: capture of 'rawDataHandler' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |
73 |             if let error = try? JSONDecoder().decode(APIError.self, from: newlinestrippedData) {
[19/33] Compiling CNKit URLRequest.swift
[20/33] Compiling CNKit Resource.swift
[21/33] Compiling CNKit ResourceRepresentable.swift
[22/33] Compiling CNKit MKMapRect.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/URL.swift:28:13: warning: mutation of captured var 'contentLength' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |                 return
27 |             }
28 |             contentLength = content
   |             `- warning: mutation of captured var 'contentLength' in concurrently-executing code; this is an error in the Swift 6 language mode
29 |             sema.signal()
30 |         }
[23/33] Compiling CNKit String.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/URL.swift:28:13: warning: mutation of captured var 'contentLength' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |                 return
27 |             }
28 |             contentLength = content
   |             `- warning: mutation of captured var 'contentLength' in concurrently-executing code; this is an error in the Swift 6 language mode
29 |             sema.signal()
30 |         }
[24/33] Compiling CNKit URL.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/URL.swift:28:13: warning: mutation of captured var 'contentLength' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |                 return
27 |             }
28 |             contentLength = content
   |             `- warning: mutation of captured var 'contentLength' in concurrently-executing code; this is an error in the Swift 6 language mode
29 |             sema.signal()
30 |         }
[25/33] Compiling CNKit Login.swift
[26/33] Compiling CNKit RoomID.swift
[27/33] Compiling CNKit RoomInfo.swift
[28/33] Compiling CNKit APIError.swift
[29/33] Compiling CNKit Building.swift
[30/33] Compiling CNKit Campus.swift
[31/33] Compiling CNKit Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/Color.swift:41:9: warning: 'public' modifier is redundant for property declared in a public extension
39 |     #elseif os(macOS)
40 |         /// The color this room should be displayed as.
41 |         public var color: NSColor? {
   |         `- warning: 'public' modifier is redundant for property declared in a public extension
42 |             return NSColor(withRGB: self.rawColor)
43 |         }
[32/33] Compiling CNKit Dictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/Color.swift:41:9: warning: 'public' modifier is redundant for property declared in a public extension
39 |     #elseif os(macOS)
40 |         /// The color this room should be displayed as.
41 |         public var color: NSColor? {
   |         `- warning: 'public' modifier is redundant for property declared in a public extension
42 |             return NSColor(withRGB: self.rawColor)
43 |         }
[33/33] Compiling CNKit Int.swift
/Users/admin/builder/spi-builder-workspace/Sources/CNKit/Extensions/Color.swift:41:9: warning: 'public' modifier is redundant for property declared in a public extension
39 |     #elseif os(macOS)
40 |         /// The color this room should be displayed as.
41 |         public var color: NSColor? {
   |         `- warning: 'public' modifier is redundant for property declared in a public extension
42 |             return NSColor(withRGB: self.rawColor)
43 |         }
Build complete! (19.94s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CNKit",
  "name" : "CNKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CNKit",
      "targets" : [
        "CNKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CNKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CNKitTests",
      "path" : "Tests/CNKitTests",
      "sources" : [
        "AccessibilityInfoTests.swift",
        "BuildingComplexTests.swift",
        "CampusTests.swift",
        "CanteenMenuTests.swift",
        "ColorTests.swift",
        "ErrorTests.swift",
        "FloorTests.swift",
        "HashTests.swift",
        "LoginTests.swift",
        "MKMapRectTests.swift",
        "ResourceTests.swift",
        "ResultTests.swift",
        "RoomIDTests.swift",
        "RoomInfoTests.swift",
        "RouteTests.swift",
        "SearchTests.swift",
        "TilesTests.swift",
        "TimetableTests.swift",
        "TransportTests.swift"
      ],
      "target_dependencies" : [
        "CNKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CNKit",
      "module_type" : "SwiftTarget",
      "name" : "CNKit",
      "path" : "Sources/CNKit",
      "product_memberships" : [
        "CNKit"
      ],
      "sources" : [
        "AModels/APIError.swift",
        "AModels/Building.swift",
        "AModels/Campus.swift",
        "AModels/CanteenMenu.swift",
        "AModels/Floor.swift",
        "AModels/Hash.swift",
        "AModels/Login.swift",
        "AModels/RoomID.swift",
        "AModels/RoomInfo.swift",
        "AModels/RoomType.swift",
        "AModels/Route.swift",
        "AModels/Search.swift",
        "AModels/Timetable.swift",
        "AModels/Transport.swift",
        "APIResource.swift",
        "Config.swift",
        "Error.swift",
        "Extensions/CLLocationCoordinate2D.swift",
        "Extensions/Color.swift",
        "Extensions/Dictionary.swift",
        "Extensions/Int.swift",
        "Extensions/MKMapRect.swift",
        "Extensions/String.swift",
        "Extensions/URL.swift",
        "Extensions/URLRequest.swift",
        "Resource.swift",
        "ResourceRepresentable.swift",
        "Result.swift",
        "Ternary.swift",
        "Tiles.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.