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 SwiftDI, reference 1.0.1 (9fc350), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 21:55:53 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/litecode/swiftdi.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/litecode/swiftdi
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 9fc3502 Update to new Xcode 11 beta 3 API
Cloned https://github.com/litecode/swiftdi.git
Revision (git rev-parse @):
9fc3502b1d1a48dc2d96136911f6abe279853254
SUCCESS checkout https://github.com/litecode/swiftdi.git at 1.0.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": "swiftdi",
      "name": "SwiftDI",
      "url": "https://github.com/litecode/swiftdi.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftdi",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/litecode/swiftdi.git
[1/1150] Fetching swiftdi
Fetched https://github.com/litecode/swiftdi.git from cache (1.43s)
Creating working copy for https://github.com/litecode/swiftdi.git
Working copy of https://github.com/litecode/swiftdi.git resolved at 1.0.1 (9fc3502)
warning: '.resolve-product-dependencies': dependency 'swiftdi' 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/litecode/swiftdi.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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/15] Compiling SwiftDI SwiftDI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |     public enum Defaults {
 7 |         /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
 8 |         public static var lifeCycle = DILifeCycle.objectGraph
   |                           |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'lifeCycle' 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
 9 |     }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     }
10 |
11 |     internal private(set) static var sharedContainer: DIContainerConvertible = DIContainer()
   |                                      |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: annotate 'sharedContainer' 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
12 |
13 |     /// Use container for inject dependencies using `@Injectable` and `@InjecatableObjectBinding`.
[4/15] Compiling SwiftDI Resolver.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/16] Emitting module SwiftDI
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |     public enum Defaults {
 7 |         /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
 8 |         public static var lifeCycle = DILifeCycle.objectGraph
   |                           |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'lifeCycle' 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
 9 |     }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:15:107: error: cannot find type 'BindableObject' in scope
13 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
14 | @propertyWrapper
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
   |                                                                                                           `- error: cannot find type 'BindableObject' in scope
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:30:29: warning: property wrapper's 'wrapperValue' property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated
28 |     }
29 |
30 |     public private(set) var wrapperValue: ObjectBinding<BindableObjectType>.Wrapper
   |                             `- warning: property wrapper's 'wrapperValue' property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated
31 | }
32 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:30:43: error: cannot find type 'ObjectBinding' in scope
28 |     }
29 |
30 |     public private(set) var wrapperValue: ObjectBinding<BindableObjectType>.Wrapper
   |                                           `- error: cannot find type 'ObjectBinding' in scope
31 | }
32 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:17:24: error: cannot find type 'ObjectBinding' in scope
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
   |                        `- error: cannot find type 'ObjectBinding' in scope
18 |
19 |     public init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:15:60: error: cannot find type 'DynamicViewProperty' in scope
13 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
14 | @propertyWrapper
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
   |                                                            `- error: cannot find type 'DynamicViewProperty' in scope
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableProperty.swift:28:11: error: 'InjectableObjectBinding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | extension InjectableObjectBinding: InjectableProperty {
   | |         `- error: 'InjectableObjectBinding' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
29 |     var type: Any.Type {
30 |         return BindableObjectType.self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     }
10 |
11 |     internal private(set) static var sharedContainer: DIContainerConvertible = DIContainer()
   |                                      |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: annotate 'sharedContainer' 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
12 |
13 |     /// Use container for inject dependencies using `@Injectable` and `@InjecatableObjectBinding`.
[6/16] Compiling SwiftDI Utils.swift
[7/16] Compiling SwiftDI Injectable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     }
10 |
11 |     internal private(set) static var sharedContainer: DIContainerConvertible = DIContainer()
   |                                      |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                      |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
   |                                      |- note: annotate 'sharedContainer' 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
12 |
13 |     /// Use container for inject dependencies using `@Injectable` and `@InjecatableObjectBinding`.
[8/16] Compiling SwiftDI Extensions.swift
[9/16] Compiling SwiftDI DIObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |     public enum Defaults {
 7 |         /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
 8 |         public static var lifeCycle = DILifeCycle.objectGraph
   |                           |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'lifeCycle' 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
 9 |     }
10 |
[10/16] Compiling SwiftDI DIPart.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |     public enum Defaults {
 7 |         /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
 8 |         public static var lifeCycle = DILifeCycle.objectGraph
   |                           |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'lifeCycle' 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
 9 |     }
10 |
[11/16] Compiling SwiftDI DIContainer.swift
[12/16] Compiling SwiftDI DIContainerConvertible.swift
[13/16] Compiling SwiftDI DIComponentContext.swift
[14/16] Compiling SwiftDI DIComponentManager.swift
[15/16] Compiling SwiftDI InjectableProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:15:107: error: cannot find type 'BindableObject' in scope
13 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
14 | @propertyWrapper
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
   |                                                                                                           `- error: cannot find type 'BindableObject' in scope
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableProperty.swift:28:11: error: 'InjectableObjectBinding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | extension InjectableObjectBinding: InjectableProperty {
   | |         `- error: 'InjectableObjectBinding' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
29 |     var type: Any.Type {
30 |         return BindableObjectType.self
[16/16] Compiling SwiftDI InjectableObjectBinding.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:15:107: error: cannot find type 'BindableObject' in scope
13 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
14 | @propertyWrapper
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
   |                                                                                                           `- error: cannot find type 'BindableObject' in scope
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:30:29: warning: property wrapper's 'wrapperValue' property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated
28 |     }
29 |
30 |     public private(set) var wrapperValue: ObjectBinding<BindableObjectType>.Wrapper
   |                             `- warning: property wrapper's 'wrapperValue' property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated
31 | }
32 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:30:43: error: cannot find type 'ObjectBinding' in scope
28 |     }
29 |
30 |     public private(set) var wrapperValue: ObjectBinding<BindableObjectType>.Wrapper
   |                                           `- error: cannot find type 'ObjectBinding' in scope
31 | }
32 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:17:24: error: cannot find type 'ObjectBinding' in scope
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
   |                        `- error: cannot find type 'ObjectBinding' in scope
18 |
19 |     public init() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:15:60: error: cannot find type 'DynamicViewProperty' in scope
13 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
14 | @propertyWrapper
15 | public struct InjectableObjectBinding<BindableObjectType>: DynamicViewProperty where BindableObjectType : BindableObject {
   |                                                            `- error: cannot find type 'DynamicViewProperty' in scope
16 |
17 |     var _bindingValue: ObjectBinding<BindableObjectType>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:20:34: error: cannot convert value of type 'BindableObjectType.Type' to expected argument type 'AnyClass' (aka 'any AnyObject.Type')
18 |
19 |     public init() {
20 |         let bundle = Bundle(for: BindableObjectType.self)
   |                                  `- error: cannot convert value of type 'BindableObjectType.Type' to expected argument type 'AnyClass' (aka 'any AnyObject.Type')
21 |         let value: BindableObjectType = SwiftDI.sharedContainer.resolve(bundle: bundle)
22 |         _bindingValue = ObjectBinding<BindableObjectType>(initialValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/InjectableObjectBinding.swift:22:25: error: cannot find 'ObjectBinding' in scope
20 |         let bundle = Bundle(for: BindableObjectType.self)
21 |         let value: BindableObjectType = SwiftDI.sharedContainer.resolve(bundle: bundle)
22 |         _bindingValue = ObjectBinding<BindableObjectType>(initialValue: value)
   |                         `- error: cannot find 'ObjectBinding' in scope
23 |         self.wrapperValue = _bindingValue.wrapperValue
24 |     }
BUILD FAILURE 6.0 macosSpm