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 Inject, reference 1.5.2 (728c56), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 09:14:58 UTC.

Swift 6 data race errors: 6

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/krzysztofzablocki/Inject.git
Reference: 1.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krzysztofzablocki/Inject
 * tag               1.5.2      -> FETCH_HEAD
HEAD is now at 728c566 xrOS -> visionOS
Cloned https://github.com/krzysztofzablocki/Inject.git
Revision (git rev-parse @):
728c56639ecb3df441d51d5bc6747329afabcfc9
SUCCESS checkout https://github.com/krzysztofzablocki/Inject.git at 1.5.2
========================================
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": "inject",
      "name": "Inject",
      "url": "https://github.com/krzysztofzablocki/Inject.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Inject",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/krzysztofzablocki/Inject.git
[1/475] Fetching inject
Fetched https://github.com/krzysztofzablocki/Inject.git from cache (0.77s)
Creating working copy for https://github.com/krzysztofzablocki/Inject.git
Working copy of https://github.com/krzysztofzablocki/Inject.git resolved at 1.5.2 (728c566)
warning: '.resolve-product-dependencies': dependency 'inject' 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/krzysztofzablocki/Inject.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/7] Compiling Inject KitFrameworks.swift
[4/7] Compiling Inject SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:19:23: warning: static property 'observer' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 17 |     public static var bundlePath = "/Applications/InjectionIII.app/Contents/Resources/"
 18 |     @available(iOS 13.0, *)
 19 |     public static let observer = injectionObserver
    |                       |- warning: static property 'observer' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'observer' 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
 20 |     public static let load: Void = loadInjectionImplementation
 21 |     @available(iOS 13.0, *)
    :
 69 |
 70 | @available(iOS 13.0, *)
 71 | public class InjectionObserver: ObservableObject {
    |              `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
 72 |     @Published public private(set) var injectionNumber = 0
 73 |     private var cancellable: AnyCancellable?
[5/7] Compiling Inject Hosts.swift
[6/7] Emitting module Inject
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:17:23: warning: static property 'bundlePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 | /// Public namespace for using Inject API
 16 | public enum InjectConfiguration {
 17 |     public static var bundlePath = "/Applications/InjectionIII.app/Contents/Resources/"
    |                       |- warning: static property 'bundlePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'bundlePath' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'bundlePath' 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
 18 |     @available(iOS 13.0, *)
 19 |     public static let observer = injectionObserver
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:19:23: warning: static property 'observer' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 17 |     public static var bundlePath = "/Applications/InjectionIII.app/Contents/Resources/"
 18 |     @available(iOS 13.0, *)
 19 |     public static let observer = injectionObserver
    |                       |- warning: static property 'observer' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'observer' 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
 20 |     public static let load: Void = loadInjectionImplementation
 21 |     @available(iOS 13.0, *)
    :
 69 |
 70 | @available(iOS 13.0, *)
 71 | public class InjectionObserver: ObservableObject {
    |              `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
 72 |     @Published public private(set) var injectionNumber = 0
 73 |     private var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:90:13: warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 69 |
 70 | @available(iOS 13.0, *)
 71 | public class InjectionObserver: ObservableObject {
    |              `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
 72 |     @Published public private(set) var injectionNumber = 0
 73 |     private var cancellable: AnyCancellable?
    :
 88 |
 89 | @available(iOS 13.0, *)
 90 | private let injectionObserver = InjectionObserver()
    |             |- warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'injectionObserver' 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
 91 | @available(iOS 13.0, *)
 92 | private var injectionObservationKey = arc4random()
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:34:13: warning: var 'loadInjectionImplementation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 | #if DEBUG
 34 | private var loadInjectionImplementation: Void = {
    |             |- warning: var 'loadInjectionImplementation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'loadInjectionImplementation' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'loadInjectionImplementation' 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
 35 |     guard objc_getClass("InjectionClient") == nil else { return }
 36 |     // If project has a "Build Phase" running this script, Inject should
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:22:23: warning: static property 'animation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 20 |     public static let load: Void = loadInjectionImplementation
 21 |     @available(iOS 13.0, *)
 22 |     public static var animation: SwiftUI.Animation?
    |                       |- warning: static property 'animation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'animation' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'animation' 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
 23 | }
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:92:13: warning: var 'injectionObservationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 90 | private let injectionObserver = InjectionObserver()
 91 | @available(iOS 13.0, *)
 92 | private var injectionObservationKey = arc4random()
    |             |- warning: var 'injectionObservationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'injectionObservationKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'injectionObservationKey' 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
 93 |
 94 | public extension InjectListener where Self: NSObject {
[7/7] Compiling Inject InjectConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:17:23: warning: static property 'bundlePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 | /// Public namespace for using Inject API
 16 | public enum InjectConfiguration {
 17 |     public static var bundlePath = "/Applications/InjectionIII.app/Contents/Resources/"
    |                       |- warning: static property 'bundlePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'bundlePath' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'bundlePath' 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
 18 |     @available(iOS 13.0, *)
 19 |     public static let observer = injectionObserver
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:19:23: warning: static property 'observer' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 17 |     public static var bundlePath = "/Applications/InjectionIII.app/Contents/Resources/"
 18 |     @available(iOS 13.0, *)
 19 |     public static let observer = injectionObserver
    |                       |- warning: static property 'observer' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'observer' 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
 20 |     public static let load: Void = loadInjectionImplementation
 21 |     @available(iOS 13.0, *)
    :
 69 |
 70 | @available(iOS 13.0, *)
 71 | public class InjectionObserver: ObservableObject {
    |              `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
 72 |     @Published public private(set) var injectionNumber = 0
 73 |     private var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:90:13: warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 69 |
 70 | @available(iOS 13.0, *)
 71 | public class InjectionObserver: ObservableObject {
    |              `- note: class 'InjectionObserver' does not conform to the 'Sendable' protocol
 72 |     @Published public private(set) var injectionNumber = 0
 73 |     private var cancellable: AnyCancellable?
    :
 88 |
 89 | @available(iOS 13.0, *)
 90 | private let injectionObserver = InjectionObserver()
    |             |- warning: let 'injectionObserver' is not concurrency-safe because non-'Sendable' type 'InjectionObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'injectionObserver' 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
 91 | @available(iOS 13.0, *)
 92 | private var injectionObservationKey = arc4random()
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:34:13: warning: var 'loadInjectionImplementation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 | #if DEBUG
 34 | private var loadInjectionImplementation: Void = {
    |             |- warning: var 'loadInjectionImplementation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'loadInjectionImplementation' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'loadInjectionImplementation' 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
 35 |     guard objc_getClass("InjectionClient") == nil else { return }
 36 |     // If project has a "Build Phase" running this script, Inject should
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:22:23: warning: static property 'animation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 20 |     public static let load: Void = loadInjectionImplementation
 21 |     @available(iOS 13.0, *)
 22 |     public static var animation: SwiftUI.Animation?
    |                       |- warning: static property 'animation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'animation' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'animation' 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
 23 | }
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/Inject/InjectConfiguration.swift:92:13: warning: var 'injectionObservationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 90 | private let injectionObserver = InjectionObserver()
 91 | @available(iOS 13.0, *)
 92 | private var injectionObservationKey = arc4random()
    |             |- warning: var 'injectionObservationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'injectionObservationKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'injectionObservationKey' 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
 93 |
 94 | public extension InjectListener where Self: NSObject {
Build complete! (11.08s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Inject",
  "name" : "Inject",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Inject",
      "targets" : [
        "Inject"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Inject",
      "module_type" : "SwiftTarget",
      "name" : "Inject",
      "path" : "Sources/Inject",
      "product_memberships" : [
        "Inject"
      ],
      "sources" : [
        "InjectConfiguration.swift",
        "Integrations/Hosts.swift",
        "Integrations/KitFrameworks.swift",
        "Integrations/SwiftUI.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.