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 main (3e08b2), with Swift 5.10 for macOS (SPM) on 26 Jun 2025 23:55:24 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/FocusEntity
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/maxxfrazer/FocusEntity.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
[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
    public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
                                     ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: note: import AppKit to use 'NSColor' as the default color literal type
    public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
                                     ^
/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
        case classic(color: Material.Color = FocusEntityComponent.defaultColor)
             ^
AppKit.NSColor:1:12: note: type declared here
open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
           ^
[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
#warning("FocusEntity: This package is only fully available with physical iOS devices")
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:76:23: error: cannot find type 'ARPlaneAnchor' in scope
        planeChanged: ARPlaneAnchor?,
                      ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:77:19: error: cannot find type 'ARPlaneAnchor' in scope
        oldPlane: ARPlaneAnchor?
                  ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:64: error: cannot find type 'ARPlaneAnchor' in scope
    func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
                                                               ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:90: error: cannot find type 'ARPlaneAnchor' in scope
    func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
                                                                                         ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: error: could not infer type of color literal
    public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
                                     ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: note: import AppKit to use 'NSColor' as the default color literal type
    public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
                                     ^
[6/10] Compiling FocusEntity FocusEntity+Colored.swift
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Colored.swift:44:17: warning: 'baseColor' was deprecated in macOS 12.0: use `color` property instead
            mat.baseColor = endColor
                ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Colored.swift:45:17: warning: 'tintColor' was deprecated in macOS 12.0: use `color` property instead
            mat.tintColor = .white.withAlphaComponent(0.9999)
                ^
[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
                var phMat = PhysicallyBasedMaterial()
                            ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:71:29: note: add 'if #available' version check
                var phMat = PhysicallyBasedMaterial()
                            ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:65:9: note: add @available attribute to enclosing initializer
        init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:48:11: note: add @available attribute to enclosing class
    class Segment: Entity, HasModel {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:72:23: error: 'baseColor' is only available in macOS 12.0 or newer
                phMat.baseColor = .init(tint: .black)
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:72:23: note: add 'if #available' version check
                phMat.baseColor = .init(tint: .black)
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:65:9: note: add @available attribute to enclosing initializer
        init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:48:11: note: add @available attribute to enclosing class
    class Segment: Entity, HasModel {
          ^
/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
                phMat.baseColor = .init(tint: .black)
                                   ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:72:36: note: add 'if #available' version check
                phMat.baseColor = .init(tint: .black)
                                   ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:65:9: note: add @available attribute to enclosing initializer
        init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:48:11: note: add @available attribute to enclosing class
    class Segment: Entity, HasModel {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:73:23: error: 'emissiveColor' is only available in macOS 12.0 or newer
                phMat.emissiveColor = .init(color: color)
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:73:23: note: add 'if #available' version check
                phMat.emissiveColor = .init(color: color)
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:65:9: note: add @available attribute to enclosing initializer
        init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:48:11: note: add @available attribute to enclosing class
    class Segment: Entity, HasModel {
          ^
/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
                phMat.emissiveColor = .init(color: color)
                                       ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:73:40: note: add 'if #available' version check
                phMat.emissiveColor = .init(color: color)
                                       ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:65:9: note: add @available attribute to enclosing initializer
        init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:48:11: note: add @available attribute to enclosing class
    class Segment: Entity, HasModel {
          ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:74:23: error: 'emissiveIntensity' is only available in macOS 12.0 or newer
                phMat.emissiveIntensity = 2
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:74:23: note: add 'if #available' version check
                phMat.emissiveIntensity = 2
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:65:9: note: add @available attribute to enclosing initializer
        init(name: String, corner: Corner, alignment: Alignment, color: Material.Color) {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity+Segment.swift:48:11: note: add @available attribute to enclosing class
    class Segment: Entity, HasModel {
          ^
[8/10] Compiling FocusEntity FocusEntity+Classic.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Compiling FocusEntity FocusEntity+Alignment.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
#warning("FocusEntity: This package is only fully available with physical iOS devices")
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:76:23: error: cannot find type 'ARPlaneAnchor' in scope
        planeChanged: ARPlaneAnchor?,
                      ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:77:19: error: cannot find type 'ARPlaneAnchor' in scope
        oldPlane: ARPlaneAnchor?
                  ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:64: error: cannot find type 'ARPlaneAnchor' in scope
    func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
                                                               ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:87:90: error: cannot find type 'ARPlaneAnchor' in scope
    func focusEntity(_ focusEntity: FocusEntity, planeChanged: ARPlaneAnchor?, oldPlane: ARPlaneAnchor?) {}
                                                                                         ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: error: could not infer type of color literal
    public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
                                     ^
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:71:38: note: import AppKit to use 'NSColor' as the default color literal type
    public static let defaultColor = #colorLiteral(red: 1, green: 0.8, blue: 0, alpha: 1)
                                     ^
/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
        case classic(color: Material.Color = FocusEntityComponent.defaultColor)
             ^
AppKit.NSColor:1:12: note: type declared here
open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
           ^
error: fatalError
BUILD FAILURE 5.10 macosSpm