Build Information
Failed to build FocusEntity, reference 2.5.1 (5fa521
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 15:48:58 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/maxxfrazer/FocusEntity.git
Reference: 2.5.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/FocusEntity
* tag 2.5.1 -> FETCH_HEAD
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: $PWD/.spi.yml
SUCCESS checkout https://github.com/maxxfrazer/FocusEntity.git at 2.5.1
========================================
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": "focusentity",
"name": "FocusEntity",
"url": "https://github.com/maxxfrazer/FocusEntity.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FocusEntity",
"dependencies": [
]
}
]
}
Fetching https://github.com/maxxfrazer/FocusEntity.git
[1/661] Fetching focusentity
Fetched https://github.com/maxxfrazer/FocusEntity.git from cache (1.39s)
Creating working copy for https://github.com/maxxfrazer/FocusEntity.git
Working copy of https://github.com/maxxfrazer/FocusEntity.git resolved at 2.5.1 (5fa5211)
warning: '.resolve-product-dependencies': dependency 'focusentity' 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/maxxfrazer/FocusEntity.git
{
"dependencies" : [
],
"manifest_display_name" : "FocusEntity",
"name" : "FocusEntity",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "FocusEntity",
"targets" : [
"FocusEntity"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "FocusEntity",
"module_type" : "SwiftTarget",
"name" : "FocusEntity",
"path" : "Sources/FocusEntity",
"product_memberships" : [
"FocusEntity"
],
"sources" : [
"FocusEntity+Alignment.swift",
"FocusEntity+Classic.swift",
"FocusEntity+Colored.swift",
"FocusEntity+Segment.swift",
"FocusEntity.swift",
"FocusEntityComponent.swift",
"float4x4+Extension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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
[3/10] Compiling FocusEntity float4x4+Extension.swift
[4/10] Compiling FocusEntity FocusEntity+Colored.swift
[5/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 nonisolated 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 nonisolated 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 | )
[6/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))
[7/10] Compiling FocusEntity FocusEntity+Alignment.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling FocusEntity FocusEntity+Classic.swift
[9/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)
/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 nonisolated 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 nonisolated 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+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 {
BUILD FAILURE 6.0 macosSpm