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 OptionalEnvironmentObject, reference 1.0.0 (61d099), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 13:23:23 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Tunous/OptionalEnvironmentObject.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Tunous/OptionalEnvironmentObject
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 61d0994 Initial commit
Cloned https://github.com/Tunous/OptionalEnvironmentObject.git
Revision (git rev-parse @):
61d0994aa8120a81b4ee908fe04a411a87b0b119
SUCCESS checkout https://github.com/Tunous/OptionalEnvironmentObject.git 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": "optionalenvironmentobject",
      "name": "OptionalEnvironmentObject",
      "url": "https://github.com/Tunous/OptionalEnvironmentObject.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OptionalEnvironmentObject",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Tunous/OptionalEnvironmentObject.git
[1/26] Fetching optionalenvironmentobject
Fetched https://github.com/Tunous/OptionalEnvironmentObject.git from cache (0.63s)
Creating working copy for https://github.com/Tunous/OptionalEnvironmentObject.git
Working copy of https://github.com/Tunous/OptionalEnvironmentObject.git resolved at 1.0.0 (61d0994)
warning: '.resolve-product-dependencies': dependency 'optionalenvironmentobject' 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/Tunous/OptionalEnvironmentObject.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module OptionalEnvironmentObject
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:44:10: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
41 |     /// ```
42 |     @propertyWrapper
43 |     public struct Optional: DynamicProperty {
   |                   |- note: add @available attribute to enclosing struct
   |                   `- note: add @available attribute to enclosing struct
44 |         @EnvironmentObject private var object: ObjectType
   |          `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
45 |         @Environment(\.environmentObjectPresence) private var environmentObjectPresence
46 |
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:45:10: error: 'Environment' is only available in macOS 10.15 or newer
41 |     /// ```
42 |     @propertyWrapper
43 |     public struct Optional: DynamicProperty {
   |                   |- note: add @available attribute to enclosing struct
   |                   `- note: add @available attribute to enclosing struct
44 |         @EnvironmentObject private var object: ObjectType
45 |         @Environment(\.environmentObjectPresence) private var environmentObjectPresence
   |          `- error: 'Environment' is only available in macOS 10.15 or newer
46 |
47 |         /// The underlying value referenced by the environment object.
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:56:36: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
41 |     /// ```
42 |     @propertyWrapper
43 |     public struct Optional: DynamicProperty {
   |                   `- note: add @available attribute to enclosing struct
44 |         @EnvironmentObject private var object: ObjectType
45 |         @Environment(\.environmentObjectPresence) private var environmentObjectPresence
   :
54 |         /// properties using dynamic member lookup.
55 |         @MainActor
56 |         public var projectedValue: EnvironmentObject<ObjectType>.Wrapper? {
   |                    |               `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing property
57 |             return isEnvironmentObjectPresent ? $object : nil
58 |         }
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:3:11: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension EnvironmentObject {
   | |         `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
 4 |     /// Variant of `EnvironmentObject` property wrapper with support for
 5 |     /// optionality.
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
   :
73 |     ///
74 |     /// - Parameter object: The object to store and make available to the view’s hierarchy.
75 |     public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
   |                 |                            `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
76 |         self.environmentObject(object)
77 |             .transformEnvironment(\.environmentObjectPresence) { presence in
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:85: error: 'View' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
   :
73 |     ///
74 |     /// - Parameter object: The object to store and make available to the view’s hierarchy.
75 |     public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
   |                 |                                                                   `- error: 'View' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
76 |         self.environmentObject(object)
77 |             .transformEnvironment(\.environmentObjectPresence) { presence in
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:89:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
87 | }
88 |
89 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
90 |     fileprivate var environmentObjectPresence: Set<ObjectIdentifier> {
91 |         get { self[EnvironmentObjectPresenceKey.self] }
[4/4] Compiling OptionalEnvironmentObject OptionalEnvironmentObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:44:10: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
41 |     /// ```
42 |     @propertyWrapper
43 |     public struct Optional: DynamicProperty {
   |                   |- note: add @available attribute to enclosing struct
   |                   `- note: add @available attribute to enclosing struct
44 |         @EnvironmentObject private var object: ObjectType
   |          `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
45 |         @Environment(\.environmentObjectPresence) private var environmentObjectPresence
46 |
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:45:10: error: 'Environment' is only available in macOS 10.15 or newer
41 |     /// ```
42 |     @propertyWrapper
43 |     public struct Optional: DynamicProperty {
   |                   |- note: add @available attribute to enclosing struct
   |                   `- note: add @available attribute to enclosing struct
44 |         @EnvironmentObject private var object: ObjectType
45 |         @Environment(\.environmentObjectPresence) private var environmentObjectPresence
   |          `- error: 'Environment' is only available in macOS 10.15 or newer
46 |
47 |         /// The underlying value referenced by the environment object.
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:56:36: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
41 |     /// ```
42 |     @propertyWrapper
43 |     public struct Optional: DynamicProperty {
   |                   `- note: add @available attribute to enclosing struct
44 |         @EnvironmentObject private var object: ObjectType
45 |         @Environment(\.environmentObjectPresence) private var environmentObjectPresence
   :
54 |         /// properties using dynamic member lookup.
55 |         @MainActor
56 |         public var projectedValue: EnvironmentObject<ObjectType>.Wrapper? {
   |                    |               `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing property
57 |             return isEnvironmentObjectPresent ? $object : nil
58 |         }
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:3:11: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension EnvironmentObject {
   | |         `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
 4 |     /// Variant of `EnvironmentObject` property wrapper with support for
 5 |     /// optionality.
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
   :
73 |     ///
74 |     /// - Parameter object: The object to store and make available to the view’s hierarchy.
75 |     public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
   |                 |                            `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
76 |         self.environmentObject(object)
77 |             .transformEnvironment(\.environmentObjectPresence) { presence in
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:85: error: 'View' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
   :
73 |     ///
74 |     /// - Parameter object: The object to store and make available to the view’s hierarchy.
75 |     public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
   |                 |                                                                   `- error: 'View' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
76 |         self.environmentObject(object)
77 |             .transformEnvironment(\.environmentObjectPresence) { presence in
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:89:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
87 | }
88 |
89 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
90 |     fileprivate var environmentObjectPresence: Set<ObjectIdentifier> {
91 |         get { self[EnvironmentObjectPresenceKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:76:14: error: 'environmentObject' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
   :
73 |     ///
74 |     /// - Parameter object: The object to store and make available to the view’s hierarchy.
75 |     public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
76 |         self.environmentObject(object)
   |              |- error: 'environmentObject' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
77 |             .transformEnvironment(\.environmentObjectPresence) { presence in
78 |                 presence.insert(ObjectIdentifier(T.self))
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:77:14: error: 'transformEnvironment(_:transform:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension View {
   | `- note: add @available attribute to enclosing extension
70 |     /// Supplies an observable object to a view’s hierarchy. This should be used
71 |     /// if you want to optionally access environment objects using
   :
73 |     ///
74 |     /// - Parameter object: The object to store and make available to the view’s hierarchy.
75 |     public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
76 |         self.environmentObject(object)
77 |             .transformEnvironment(\.environmentObjectPresence) { presence in
   |              |- error: 'transformEnvironment(_:transform:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
78 |                 presence.insert(ObjectIdentifier(T.self))
79 |             }
BUILD FAILURE 6.0 macosSpm