Build Information
Failed to build OptionalEnvironmentObject, reference main (cc2c9e
), with Swift 6.0 (beta) for macOS (SPM) on 16 Sep 2024 14:54:29 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Tunous/OptionalEnvironmentObject.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Tunous/OptionalEnvironmentObject
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cc2c9e6 Add Swift Package Index config
Cloned https://github.com/Tunous/OptionalEnvironmentObject.git
Revision (git rev-parse @):
cc2c9e6a48bf9a4d7bbe0271085b2e2e46ccbb27
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Tunous/OptionalEnvironmentObject.git at main
========================================
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.0.0-Release.Candidate.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-117DEE11B69C53C9.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