This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 FocusEntity with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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 5fa5211 Merge pull request #46 from marcos-vinicius-mafei/main
Cloned https://github.com/maxxfrazer/FocusEntity.git
Revision (git rev-parse @):
5fa521172e447cbfa8c2fc1d6602d9d6bed202c7
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/maxxfrazer/FocusEntity.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/maxxfrazer/FocusEntity.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.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)
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:44:13: error: main actor-isolated default value in a nonisolated context
 42 |             offColor: MaterialColorParameter,
 43 |             nonTrackingColor: MaterialColorParameter,
 44 |             mesh: MeshResource = MeshResource.generatePlane(width: 0.1, depth: 0.1)
    |             `- error: main actor-isolated default value in a nonisolated context
 45 |         )
 46 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:76:23: warning: static property 'plane' is not concurrency-safe because non-'Sendable' type 'FocusEntityComponent' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public struct FocusEntityComponent: Component {
    |               `- note: consider making struct 'FocusEntityComponent' conform to the 'Sendable' protocol
 30 |     /// FocusEntityComponent Style, dictating how the FocusEntity will appear in different states
 31 |     public enum Style {
    :
 74 |     /// Alternative preset for FocusEntity, using FocusEntityComponent.Style.classic.colored,
 75 |     /// with green, orange and red for the onColor, offColor and nonTrackingColor respectively
 76 |     public static let plane = FocusEntityComponent(
    |                       |- warning: static property 'plane' is not concurrency-safe because non-'Sendable' type 'FocusEntityComponent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'plane' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |         style: .colored(
 78 |             onColor: .color(.green),
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:90:16: warning: static property 'defaultPlane' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 88 |     #endif
 89 |
 90 |     static var defaultPlane = MeshResource.generatePlane(
    |                |- warning: static property 'defaultPlane' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultPlane' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultPlane' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 91 |         width: 0.1, depth: 0.1
 92 |     )
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:90:16: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 88 |     #endif
 89 |
 90 |     static var defaultPlane = MeshResource.generatePlane(
    |                `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 91 |         width: 0.1, depth: 0.1
 92 |     )
[5/10] Compiling FocusEntity FocusEntity+Segment.swift
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
/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 {
[6/10] Compiling FocusEntity FocusEntity+Classic.swift
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
[7/10] Compiling FocusEntity FocusEntity+Alignment.swift
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/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
42 |         } else {
43 |             var mat = UnlitMaterial(color: .clear)
44 |             mat.baseColor = endColor
   |                 `- warning: 'baseColor' was deprecated in macOS 12.0: use `color` property instead
45 |             mat.tintColor = .white.withAlphaComponent(0.9999)
46 |             modelMaterial = mat
/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
43 |             var mat = UnlitMaterial(color: .clear)
44 |             mat.baseColor = endColor
45 |             mat.tintColor = .white.withAlphaComponent(0.9999)
   |                 `- warning: 'tintColor' was deprecated in macOS 12.0: use `color` property instead
46 |             modelMaterial = mat
47 |         }
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
[9/10] Emitting module FocusEntity
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
/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)
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:44:13: error: main actor-isolated default value in a nonisolated context
 42 |             offColor: MaterialColorParameter,
 43 |             nonTrackingColor: MaterialColorParameter,
 44 |             mesh: MeshResource = MeshResource.generatePlane(width: 0.1, depth: 0.1)
    |             `- error: main actor-isolated default value in a nonisolated context
 45 |         )
 46 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:76:23: warning: static property 'plane' is not concurrency-safe because non-'Sendable' type 'FocusEntityComponent' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public struct FocusEntityComponent: Component {
    |               `- note: consider making struct 'FocusEntityComponent' conform to the 'Sendable' protocol
 30 |     /// FocusEntityComponent Style, dictating how the FocusEntity will appear in different states
 31 |     public enum Style {
    :
 74 |     /// Alternative preset for FocusEntity, using FocusEntityComponent.Style.classic.colored,
 75 |     /// with green, orange and red for the onColor, offColor and nonTrackingColor respectively
 76 |     public static let plane = FocusEntityComponent(
    |                       |- warning: static property 'plane' is not concurrency-safe because non-'Sendable' type 'FocusEntityComponent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'plane' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |         style: .colored(
 78 |             onColor: .color(.green),
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:90:16: warning: static property 'defaultPlane' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 88 |     #endif
 89 |
 90 |     static var defaultPlane = MeshResource.generatePlane(
    |                |- warning: static property 'defaultPlane' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultPlane' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultPlane' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 91 |         width: 0.1, depth: 0.1
 92 |     )
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntityComponent.swift:90:16: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 88 |     #endif
 89 |
 90 |     static var defaultPlane = MeshResource.generatePlane(
    |                `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 91 |         width: 0.1, depth: 0.1
 92 |     )
[10/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 |
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
/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/FocusEntity.swift:29:30: warning: main actor-isolated subscript 'subscript(_:)' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 27 |     var focus: FocusEntityComponent {
 28 |         get { self.components[FocusEntityComponent.self] ?? .classic }
 29 |         set { self.components[FocusEntityComponent.self] = newValue }
    |                              `- warning: main actor-isolated subscript 'subscript(_:)' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 30 |     }
 31 |     var isOpen: Bool {
RealityFoundation.Entity:5:27: note: mutation of this subscript is only permitted within the actor
 3 |     @MainActor @preconcurrency public struct ComponentSet {
 4 |         @MainActor public subscript<T>(componentType: T.Type) -> T? where T : Component { get set }
 5 |         @MainActor public subscript(componentType: any Component.Type) -> (any Component)? { get set }
   |                           `- note: mutation of this subscript is only permitted within the actor
 6 |         @MainActor public func set<T>(_ component: T) where T : Component
 7 |         @MainActor public func set(_ components: [any Component])
/Users/admin/builder/spi-builder-workspace/Sources/FocusEntity/FocusEntity.swift:29:20: warning: main actor-isolated property 'components' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 27 |     var focus: FocusEntityComponent {
 28 |         get { self.components[FocusEntityComponent.self] ?? .classic }
 29 |         set { self.components[FocusEntityComponent.self] = newValue }
    |                    `- warning: main actor-isolated property 'components' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 30 |     }
 31 |     var isOpen: Bool {
RealityFoundation.Entity:4:27: note: mutation of this property is only permitted within the actor
 2 | @MainActor @preconcurrency open class Entity : HasHierarchy, HasSynchronization, HasTransform, Sendable {
 3 |     @MainActor public var __coreEntity: __EntityRef { get }
 4 |     @MainActor public var components: Entity.ComponentSet { get set }
   |                           `- note: mutation of this property is only permitted within the actor
 5 |     @MainActor public var scene: Scene? { get }
 6 |     @MainActor public var name: String { get set }
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.