The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build FocusEntity, reference 2.5.2 (3e08b2), with Swift 6.0 for macOS (SPM) on 26 Jun 2025 23:54:46 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maxxfrazer/FocusEntity.git
Reference: 2.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/FocusEntity
 * tag               2.5.2      -> FETCH_HEAD
HEAD is now at 3e08b26 Merge pull request #51 from Brian-Co/fix-import-ios-26
Cloned https://github.com/maxxfrazer/FocusEntity.git
Revision (git rev-parse @):
3e08b26f863957113f4d0b2d45cf6dfbd1a41333
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/maxxfrazer/FocusEntity.git at 2.5.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/maxxfrazer/FocusEntity.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/10] Compiling FocusEntity float4x4+Extension.swift
[4/10] Compiling FocusEntity FocusEntityComponent.swift
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: error: could not infer type of color literal
 69 |
 70 |     /// Default color of FocusEntity
 71 |     public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
    |                                      |- error: could not infer type of color literal
    |                                      `- note: import AppKit to use 'NSColor' as the default color literal type
 72 |     /// Default style of FocusEntity, using the FocusEntityComponent.Style.classic with the color FocusEntityComponent.defaultColor.
 73 |     public static let classic = FocusEntityComponent(style: .classic(color: FocusEntityComponent.defaultColor))
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:34:14: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
 32 |         /// Default style of FocusEntity. Box that's open when not on a plane, closed when on one.
 33 |         /// - color: Color of the FocusEntity lines, default: `FocusEntityComponent.defaultColor`
 34 |         case classic(color: Material.Color = FocusEntityComponent.defaultColor)
    |              `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
 35 |         /// Style that changes based on state of the FocusEntity
 36 |         /// - onColor: Color when FocusEntity is tracking on a known surface.
AppKit.NSColor:1:12: note: type declared here
  1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
    |            `- note: type declared here
  2 |     public init()
  3 |     public init?(coder: NSCoder)
[5/10] Compiling FocusEntity FocusEntity.swift
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:16:10: warning: FocusEntity: This package is only fully available with physical iOS devices
 14 |
 15 | #if os(macOS) || targetEnvironment(simulator)
 16 | #warning("FocusEntity: This package is only fully available with physical iOS devices")
    |          `- warning: FocusEntity: This package is only fully available with physical iOS devices
 17 | #endif
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:76:23: error: cannot find type 'ARPlaneAnchor' in scope
 74 |     func focusEntity(
 75 |         _ focusEntity: FocusEntity,
 76 |         planeChanged: ARPlaneAnchor?,
    |                       `- error: cannot find type 'ARPlaneAnchor' in scope
 77 |         oldPlane: ARPlaneAnchor?
 78 |     )
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:77:19: error: cannot find type 'ARPlaneAnchor' in scope
 75 |         _ focusEntity: FocusEntity,
 76 |         planeChanged: ARPlaneAnchor?,
 77 |         oldPlane: ARPlaneAnchor?
    |                   `- error: cannot find type 'ARPlaneAnchor' in scope
 78 |     )
 79 | }
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:64: error: cannot find type 'ARPlaneAnchor' in scope
 85 |         _ focusEntity: FocusEntity, trackingUpdated trackingState: FocusEntity.State, oldState: FocusEntity.State? = nil
 86 |     ) {}
 87 |     func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
    |                                                                `- error: cannot find type 'ARPlaneAnchor' in scope
 88 | }
 89 |
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:90: error: cannot find type 'ARPlaneAnchor' in scope
 85 |         _ focusEntity: FocusEntity, trackingUpdated trackingState: FocusEntity.State, oldState: FocusEntity.State? = nil
 86 |     ) {}
 87 |     func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
    |                                                                                          `- error: cannot find type 'ARPlaneAnchor' in scope
 88 | }
 89 |
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: error: could not infer type of color literal
 69 |
 70 |     /// Default color of FocusEntity
 71 |     public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
    |                                      |- error: could not infer type of color literal
    |                                      `- note: import AppKit to use 'NSColor' as the default color literal type
 72 |     /// Default style of FocusEntity, using the FocusEntityComponent.Style.classic with the color FocusEntityComponent.defaultColor.
 73 |     public static let classic = FocusEntityComponent(style: .classic(color: FocusEntityComponent.defaultColor))
[6/10] Compiling FocusEntity FocusEntity+Colored.swift
[7/10] Compiling FocusEntity FocusEntity+Segment.swift
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:71:29: error: 'PhysicallyBasedMaterial' is only available in macOS 12.0 or newer
 46 |     }
 47 |
 48 |     class Segment: Entity, HasModel {
    |           `- note: add @available attribute to enclosing class
 49 |
 50 |         // MARK: - Configuration & Initialization
    :
 63 |         let plane: ModelComponent
 64 |
 65 |         init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
    |         `- note: add @available attribute to enclosing initializer
 66 |             self.corner = corner
 67 |             self.alignment = alignment
    :
 69 |             var mat: Material!
 70 |             if #available(iOS 15.0, *) {
 71 |                 var phMat = PhysicallyBasedMaterial()
    |                             |- error: 'PhysicallyBasedMaterial' is only available in macOS 12.0 or newer
    |                             `- note: add 'if #available' version check
 72 |                 phMat.baseColor = .init(tint: .black)
 73 |                 phMat.emissiveColor = .init(color: color)
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:72:23: error: 'baseColor' is only available in macOS 12.0 or newer
 46 |     }
 47 |
 48 |     class Segment: Entity, HasModel {
    |           `- note: add @available attribute to enclosing class
 49 |
 50 |         // MARK: - Configuration & Initialization
    :
 63 |         let plane: ModelComponent
 64 |
 65 |         init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
    |         `- note: add @available attribute to enclosing initializer
 66 |             self.corner = corner
 67 |             self.alignment = alignment
    :
 70 |             if #available(iOS 15.0, *) {
 71 |                 var phMat = PhysicallyBasedMaterial()
 72 |                 phMat.baseColor = .init(tint: .black)
    |                       |- error: 'baseColor' is only available in macOS 12.0 or newer
    |                       `- note: add 'if #available' version check
 73 |                 phMat.emissiveColor = .init(color: color)
 74 |                 phMat.emissiveIntensity = 2
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:72:36: error: 'init(tint:texture:)' is only available in macOS 12.0 or newer
 46 |     }
 47 |
 48 |     class Segment: Entity, HasModel {
    |           `- note: add @available attribute to enclosing class
 49 |
 50 |         // MARK: - Configuration & Initialization
    :
 63 |         let plane: ModelComponent
 64 |
 65 |         init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
    |         `- note: add @available attribute to enclosing initializer
 66 |             self.corner = corner
 67 |             self.alignment = alignment
    :
 70 |             if #available(iOS 15.0, *) {
 71 |                 var phMat = PhysicallyBasedMaterial()
 72 |                 phMat.baseColor = .init(tint: .black)
    |                                    |- error: 'init(tint:texture:)' is only available in macOS 12.0 or newer
    |                                    `- note: add 'if #available' version check
 73 |                 phMat.emissiveColor = .init(color: color)
 74 |                 phMat.emissiveIntensity = 2
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:73:23: error: 'emissiveColor' is only available in macOS 12.0 or newer
 46 |     }
 47 |
 48 |     class Segment: Entity, HasModel {
    |           `- note: add @available attribute to enclosing class
 49 |
 50 |         // MARK: - Configuration & Initialization
    :
 63 |         let plane: ModelComponent
 64 |
 65 |         init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
    |         `- note: add @available attribute to enclosing initializer
 66 |             self.corner = corner
 67 |             self.alignment = alignment
    :
 71 |                 var phMat = PhysicallyBasedMaterial()
 72 |                 phMat.baseColor = .init(tint: .black)
 73 |                 phMat.emissiveColor = .init(color: color)
    |                       |- error: 'emissiveColor' is only available in macOS 12.0 or newer
    |                       `- note: add 'if #available' version check
 74 |                 phMat.emissiveIntensity = 2
 75 |                 mat = phMat
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:73:40: error: 'init(color:texture:)' is only available in macOS 12.0 or newer
 46 |     }
 47 |
 48 |     class Segment: Entity, HasModel {
    |           `- note: add @available attribute to enclosing class
 49 |
 50 |         // MARK: - Configuration & Initialization
    :
 63 |         let plane: ModelComponent
 64 |
 65 |         init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
    |         `- note: add @available attribute to enclosing initializer
 66 |             self.corner = corner
 67 |             self.alignment = alignment
    :
 71 |                 var phMat = PhysicallyBasedMaterial()
 72 |                 phMat.baseColor = .init(tint: .black)
 73 |                 phMat.emissiveColor = .init(color: color)
    |                                        |- error: 'init(color:texture:)' is only available in macOS 12.0 or newer
    |                                        `- note: add 'if #available' version check
 74 |                 phMat.emissiveIntensity = 2
 75 |                 mat = phMat
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:74:23: error: 'emissiveIntensity' is only available in macOS 12.0 or newer
 46 |     }
 47 |
 48 |     class Segment: Entity, HasModel {
    |           `- note: add @available attribute to enclosing class
 49 |
 50 |         // MARK: - Configuration & Initialization
    :
 63 |         let plane: ModelComponent
 64 |
 65 |         init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
    |         `- note: add @available attribute to enclosing initializer
 66 |             self.corner = corner
 67 |             self.alignment = alignment
    :
 72 |                 phMat.baseColor = .init(tint: .black)
 73 |                 phMat.emissiveColor = .init(color: color)
 74 |                 phMat.emissiveIntensity = 2
    |                       |- error: 'emissiveIntensity' is only available in macOS 12.0 or newer
    |                       `- note: add 'if #available' version check
 75 |                 mat = phMat
 76 |             } else {
[8/10] Compiling FocusEntity FocusEntity+Alignment.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Compiling FocusEntity FocusEntity+Classic.swift
[10/10] Emitting module FocusEntity
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:16:10: warning: FocusEntity: This package is only fully available with physical iOS devices
 14 |
 15 | #if os(macOS) || targetEnvironment(simulator)
 16 | #warning("FocusEntity: This package is only fully available with physical iOS devices")
    |          `- warning: FocusEntity: This package is only fully available with physical iOS devices
 17 | #endif
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:76:23: error: cannot find type 'ARPlaneAnchor' in scope
 74 |     func focusEntity(
 75 |         _ focusEntity: FocusEntity,
 76 |         planeChanged: ARPlaneAnchor?,
    |                       `- error: cannot find type 'ARPlaneAnchor' in scope
 77 |         oldPlane: ARPlaneAnchor?
 78 |     )
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:77:19: error: cannot find type 'ARPlaneAnchor' in scope
 75 |         _ focusEntity: FocusEntity,
 76 |         planeChanged: ARPlaneAnchor?,
 77 |         oldPlane: ARPlaneAnchor?
    |                   `- error: cannot find type 'ARPlaneAnchor' in scope
 78 |     )
 79 | }
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:64: error: cannot find type 'ARPlaneAnchor' in scope
 85 |         _ focusEntity: FocusEntity, trackingUpdated trackingState: FocusEntity.State, oldState: FocusEntity.State? = nil
 86 |     ) {}
 87 |     func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
    |                                                                `- error: cannot find type 'ARPlaneAnchor' in scope
 88 | }
 89 |
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:90: error: cannot find type 'ARPlaneAnchor' in scope
 85 |         _ focusEntity: FocusEntity, trackingUpdated trackingState: FocusEntity.State, oldState: FocusEntity.State? = nil
 86 |     ) {}
 87 |     func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
    |                                                                                          `- error: cannot find type 'ARPlaneAnchor' in scope
 88 | }
 89 |
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: error: could not infer type of color literal
 69 |
 70 |     /// Default color of FocusEntity
 71 |     public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
    |                                      |- error: could not infer type of color literal
    |                                      `- note: import AppKit to use 'NSColor' as the default color literal type
 72 |     /// Default style of FocusEntity, using the FocusEntityComponent.Style.classic with the color FocusEntityComponent.defaultColor.
 73 |     public static let classic = FocusEntityComponent(style: .classic(color: FocusEntityComponent.defaultColor))
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:34:14: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
 32 |         /// Default style of FocusEntity. Box that's open when not on a plane, closed when on one.
 33 |         /// - color: Color of the FocusEntity lines, default: `FocusEntityComponent.defaultColor`
 34 |         case classic(color: Material.Color = FocusEntityComponent.defaultColor)
    |              `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
 35 |         /// Style that changes based on state of the FocusEntity
 36 |         /// - onColor: Color when FocusEntity is tracking on a known surface.
AppKit.NSColor:1:12: note: type declared here
  1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
    |            `- note: type declared here
  2 |     public init()
  3 |     public init?(coder: NSCoder)
BUILD FAILURE 6.0 macosSpm