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 Shift, reference main (4162aa), with Swift 6.0 for macOS (SPM) on 20 Mar 2025 16:21:17 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vinhnx/Shift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vinhnx/Shift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4162aab Merge pull request #16 from vinhnx/vinhnx-patch-2
Cloned https://github.com/vinhnx/Shift.git
Revision (git rev-parse @):
4162aab0e4096252c18fe4b01b4af23456a0f7bb
SUCCESS checkout https://github.com/vinhnx/Shift.git at main
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/apple/swift-numerics
[1/5863] Fetching swift-algorithms
[236/11522] Fetching swift-algorithms, swift-numerics
Fetched https://github.com/apple/swift-algorithms from cache (1.15s)
Fetched https://github.com/apple/swift-numerics from cache (1.15s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.0.0 (0.56s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.56s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.0.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": "shift",
      "name": "Shift",
      "url": "https://github.com/vinhnx/Shift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Shift",
      "dependencies": [
        {
          "identity": "swift-algorithms",
          "name": "swift-algorithms",
          "url": "https://github.com/apple/swift-algorithms",
          "version": "1.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-algorithms",
          "dependencies": [
            {
              "identity": "swift-numerics",
              "name": "swift-numerics",
              "url": "https://github.com/apple/swift-numerics.git",
              "version": "1.0.3",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/vinhnx/Shift.git
[1/498] Fetching shift
Fetched https://github.com/vinhnx/Shift.git from cache (0.84s)
Fetching https://github.com/apple/swift-algorithms from cache
Fetched https://github.com/apple/swift-algorithms from cache (0.58s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (0.55s)
Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (0.43s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.56s)
Creating working copy for https://github.com/vinhnx/Shift.git
Working copy of https://github.com/vinhnx/Shift.git resolved at main (4162aab)
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
warning: '.resolve-product-dependencies': dependency 'shift' is not used by any target
Found 1 product dependencies
  - swift-algorithms
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vinhnx/Shift.git
https://github.com/vinhnx/Shift.git
{
  "dependencies" : [
    {
      "identity" : "swift-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-algorithms"
    }
  ],
  "manifest_display_name" : "Shift",
  "name" : "Shift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Shift",
      "targets" : [
        "Shift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ShiftTests",
      "module_type" : "SwiftTarget",
      "name" : "ShiftTests",
      "path" : "Tests/ShiftTests",
      "sources" : [
        "EventKitWrapperTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Shift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Shift",
      "module_type" : "SwiftTarget",
      "name" : "Shift",
      "path" : "Sources/Shift",
      "product_dependencies" : [
        "Algorithms"
      ],
      "product_memberships" : [
        "Shift"
      ],
      "sources" : [
        "Shift.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/5] Write sources
[3/5] Compiling _NumericsShims _NumericsShims.c
[4/5] Write swift-version-5BDAB9E9C0126B9D.txt
[6/15] Compiling RealModule ElementaryFunctions.swift
[7/16] Compiling RealModule RealFunctions.swift
[8/16] Compiling RealModule Double+Real.swift
[9/16] Compiling RealModule Float+Real.swift
[10/16] Compiling RealModule Float80+Real.swift
[11/16] Compiling RealModule AugmentedArithmetic.swift
[12/16] Compiling RealModule Float16+Real.swift
[13/16] Compiling RealModule AlgebraicField.swift
[14/16] Compiling RealModule ApproximateEquality.swift
[15/16] Emitting module RealModule
[16/16] Compiling RealModule Real.swift
[17/40] Compiling Algorithms Reductions.swift
[18/40] Compiling Algorithms Rotate.swift
[19/40] Compiling Algorithms Suffix.swift
[20/40] Compiling Algorithms Trim.swift
[21/42] Compiling Algorithms Combinations.swift
[22/42] Compiling Algorithms Compacted.swift
[23/42] Compiling Algorithms Cycle.swift
[24/42] Compiling Algorithms Split.swift
[25/42] Compiling Algorithms Stride.swift
[26/42] Compiling Algorithms Unique.swift
[27/42] Compiling Algorithms Windows.swift
[28/42] Compiling Algorithms Product.swift
[29/42] Compiling Algorithms RandomSample.swift
[30/42] Compiling Algorithms EitherSequence.swift
[31/42] Compiling Algorithms FirstNonNil.swift
[32/42] Compiling Algorithms FlattenCollection.swift
[33/42] Compiling Algorithms MinMax.swift
[34/42] Compiling Algorithms Partition.swift
[35/42] Compiling Algorithms Permutations.swift
[36/42] Compiling Algorithms AdjacentPairs.swift
[37/42] Compiling Algorithms Chain.swift
[38/42] Compiling Algorithms Chunked.swift
[39/42] Compiling Algorithms Indexed.swift
[40/42] Compiling Algorithms Intersperse.swift
[41/42] Compiling Algorithms Joined.swift
[42/42] Emitting module Algorithms
[43/44] Emitting module Shift
/Users/admin/builder/spi-builder-workspace/Sources/Shift/Shift.swift:45:23: warning: static property 'appName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     /// The calendar’s title.
 45 |     public static var appName: String?
    |                       |- warning: static property 'appName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appName' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appName' 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
 46 |
 47 |     /// Event store: An object that accesses the user’s calendar and reminder events and supports the scheduling of new events.
/Users/admin/builder/spi-builder-workspace/Sources/Shift/Shift.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Shift' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | /// Swift wrapper for EventKit
 37 | public final class Shift: ObservableObject {
    |                    `- note: class 'Shift' does not conform to the 'Sendable' protocol
 38 |
 39 |     // MARK: - Properties
    :
 56 |
 57 |     /// Shared `Shift` singleton
 58 |     public static let shared = Shift()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Shift' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 59 |
 60 |     /// Configuration point
[44/44] Compiling Shift Shift.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shift/Shift.swift:45:23: warning: static property 'appName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     /// The calendar’s title.
 45 |     public static var appName: String?
    |                       |- warning: static property 'appName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appName' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appName' 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
 46 |
 47 |     /// Event store: An object that accesses the user’s calendar and reminder events and supports the scheduling of new events.
/Users/admin/builder/spi-builder-workspace/Sources/Shift/Shift.swift:58:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Shift' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | /// Swift wrapper for EventKit
 37 | public final class Shift: ObservableObject {
    |                    `- note: class 'Shift' does not conform to the 'Sendable' protocol
 38 |
 39 |     // MARK: - Properties
    :
 56 |
 57 |     /// Shared `Shift` singleton
 58 |     public static let shared = Shift()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Shift' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 59 |
 60 |     /// Configuration point
/Users/admin/builder/spi-builder-workspace/Sources/Shift/Shift.swift:240:33: error: 'requestFullAccessToEvents(completion:)' is only available in macOS 14.0 or newer
 35 |
 36 | /// Swift wrapper for EventKit
 37 | public final class Shift: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 38 |
 39 |     // MARK: - Properties
    :
226 |
227 |
228 |     private func requestCalendarAccess() async throws -> Bool {
    |                  `- note: add @available attribute to enclosing instance method
229 |         try await withCheckedThrowingContinuation { [weak self] continuation in
230 |             guard let self else { return }
    :
238 |
239 |             if #available(iOS 17.0, *) {
240 |                 self.eventStore.requestFullAccessToEvents(completion: completion)
    |                                 |- error: 'requestFullAccessToEvents(completion:)' is only available in macOS 14.0 or newer
    |                                 `- note: add 'if #available' version check
241 |             } else {
242 |                 self.eventStore.requestAccess(to: .event, completion: completion)
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/11] Compiling RealModule Real.swift
[3/11] Compiling RealModule Float80+Real.swift
[4/12] Compiling RealModule Float16+Real.swift
[5/12] Compiling RealModule ElementaryFunctions.swift
[6/12] Compiling RealModule Float+Real.swift
[7/12] Compiling RealModule ApproximateEquality.swift
[8/12] Compiling RealModule AugmentedArithmetic.swift
[9/12] Compiling RealModule Double+Real.swift
[10/12] Compiling RealModule RealFunctions.swift
[11/12] Compiling RealModule AlgebraicField.swift
[12/12] Emitting module RealModule
[13/36] Compiling Algorithms Split.swift
[14/36] Compiling Algorithms Stride.swift
[15/36] Compiling Algorithms Suffix.swift
[16/36] Compiling Algorithms Trim.swift
[17/36] Compiling Algorithms Reductions.swift
[18/36] Compiling Algorithms Rotate.swift
[19/36] Compiling Algorithms EitherSequence.swift
[20/36] Compiling Algorithms FirstNonNil.swift
[21/36] Compiling Algorithms FlattenCollection.swift
[22/36] Compiling Algorithms Combinations.swift
[23/36] Compiling Algorithms Compacted.swift
[24/36] Compiling Algorithms Cycle.swift
[25/38] Compiling Algorithms MinMax.swift
[26/38] Compiling Algorithms Partition.swift
[27/38] Compiling Algorithms Permutations.swift
[28/38] Compiling Algorithms Product.swift
[29/38] Compiling Algorithms RandomSample.swift
[30/38] Compiling Algorithms AdjacentPairs.swift
[31/38] Compiling Algorithms Chain.swift
[32/38] Compiling Algorithms Chunked.swift
[33/38] Compiling Algorithms Unique.swift
[34/38] Compiling Algorithms Windows.swift
[35/38] Compiling Algorithms Indexed.swift
[36/38] Compiling Algorithms Intersperse.swift
[37/38] Compiling Algorithms Joined.swift
[38/38] Emitting module Algorithms
[39/40] Emitting module Shift
[40/40] Compiling Shift Shift.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shift/Shift.swift:240:33: error: 'requestFullAccessToEvents(completion:)' is only available in macOS 14.0 or newer
 35 |
 36 | /// Swift wrapper for EventKit
 37 | public final class Shift: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 38 |
 39 |     // MARK: - Properties
    :
226 |
227 |
228 |     private func requestCalendarAccess() async throws -> Bool {
    |                  `- note: add @available attribute to enclosing instance method
229 |         try await withCheckedThrowingContinuation { [weak self] continuation in
230 |             guard let self else { return }
    :
238 |
239 |             if #available(iOS 17.0, *) {
240 |                 self.eventStore.requestFullAccessToEvents(completion: completion)
    |                                 |- error: 'requestFullAccessToEvents(completion:)' is only available in macOS 14.0 or newer
    |                                 `- note: add 'if #available' version check
241 |             } else {
242 |                 self.eventStore.requestAccess(to: .event, completion: completion)
BUILD FAILURE 6.0 macosSpm