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 5.10 for macOS (SPM) on 23 Jul 2024 16:40:52 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.47.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.95s)
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:             5.10
Building package at path:  $PWD
https://github.com/Tunous/OptionalEnvironmentObject.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.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
        @EnvironmentObject private var object: ObjectType
         ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:45:10: error: 'Environment' is only available in macOS 10.15 or newer
        @Environment(\.environmentObjectPresence) private var environmentObjectPresence
         ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:56:36: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
        public var projectedValue: EnvironmentObject<ObjectType>.Wrapper? {
                                   ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:56:20: note: add @available attribute to enclosing property
        public var projectedValue: EnvironmentObject<ObjectType>.Wrapper? {
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:3:11: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
extension EnvironmentObject {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:3:1: note: add @available attribute to enclosing extension
extension EnvironmentObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                                             ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:17: note: add @available attribute to enclosing instance method
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:85: error: 'View' is only available in macOS 10.15 or newer
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                                                                                    ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:17: note: add @available attribute to enclosing instance method
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:89:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
extension EnvironmentValues {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:89:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
[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
        @EnvironmentObject private var object: ObjectType
         ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:45:10: error: 'Environment' is only available in macOS 10.15 or newer
        @Environment(\.environmentObjectPresence) private var environmentObjectPresence
         ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:56:36: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
        public var projectedValue: EnvironmentObject<ObjectType>.Wrapper? {
                                   ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:56:20: note: add @available attribute to enclosing property
        public var projectedValue: EnvironmentObject<ObjectType>.Wrapper? {
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:43:19: note: add @available attribute to enclosing struct
    public struct Optional: DynamicProperty {
                  ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:3:11: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
extension EnvironmentObject {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:3:1: note: add @available attribute to enclosing extension
extension EnvironmentObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                                             ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:17: note: add @available attribute to enclosing instance method
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:85: error: 'View' is only available in macOS 10.15 or newer
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                                                                                    ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:17: note: add @available attribute to enclosing instance method
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:89:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
extension EnvironmentValues {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:89:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:76:14: error: 'environmentObject' is only available in macOS 10.15 or newer
        self.environmentObject(object)
             ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:76:14: note: add 'if #available' version check
        self.environmentObject(object)
             ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:17: note: add @available attribute to enclosing instance method
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:77:14: error: 'transformEnvironment(_:transform:)' is only available in macOS 10.15 or newer
            .transformEnvironment(\.environmentObjectPresence) { presence in
             ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:77:14: note: add 'if #available' version check
            .transformEnvironment(\.environmentObjectPresence) { presence in
             ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:75:17: note: add @available attribute to enclosing instance method
    public func optionalEnvironmentObject<T: ObservableObject>(_ object: T) -> some View {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/OptionalEnvironmentObject/OptionalEnvironmentObject.swift:69:1: note: add @available attribute to enclosing extension
extension View {
^
error: fatalError
BUILD FAILURE 5.10 macosSpm