Build Information
Failed to build OptionalEnvironmentObject, reference main (cc2c9e
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 11:03:35 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.1
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
========================================
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.55s)
Creating working copy for https://github.com/Tunous/OptionalEnvironmentObject.git
Working copy of https://github.com/Tunous/OptionalEnvironmentObject.git resolved at main (cc2c9e6)
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
{
"dependencies" : [
],
"manifest_display_name" : "OptionalEnvironmentObject",
"name" : "OptionalEnvironmentObject",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "OptionalEnvironmentObject",
"targets" : [
"OptionalEnvironmentObject"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OptionalEnvironmentObjectTests",
"module_type" : "SwiftTarget",
"name" : "OptionalEnvironmentObjectTests",
"path" : "Tests/OptionalEnvironmentObjectTests",
"sources" : [
"OptionalEnvironmentObjectTests.swift"
],
"target_dependencies" : [
"OptionalEnvironmentObject"
],
"type" : "test"
},
{
"c99name" : "OptionalEnvironmentObject",
"module_type" : "SwiftTarget",
"name" : "OptionalEnvironmentObject",
"path" : "Sources/OptionalEnvironmentObject",
"product_memberships" : [
"OptionalEnvironmentObject"
],
"sources" : [
"OptionalEnvironmentObject.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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
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