This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 CampusDualKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jonasrichardrichter/CampusDualKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jonasrichardrichter/CampusDualKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 88bae4d Create .spi.yml
Cloned https://github.com/jonasrichardrichter/CampusDualKit.git
Revision (git rev-parse @):
88bae4db285f847c2f37920bd8761eaa303c19e2
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/jonasrichardrichter/CampusDualKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/jonasrichardrichter/CampusDualKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/7] Compiling Logging Locks.swift
[5/7] Compiling Logging Logging.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging LogHandler.swift
[8/15] Compiling CampusDualKit Lesson.swift
/Users/admin/builder/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/Lesson.swift:50:23: warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'Lesson' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | /// A model representing a lesson.
11 | public struct Lesson: Codable, Hashable {
   |               `- note: consider making struct 'Lesson' conform to the 'Sendable' protocol
12 |
13 |     /// The initializer for the struct.
   :
48 |
49 |     /// An example lesson
50 |     public static let example = Lesson(title: "Example lesson", start: Date.init(timeIntervalSince1970: 1793097900), end: Date.init(timeIntervalSince1970: 1793103300), description: "This is an example lesson", room: "1.202", instructor: "Prof. Dr. Example", remarks: "Group A")
   |                       |- warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'Lesson' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'example' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
[9/15] Compiling CampusDualKit ScheduleServiceError.swift
[10/15] Compiling CampusDualKit URLSession+scheduleServiceDataTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:20:17: warning: capture of 'completion' with non-sendable type '(Result<T, ScheduleServiceError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 |             guard error == nil else {
20 |                 completion(.failure(.network(error)))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, ScheduleServiceError>) -> 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'
21 |                 return
22 |             }
[11/15] Compiling CampusDualKit ScheduleService.swift
[12/15] Compiling CampusDualKit StudyDay.swift
/Users/admin/builder/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/StudyDay.swift:26:23: warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'StudyDay' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | /// A model representing a study day.
11 | public struct StudyDay: Codable, Hashable {
   |               `- note: consider making struct 'StudyDay' conform to the 'Sendable' protocol
12 |
13 |     /// The initializer for the struct.
   :
24 |
25 |     /// Example StudyDay with an example lesson.
26 |     public static let example = StudyDay(day: Date.init(timeIntervalSince1970: 1793055600), lessons: [Lesson.example])
   |                       |- warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'StudyDay' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'example' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/Lesson.swift:50:23: warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'Lesson' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | /// A model representing a lesson.
11 | public struct Lesson: Codable, Hashable {
   |               `- note: consider making struct 'Lesson' conform to the 'Sendable' protocol
12 |
13 |     /// The initializer for the struct.
   :
48 |
49 |     /// An example lesson
50 |     public static let example = Lesson(title: "Example lesson", start: Date.init(timeIntervalSince1970: 1793097900), end: Date.init(timeIntervalSince1970: 1793103300), description: "This is an example lesson", room: "1.202", instructor: "Prof. Dr. Example", remarks: "Group A")
   |                       |- warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'Lesson' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'example' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
[13/15] Compiling CampusDualKit Logger+CustomInit.swift
[14/15] Compiling CampusDualKit URL+CampusDual.swift
[15/15] Emitting module CampusDualKit
/Users/admin/builder/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/Lesson.swift:50:23: warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'Lesson' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | /// A model representing a lesson.
11 | public struct Lesson: Codable, Hashable {
   |               `- note: consider making struct 'Lesson' conform to the 'Sendable' protocol
12 |
13 |     /// The initializer for the struct.
   :
48 |
49 |     /// An example lesson
50 |     public static let example = Lesson(title: "Example lesson", start: Date.init(timeIntervalSince1970: 1793097900), end: Date.init(timeIntervalSince1970: 1793103300), description: "This is an example lesson", room: "1.202", instructor: "Prof. Dr. Example", remarks: "Group A")
   |                       |- warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'Lesson' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'example' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | }
52 |
/Users/admin/builder/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/StudyDay.swift:26:23: warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'StudyDay' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | /// A model representing a study day.
11 | public struct StudyDay: Codable, Hashable {
   |               `- note: consider making struct 'StudyDay' conform to the 'Sendable' protocol
12 |
13 |     /// The initializer for the struct.
   :
24 |
25 |     /// Example StudyDay with an example lesson.
26 |     public static let example = StudyDay(day: Date.init(timeIntervalSince1970: 1793055600), lessons: [Lesson.example])
   |                       |- warning: static property 'example' is not concurrency-safe because non-'Sendable' type 'StudyDay' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'example' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
Build complete! (21.41s)
Fetching https://github.com/apple/swift-log.git
[1/3353] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.21s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.2 (0.68s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "CampusDualKit",
  "name" : "CampusDualKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "CampusDualKit",
      "targets" : [
        "CampusDualKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CampusDualKit",
      "module_type" : "SwiftTarget",
      "name" : "CampusDualKit",
      "path" : "Sources/CampusDualKit",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "CampusDualKit"
      ],
      "sources" : [
        "Extensions/Logger+CustomInit.swift",
        "Extensions/URL+CampusDual.swift",
        "Extensions/URLSession+scheduleServiceDataTask.swift",
        "ScheduleService/Lesson.swift",
        "ScheduleService/ScheduleService.swift",
        "ScheduleService/ScheduleServiceError.swift",
        "ScheduleService/StudyDay.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.