Build Information
Failed to build SwiftGLTF, reference main (63ef2e), with Swift 6.4 for tvOS using Xcode 27.0 on 9 Oct 2026 05:33:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme SwiftGLTF-Package -destination generic/platform=tvOSBuild Log
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:45:28: error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
33 | }
34 |
35 | public func generateRootEntity() throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
36 | let rootEntity = Entity()
37 | // 'scenes' is optional in glTF; with none there is nothing to show.
:
43 | .map { try generateEntity(from: $0) }
44 | .forEach {
45 | rootEntity.addChild($0)
| |- error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
46 | }
47 | return rootEntity
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:51:22: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
| |- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
52 |
53 | if let mesh = try node.mesh?.resolve(in: document) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:54:31: error: 'ModelComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
53 | if let mesh = try node.mesh?.resolve(in: document) {
54 | entity.components[ModelComponent.self] = try generateMeshResource(from: mesh)
| |- error: 'ModelComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
55 | }
56 | if let cameraIndex = node.camera {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:60:33: error: 'PerspectiveCameraComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
58 | switch camera.type {
59 | case .perspective:
60 | var component = PerspectiveCameraComponent()
| |- error: 'PerspectiveCameraComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
61 | if let perspective = camera.perspective {
62 | component.fieldOfViewInDegrees = perspective.yfov * 180 / .pi
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:78:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
76 | }
77 | if let matrix = node.matrix {
78 | entity.transform.matrix = matrix
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
79 | }
80 | if let translation = node.translation {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:81:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
79 | }
80 | if let translation = node.translation {
81 | entity.transform.translation = translation
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
82 | }
83 | if let rotation = node.rotation {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:84:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
82 | }
83 | if let rotation = node.rotation {
84 | entity.transform.rotation = simd_quatf(vector: rotation)
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
85 | }
86 | if let scale = node.scale {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:87:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
85 | }
86 | if let scale = node.scale {
87 | entity.transform.scale = scale
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
88 | }
89 | try node.children.map { try $0.resolve(in: document) }.map { try generateEntity(from: $0) }.forEach {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:90:20: error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
88 | }
89 | try node.children.map { try $0.resolve(in: document) }.map { try generateEntity(from: $0) }.forEach {
90 | entity.addChild($0)
| |- error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
91 | }
92 | return entity
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:113:35: error: 'DirectionalLightComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
111 | switch light.type {
112 | case .directional:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
| |- error: 'DirectionalLightComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:113:35: error: 'init(color:intensity:)' is unavailable in tvOS
111 | switch light.type {
112 | case .directional:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
| `- error: 'init(color:intensity:)' is unavailable in tvOS
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
RealityKit.DirectionalLightComponent.init:8:10: note: 'init(color:intensity:)' has been explicitly marked unavailable here
6 | @available(tvOS, unavailable)
7 | @available(watchOS, unavailable)
8 | public init(color: DirectionalLightComponent.Color = .white, intensity: Float = 2145.7078)}
| `- note: 'init(color:intensity:)' has been explicitly marked unavailable here
9 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:115:35: error: 'PointLightComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
| |- error: 'PointLightComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
116 | case .spot:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:115:35: error: 'init(color:intensity:attenuationRadius:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
| |- error: 'init(color:intensity:attenuationRadius:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
116 | case .spot:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:119:35: error: 'SpotLightComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
118 | let outer = (light.spot?.outerConeAngle ?? .pi / 4) * 180 / .pi
119 | entity.components.set(SpotLightComponent(
| |- error: 'SpotLightComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
120 | color: color,
121 | intensity: light.intensity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:119:35: error: 'init(color:intensity:innerAngleInDegrees:outerAngleInDegrees:attenuationRadius:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
118 | let outer = (light.spot?.outerConeAngle ?? .pi / 4) * 180 / .pi
119 | entity.components.set(SpotLightComponent(
| |- error: 'init(color:intensity:innerAngleInDegrees:outerAngleInDegrees:attenuationRadius:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
120 | color: color,
121 | intensity: light.intensity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:129:27: error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
| |- error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
130 | var materials: [RealityKit.Material] = []
131 | for (index, primitive) in mesh.primitives.enumerated() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:130:36: error: 'Material' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
| |- error: 'Material' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
131 | for (index, primitive) in mesh.primitives.enumerated() {
132 | var descriptor = try meshDescriptor(from: primitive)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:137:32: error: 'MeshResource' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
:
135 | materials.append(try reMaterial(for: primitive))
136 | }
137 | let meshResource = try MeshResource.generate(from: descriptors)
| |- error: 'MeshResource' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
138 | return ModelComponent(mesh: meshResource, materials: materials)
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:137:45: error: 'generate(from:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
:
135 | materials.append(try reMaterial(for: primitive))
136 | }
137 | let meshResource = try MeshResource.generate(from: descriptors)
| |- error: 'generate(from:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
138 | return ModelComponent(mesh: meshResource, materials: materials)
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:138:16: error: 'ModelComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
:
136 | }
137 | let meshResource = try MeshResource.generate(from: descriptors)
138 | return ModelComponent(mesh: meshResource, materials: materials)
| |- error: 'ModelComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
139 | }
140 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:143:30: error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
| |- error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:145:28: error: 'positions' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
| |- error: 'positions' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:145:40: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:145:52: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:148:28: error: 'normals' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
148 | meshDescriptor.normals = MeshBuffers.Normals(normals)
| |- error: 'normals' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:148:38: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
148 | meshDescriptor.normals = MeshBuffers.Normals(normals)
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:148:50: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
148 | meshDescriptor.normals = MeshBuffers.Normals(normals)
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:151:28: error: 'tangents' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
151 | meshDescriptor.tangents = MeshBuffers.Tangents(tangents.map(\.xyz))
| |- error: 'tangents' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:151:39: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
151 | meshDescriptor.tangents = MeshBuffers.Tangents(tangents.map(\.xyz))
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:151:51: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
151 | meshDescriptor.tangents = MeshBuffers.Tangents(tangents.map(\.xyz))
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:154:28: error: 'textureCoordinates' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
154 | meshDescriptor.textureCoordinates = MeshBuffers.TextureCoordinates(textureCoordinates)
| |- error: 'textureCoordinates' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
155 | }
156 | if primitive.attributes[.COLOR_0] != nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:154:49: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
154 | meshDescriptor.textureCoordinates = MeshBuffers.TextureCoordinates(textureCoordinates)
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
155 | }
156 | if primitive.attributes[.COLOR_0] != nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:154:61: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
154 | meshDescriptor.textureCoordinates = MeshBuffers.TextureCoordinates(textureCoordinates)
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
155 | }
156 | if primitive.attributes[.COLOR_0] != nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:180:16: error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
173 | }
174 |
175 | private func reMaterial(for primitive: Mesh.Primitive) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
176 | // glTF: a primitive with no material uses the default material.
177 | if let material = try primitive.material?.resolve(in: document) {
178 | return try makeMaterial(from: material)
179 | }
180 | return PhysicallyBasedMaterial()
| |- error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:220:28: error: 'TextureResource' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
218 | image = try adjust(image)
219 | }
220 | let resource = try TextureResource(image: image, options: .init(semantic: semantic))
| |- error: 'TextureResource' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
221 | return MaterialParameters.Texture(resource)
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:220:28: error: 'init(image:withName:options:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
218 | image = try adjust(image)
219 | }
220 | let resource = try TextureResource(image: image, options: .init(semantic: semantic))
| |- error: 'init(image:withName:options:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
221 | return MaterialParameters.Texture(resource)
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:221:16: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
219 | }
220 | let resource = try TextureResource(image: image, options: .init(semantic: semantic))
221 | return MaterialParameters.Texture(resource)
| |- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
222 | }
223 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:226:25: error: 'UnlitMaterial' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
| |- error: 'UnlitMaterial' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
227 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
228 | var baseColorTexture: MaterialParameters.Texture?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:228:39: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
227 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
228 | var baseColorTexture: MaterialParameters.Texture?
| |- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
229 | if let textureInfo = pbrMetallicRoughness.baseColorTexture {
230 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:232:23: error: 'color' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
230 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
231 | }
232 | unlit.color = .init(tint: color(pbrMetallicRoughness.baseColorFactor), texture: baseColorTexture)
| |- error: 'color' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
233 | }
234 | return unlit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:232:32: error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
230 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
231 | }
232 | unlit.color = .init(tint: color(pbrMetallicRoughness.baseColorFactor), texture: baseColorTexture)
| |- error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
233 | }
234 | return unlit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:237:26: error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
235 | }
236 |
237 | var reMaterial = PhysicallyBasedMaterial()
| |- error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
238 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
239 | let rgba = pbrMetallicRoughness.baseColorFactor
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:240:35: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
238 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
239 | let rgba = pbrMetallicRoughness.baseColorFactor
240 | var baseColorTexture: MaterialParameters.Texture?
| |- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
241 | if let textureInfo = pbrMetallicRoughness.baseColorTexture {
242 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:245:24: error: 'baseColor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
243 | }
244 | let tint = color(rgba)
245 | reMaterial.baseColor = .init(tint: tint, texture: baseColorTexture)
| |- error: 'baseColor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
246 |
247 | // glTF packs roughness in G and metallic in B of one texture.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:245:37: error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
243 | }
244 | let tint = color(rgba)
245 | reMaterial.baseColor = .init(tint: tint, texture: baseColorTexture)
| |- error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
246 |
247 | // glTF packs roughness in G and metallic in B of one texture.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:251:28: error: 'roughness' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
249 | let roughness = try texture(from: mrTexture, semantic: .raw, channel: .green),
250 | let metallic = try texture(from: mrTexture, semantic: .raw, channel: .blue) {
251 | reMaterial.roughness = .init(scale: pbrMetallicRoughness.roughnessFactor, texture: roughness)
| |- error: 'roughness' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
252 | reMaterial.metallic = .init(scale: pbrMetallicRoughness.metallicFactor, texture: metallic)
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:252:28: error: 'metallic' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
250 | let metallic = try texture(from: mrTexture, semantic: .raw, channel: .blue) {
251 | reMaterial.roughness = .init(scale: pbrMetallicRoughness.roughnessFactor, texture: roughness)
252 | reMaterial.metallic = .init(scale: pbrMetallicRoughness.metallicFactor, texture: metallic)
| |- error: 'metallic' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
253 | }
254 | else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:255:28: error: 'roughness' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
253 | }
254 | else {
255 | reMaterial.roughness = .init(floatLiteral: pbrMetallicRoughness.roughnessFactor)
| |- error: 'roughness' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
256 | reMaterial.metallic = .init(floatLiteral: pbrMetallicRoughness.metallicFactor)
257 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:256:28: error: 'metallic' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
254 | else {
255 | reMaterial.roughness = .init(floatLiteral: pbrMetallicRoughness.roughnessFactor)
256 | reMaterial.metallic = .init(floatLiteral: pbrMetallicRoughness.metallicFactor)
| |- error: 'metallic' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
257 | }
258 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:269:28: error: 'normal' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
267 | adjust: scale == 1 ? nil : { try $0.normalScaled(by: scale) }
268 | ) {
269 | reMaterial.normal = .init(texture: normal)
| |- error: 'normal' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
270 | }
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:281:28: error: 'ambientOcclusion' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
279 | adjust: strength == 1 ? nil : { try $0.occlusionAdjusted(strength: strength) }
280 | ) {
281 | reMaterial.ambientOcclusion = .init(texture: occlusion)
| |- error: 'ambientOcclusion' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
282 | }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:293:24: error: 'emissiveColor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
291 | if let emissiveInfo = material.emissiveTexture,
292 | let emissive = try texture(from: emissiveInfo, semantic: .color, tint: emissiveTint) {
293 | reMaterial.emissiveColor = .init(texture: emissive)
| |- error: 'emissiveColor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
294 | reMaterial.emissiveIntensity = material.emissiveStrength // KHR_materials_emissive_strength
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:293:41: error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
291 | if let emissiveInfo = material.emissiveTexture,
292 | let emissive = try texture(from: emissiveInfo, semantic: .color, tint: emissiveTint) {
293 | reMaterial.emissiveColor = .init(texture: emissive)
| |- error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
294 | reMaterial.emissiveIntensity = material.emissiveStrength // KHR_materials_emissive_strength
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:294:24: error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
292 | let emissive = try texture(from: emissiveInfo, semantic: .color, tint: emissiveTint) {
293 | reMaterial.emissiveColor = .init(texture: emissive)
294 | reMaterial.emissiveIntensity = material.emissiveStrength // KHR_materials_emissive_strength
| |- error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
295 | }
296 | else if emissiveFactor != [0, 0, 0] {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:298:24: error: 'emissiveColor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
296 | else if emissiveFactor != [0, 0, 0] {
297 | let emissiveColor = color(SIMD4<Float>(emissiveFactor.x, emissiveFactor.y, emissiveFactor.z, 1))
298 | reMaterial.emissiveColor = .init(color: emissiveColor)
| |- error: 'emissiveColor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
299 | reMaterial.emissiveIntensity = material.emissiveStrength
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:298:41: error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
296 | else if emissiveFactor != [0, 0, 0] {
297 | let emissiveColor = color(SIMD4<Float>(emissiveFactor.x, emissiveFactor.y, emissiveFactor.z, 1))
298 | reMaterial.emissiveColor = .init(color: emissiveColor)
| |- error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
299 | reMaterial.emissiveIntensity = material.emissiveStrength
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:299:24: error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
297 | let emissiveColor = color(SIMD4<Float>(emissiveFactor.x, emissiveFactor.y, emissiveFactor.z, 1))
298 | reMaterial.emissiveColor = .init(color: emissiveColor)
299 | reMaterial.emissiveIntensity = material.emissiveStrength
| |- error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
300 | }
301 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:303:24: error: 'faceCulling' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
301 |
302 | if material.doubleSided ?? false {
303 | reMaterial.faceCulling = .none
| |- error: 'faceCulling' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
304 | }
305 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:308:24: error: 'blending' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
306 | switch material.alphaMode ?? .OPAQUE {
307 | case .OPAQUE:
308 | reMaterial.blending = .opaque
| |- error: 'blending' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
309 | case .MASK:
310 | reMaterial.opacityThreshold = material.alphaCutoff ?? 0.5
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:310:24: error: 'opacityThreshold' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
308 | reMaterial.blending = .opaque
309 | case .MASK:
310 | reMaterial.opacityThreshold = material.alphaCutoff ?? 0.5
| |- error: 'opacityThreshold' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
311 | case .BLEND:
312 | reMaterial.blending = .transparent(opacity: .init(floatLiteral: 1))
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/glb.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile glb.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile gltf+RealityKit.swift
SwiftCompile normal arm64 Compiling\ Scratch.swift,\ Skin.swift,\ Validation+Data.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Skin.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation+Data.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Scratch.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Skin.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Skin.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation+Data.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Validation+Data.swift
SwiftCompile normal arm64 Compiling\ Accessor+Values.swift,\ AccessorReader.swift,\ Animation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Accessor+Values.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/AccessorReader.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Animation.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Accessor+Values.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Accessor+Values.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/AccessorReader.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AccessorReader.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Animation.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Animation.swift
SwiftCompile normal arm64 Compiling\ BufferViewDecoder.swift,\ CGImage+ColorMatrix.swift,\ CollectionScanner.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/BufferViewDecoder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CGImage+ColorMatrix.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CollectionScanner.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/BufferViewDecoder.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BufferViewDecoder.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CGImage+ColorMatrix.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CGImage+ColorMatrix.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CollectionScanner.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CollectionScanner.swift
SwiftCompile normal arm64 Compiling\ Encoding.swift,\ Extensions+EXTTextureWebP.swift,\ Extensions+KHRLightsPunctual.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Encoding.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+EXTTextureWebP.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRLightsPunctual.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Encoding.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Encoding.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+EXTTextureWebP.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+EXTTextureWebP.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRLightsPunctual.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRLightsPunctual.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-10-09 01:33:02.242 xcodebuild[757:4781] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftGLTF (in target 'SwiftGLTF' from project 'SwiftGLTF')
Building workspace SwiftGLTF with scheme SwiftGLTF-Package
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
swift-argument-parser: https://github.com/apple/swift-argument-parser @ 1.8.2
SwiftGLTF: /Users/admin/builder/spi-builder-workspace
GoldenImage: https://github.com/schwa/GoldenImage.git @ main (f8d2f98)
resolved source packages: swift-argument-parser, SwiftGLTF, GoldenImage
2026-10-09 01:33:12.158 xcodebuild[944:5610] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
{
"identity" : "goldenimage",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/schwa/GoldenImage.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
}
],
"manifest_display_name" : "SwiftGLTF",
"name" : "SwiftGLTF",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "18.0"
},
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "maccatalyst",
"version" : "18.0"
}
],
"products" : [
{
"name" : "SwiftGLTF",
"targets" : [
"SwiftGLTF"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "gltf-render",
"targets" : [
"gltf-render"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "gltf_render",
"module_type" : "SwiftTarget",
"name" : "gltf-render",
"path" : "Sources/gltf-render",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"gltf-render"
],
"sources" : [
"Commands.swift",
"GLTFRender.swift"
],
"target_dependencies" : [
"SwiftGLTF"
],
"type" : "executable"
},
{
"c99name" : "SwiftGLTFTests",
"module_type" : "SwiftTarget",
"name" : "SwiftGLTFTests",
"path" : "Tests/SwiftGLTFTests",
"product_dependencies" : [
"GoldenImage"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/Box-byteStride.glb",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/Box.gltf",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/GoldenImages",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AccessorBoundsPrecisionTests.swift",
"AlphaModeTests.swift",
"AnimationTests.swift",
"AttributeSemanticTests.swift",
"BufferViewDecoderTests.swift",
"CameraTests.swift",
"ChannelExtractionTests.swift",
"CollectionScannerTests.swift",
"ContainerSendableTests.swift",
"ContainerWithDocumentTests.swift",
"CrashPathTests.swift",
"DataValidationTests.swift",
"EmissiveStrengthTests.swift",
"ErrorMessageTests.swift",
"ExtensionsTests.swift",
"GLTFTests.swift",
"GeneratorCoverageTests.swift",
"LightsPunctualTests.swift",
"LoaderErrorTests.swift",
"LosslessModelTests.swift",
"MaterialsUnlitTests.swift",
"MorphTargetTests.swift",
"NodeRotationTests.swift",
"NonIndexedPrimitiveTests.swift",
"NormalizedAccessorTests.swift",
"PercentEncodedURITests.swift",
"RealityKitAttributeReadingTests.swift",
"RealityKitRenderingTests.swift",
"SampleAssetsTests.swift",
"SamplerMappingTests.swift",
"SceneKitAttributeReadingTests.swift",
"SceneKitEmissiveFactorTests.swift",
"SceneKitRenderingTests.swift",
"SkinTests.swift",
"SparseAccessorTests.swift",
"SubObjectExtensionsTests.swift",
"TestSupport.swift",
"TextureInfoScaleTests.swift",
"TextureTransformTests.swift",
"ValidationCoverageTests.swift",
"ValidationTests.swift",
"VertexColorUVTests.swift",
"WriterCoverageTests.swift",
"WriterFidelityTests.swift",
"WriterTests.swift"
],
"target_dependencies" : [
"SwiftGLTF"
],
"type" : "test"
},
{
"c99name" : "SwiftGLTF",
"module_type" : "SwiftTarget",
"name" : "SwiftGLTF",
"path" : "Sources/SwiftGLTF",
"product_memberships" : [
"SwiftGLTF",
"gltf-render"
],
"sources" : [
"Accessor+Values.swift",
"AccessorReader.swift",
"Animation.swift",
"BufferViewDecoder.swift",
"CGImage+ColorMatrix.swift",
"CollectionScanner.swift",
"Encoding.swift",
"Extensions+EXTTextureWebP.swift",
"Extensions+KHRLightsPunctual.swift",
"Extensions+KHRMaterialsEmissiveStrength.swift",
"Extensions+KHRMaterialsIOR.swift",
"Extensions+KHRMaterialsSpecular.swift",
"Extensions+KHRMaterialsTransmission.swift",
"Extensions+KHRMaterialsUnlit.swift",
"Extensions+KHRMaterialsVolume.swift",
"Extensions+KHRTextureTransform.swift",
"Extensions.swift",
"MorphTargets.swift",
"Scratch.swift",
"Skin.swift",
"Validation+Data.swift",
"Validation.swift",
"Writer.swift",
"glb.swift",
"gltf+RealityKit.swift",
"gltf+SceneKit.swift",
"gltf.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
{
"workspace" : {
"name" : "SwiftGLTF",
"schemes" : [
"gltf-render",
"SwiftGLTF",
"SwiftGLTF-Package"
]
}
}
2026-10-09 01:33:14.556 xcodebuild[961:5741] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme SwiftGLTF-Package -destination generic/platform=tvOS
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme SwiftGLTF-Package -destination generic/platform=tvOS
Resolve Package Graph
Resolved source packages:
SwiftGLTF: /Users/admin/builder/spi-builder-workspace
GoldenImage: https://github.com/schwa/GoldenImage.git @ main (f8d2f98)
swift-argument-parser: https://github.com/apple/swift-argument-parser @ 1.8.2
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (6 targets)
Target 'gltf-render-product' in project 'SwiftGLTF'
➜ Explicit dependency on target 'SwiftGLTF' in project 'SwiftGLTF'
➜ Explicit dependency on target 'ArgumentParser-product' in project 'swift-argument-parser'
Target 'ArgumentParser-product' in project 'swift-argument-parser'
➜ Explicit dependency on target 'ArgumentParser' in project 'swift-argument-parser'
➜ Explicit dependency on target 'ArgumentParserToolInfo' in project 'swift-argument-parser'
Target 'ArgumentParser' in project 'swift-argument-parser'
➜ Explicit dependency on target 'ArgumentParserToolInfo' in project 'swift-argument-parser'
Target 'ArgumentParserToolInfo' in project 'swift-argument-parser' (no dependencies)
Target 'SwiftGLTF-product' in project 'SwiftGLTF'
➜ Explicit dependency on target 'SwiftGLTF' in project 'SwiftGLTF'
Target 'SwiftGLTF' in project 'SwiftGLTF' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044509235ffd515576fb835ffc8f67461e5.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044509235ffd515576fb835ffc8f67461e5.sdkstatcache
SwiftDriver SwiftGLTF normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name SwiftGLTF -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos18.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044509235ffd515576fb835ffc8f67461e5.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ Extensions+KHRMaterialsTransmission.swift,\ Extensions+KHRMaterialsUnlit.swift,\ Extensions+KHRMaterialsVolume.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsTransmission.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsUnlit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsVolume.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsTransmission.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRMaterialsTransmission.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsUnlit.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRMaterialsUnlit.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsVolume.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRMaterialsVolume.swift
SwiftCompile normal arm64 Compiling\ Accessor+Values.swift,\ AccessorReader.swift,\ Animation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Accessor+Values.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/AccessorReader.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Animation.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Accessor+Values.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Accessor+Values.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/AccessorReader.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AccessorReader.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Animation.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Animation.swift
SwiftCompile normal arm64 Compiling\ Scratch.swift,\ Skin.swift,\ Validation+Data.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Skin.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation+Data.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Scratch.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Skin.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Skin.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation+Data.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Validation+Data.swift
SwiftCompile normal arm64 Compiling\ glb.swift,\ gltf+RealityKit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/glb.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:35:48: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
33 | }
34 |
35 | public func generateRootEntity() throws -> Entity {
| | `- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
36 | let rootEntity = Entity()
37 | // 'scenes' is optional in glTF; with none there is nothing to show.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:50:52: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| | `- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:95:48: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| | `- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:128:58: error: 'ModelComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| | `- error: 'ModelComponent' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:141:75: error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| | `- error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:175:81: error: 'Material' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
173 | }
174 |
175 | private func reMaterial(for primitive: Mesh.Primitive) throws -> RealityKit.Material {
| | `- error: 'Material' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
176 | // glTF: a primitive with no material uses the default material.
177 | if let material = try primitive.material?.resolve(in: document) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:191:19: error: 'TextureResource' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
| `- error: 'TextureResource' is only available in tvOS 26.0 or newer
192 | channel: TextureChannel? = nil,
193 | tint: SIMD3<Float>? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:195:17: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
193 | tint: SIMD3<Float>? = nil,
194 | adjust: ((CGImage) throws -> CGImage)? = nil
195 | ) throws -> MaterialParameters.Texture? {
| `- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
196 | if info.textureTransform != nil {
197 | // PhysicallyBasedMaterial has no public per-texture UV transform.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:224:69: error: 'Material' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| | `- error: 'Material' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:36:26: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
33 | }
34 |
35 | public func generateRootEntity() throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
36 | let rootEntity = Entity()
| |- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
37 | // 'scenes' is optional in glTF; with none there is nothing to show.
38 | guard let scene = try document.scene.map({ try $0.resolve(in: document) }) ?? document.scenes.first else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:45:28: error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
33 | }
34 |
35 | public func generateRootEntity() throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
36 | let rootEntity = Entity()
37 | // 'scenes' is optional in glTF; with none there is nothing to show.
:
43 | .map { try generateEntity(from: $0) }
44 | .forEach {
45 | rootEntity.addChild($0)
| |- error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
46 | }
47 | return rootEntity
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:51:22: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
| |- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
52 |
53 | if let mesh = try node.mesh?.resolve(in: document) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:54:31: error: 'ModelComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
53 | if let mesh = try node.mesh?.resolve(in: document) {
54 | entity.components[ModelComponent.self] = try generateMeshResource(from: mesh)
| |- error: 'ModelComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
55 | }
56 | if let cameraIndex = node.camera {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:60:33: error: 'PerspectiveCameraComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
58 | switch camera.type {
59 | case .perspective:
60 | var component = PerspectiveCameraComponent()
| |- error: 'PerspectiveCameraComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
61 | if let perspective = camera.perspective {
62 | component.fieldOfViewInDegrees = perspective.yfov * 180 / .pi
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:78:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
76 | }
77 | if let matrix = node.matrix {
78 | entity.transform.matrix = matrix
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
79 | }
80 | if let translation = node.translation {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:81:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
79 | }
80 | if let translation = node.translation {
81 | entity.transform.translation = translation
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
82 | }
83 | if let rotation = node.rotation {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:84:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
82 | }
83 | if let rotation = node.rotation {
84 | entity.transform.rotation = simd_quatf(vector: rotation)
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
85 | }
86 | if let scale = node.scale {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:87:20: error: 'transform' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
85 | }
86 | if let scale = node.scale {
87 | entity.transform.scale = scale
| |- error: 'transform' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
88 | }
89 | try node.children.map { try $0.resolve(in: document) }.map { try generateEntity(from: $0) }.forEach {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:90:20: error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
:
88 | }
89 | try node.children.map { try $0.resolve(in: document) }.map { try generateEntity(from: $0) }.forEach {
90 | entity.addChild($0)
| |- error: 'addChild(_:preservingWorldTransform:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
91 | }
92 | return entity
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:113:35: error: 'DirectionalLightComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
111 | switch light.type {
112 | case .directional:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
| |- error: 'DirectionalLightComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:113:35: error: 'init(color:intensity:)' is unavailable in tvOS
111 | switch light.type {
112 | case .directional:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
| `- error: 'init(color:intensity:)' is unavailable in tvOS
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
RealityKit.DirectionalLightComponent.init:8:10: note: 'init(color:intensity:)' has been explicitly marked unavailable here
6 | @available(tvOS, unavailable)
7 | @available(watchOS, unavailable)
8 | public init(color: DirectionalLightComponent.Color = .white, intensity: Float = 2145.7078)}
| `- note: 'init(color:intensity:)' has been explicitly marked unavailable here
9 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:115:35: error: 'PointLightComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
| |- error: 'PointLightComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
116 | case .spot:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:115:35: error: 'init(color:intensity:attenuationRadius:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
113 | entity.components.set(DirectionalLightComponent(color: color, intensity: light.intensity))
114 | case .point:
115 | entity.components.set(PointLightComponent(color: color, intensity: light.intensity))
| |- error: 'init(color:intensity:attenuationRadius:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
116 | case .spot:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:119:35: error: 'SpotLightComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
118 | let outer = (light.spot?.outerConeAngle ?? .pi / 4) * 180 / .pi
119 | entity.components.set(SpotLightComponent(
| |- error: 'SpotLightComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
120 | color: color,
121 | intensity: light.intensity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:119:35: error: 'init(color:intensity:innerAngleInDegrees:outerAngleInDegrees:attenuationRadius:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
:
117 | let inner = (light.spot?.innerConeAngle ?? 0) * 180 / .pi
118 | let outer = (light.spot?.outerConeAngle ?? .pi / 4) * 180 / .pi
119 | entity.components.set(SpotLightComponent(
| |- error: 'init(color:intensity:innerAngleInDegrees:outerAngleInDegrees:attenuationRadius:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
120 | color: color,
121 | intensity: light.intensity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:129:27: error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
| |- error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
130 | var materials: [RealityKit.Material] = []
131 | for (index, primitive) in mesh.primitives.enumerated() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:130:36: error: 'Material' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
| |- error: 'Material' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
131 | for (index, primitive) in mesh.primitives.enumerated() {
132 | var descriptor = try meshDescriptor(from: primitive)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:137:32: error: 'MeshResource' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
:
135 | materials.append(try reMaterial(for: primitive))
136 | }
137 | let meshResource = try MeshResource.generate(from: descriptors)
| |- error: 'MeshResource' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
138 | return ModelComponent(mesh: meshResource, materials: materials)
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:137:45: error: 'generate(from:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
:
135 | materials.append(try reMaterial(for: primitive))
136 | }
137 | let meshResource = try MeshResource.generate(from: descriptors)
| |- error: 'generate(from:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
138 | return ModelComponent(mesh: meshResource, materials: materials)
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:138:16: error: 'ModelComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
:
136 | }
137 | let meshResource = try MeshResource.generate(from: descriptors)
138 | return ModelComponent(mesh: meshResource, materials: materials)
| |- error: 'ModelComponent' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
139 | }
140 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:143:30: error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
| |- error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:145:28: error: 'positions' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
| |- error: 'positions' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:145:40: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:145:52: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
144 | if let positions = try primitive.value(semantic: .POSITION, type: SIMD3<Float>.self, in: container) {
145 | meshDescriptor.positions = MeshBuffers.Positions(positions)
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:148:28: error: 'normals' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
148 | meshDescriptor.normals = MeshBuffers.Normals(normals)
| |- error: 'normals' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:148:38: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
148 | meshDescriptor.normals = MeshBuffers.Normals(normals)
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:148:50: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
146 | }
147 | if let normals = try primitive.value(semantic: .NORMAL, type: SIMD3<Float>.self, in: container) {
148 | meshDescriptor.normals = MeshBuffers.Normals(normals)
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:151:28: error: 'tangents' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
151 | meshDescriptor.tangents = MeshBuffers.Tangents(tangents.map(\.xyz))
| |- error: 'tangents' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:151:39: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
151 | meshDescriptor.tangents = MeshBuffers.Tangents(tangents.map(\.xyz))
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:151:51: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
149 | }
150 | if let tangents = try primitive.value(semantic: .TANGENT, type: SIMD4<Float>.self, in: container) {
151 | meshDescriptor.tangents = MeshBuffers.Tangents(tangents.map(\.xyz))
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:154:28: error: 'textureCoordinates' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
154 | meshDescriptor.textureCoordinates = MeshBuffers.TextureCoordinates(textureCoordinates)
| |- error: 'textureCoordinates' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
155 | }
156 | if primitive.attributes[.COLOR_0] != nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:154:49: error: 'MeshBuffers' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
154 | meshDescriptor.textureCoordinates = MeshBuffers.TextureCoordinates(textureCoordinates)
| |- error: 'MeshBuffers' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
155 | }
156 | if primitive.attributes[.COLOR_0] != nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:154:61: error: 'init(_:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
:
152 | }
153 | if let textureCoordinates = try primitive.value(semantic: .TEXCOORD_0, type: SIMD2<Float>.self, in: container) {
154 | meshDescriptor.textureCoordinates = MeshBuffers.TextureCoordinates(textureCoordinates)
| |- error: 'init(_:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
155 | }
156 | if primitive.attributes[.COLOR_0] != nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:180:16: error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
173 | }
174 |
175 | private func reMaterial(for primitive: Mesh.Primitive) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
176 | // glTF: a primitive with no material uses the default material.
177 | if let material = try primitive.material?.resolve(in: document) {
178 | return try makeMaterial(from: material)
179 | }
180 | return PhysicallyBasedMaterial()
| |- error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:220:28: error: 'TextureResource' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
218 | image = try adjust(image)
219 | }
220 | let resource = try TextureResource(image: image, options: .init(semantic: semantic))
| |- error: 'TextureResource' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
221 | return MaterialParameters.Texture(resource)
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:220:28: error: 'init(image:withName:options:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
218 | image = try adjust(image)
219 | }
220 | let resource = try TextureResource(image: image, options: .init(semantic: semantic))
| |- error: 'init(image:withName:options:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
221 | return MaterialParameters.Texture(resource)
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:221:16: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
219 | }
220 | let resource = try TextureResource(image: image, options: .init(semantic: semantic))
221 | return MaterialParameters.Texture(resource)
| |- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
222 | }
223 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:226:25: error: 'UnlitMaterial' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
| |- error: 'UnlitMaterial' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
227 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
228 | var baseColorTexture: MaterialParameters.Texture?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:228:39: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
227 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
228 | var baseColorTexture: MaterialParameters.Texture?
| |- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
229 | if let textureInfo = pbrMetallicRoughness.baseColorTexture {
230 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:232:23: error: 'color' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
230 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
231 | }
232 | unlit.color = .init(tint: color(pbrMetallicRoughness.baseColorFactor), texture: baseColorTexture)
| |- error: 'color' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
233 | }
234 | return unlit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:232:32: error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
230 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
231 | }
232 | unlit.color = .init(tint: color(pbrMetallicRoughness.baseColorFactor), texture: baseColorTexture)
| |- error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
233 | }
234 | return unlit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:237:26: error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
235 | }
236 |
237 | var reMaterial = PhysicallyBasedMaterial()
| |- error: 'PhysicallyBasedMaterial' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
238 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
239 | let rgba = pbrMetallicRoughness.baseColorFactor
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:240:35: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
238 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
239 | let rgba = pbrMetallicRoughness.baseColorFactor
240 | var baseColorTexture: MaterialParameters.Texture?
| |- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
241 | if let textureInfo = pbrMetallicRoughness.baseColorTexture {
242 | baseColorTexture = try texture(from: textureInfo, semantic: .color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:245:24: error: 'baseColor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
243 | }
244 | let tint = color(rgba)
245 | reMaterial.baseColor = .init(tint: tint, texture: baseColorTexture)
| |- error: 'baseColor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
246 |
247 | // glTF packs roughness in G and metallic in B of one texture.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:245:37: error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
243 | }
244 | let tint = color(rgba)
245 | reMaterial.baseColor = .init(tint: tint, texture: baseColorTexture)
| |- error: 'init(tint:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
246 |
247 | // glTF packs roughness in G and metallic in B of one texture.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:251:28: error: 'roughness' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
249 | let roughness = try texture(from: mrTexture, semantic: .raw, channel: .green),
250 | let metallic = try texture(from: mrTexture, semantic: .raw, channel: .blue) {
251 | reMaterial.roughness = .init(scale: pbrMetallicRoughness.roughnessFactor, texture: roughness)
| |- error: 'roughness' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
252 | reMaterial.metallic = .init(scale: pbrMetallicRoughness.metallicFactor, texture: metallic)
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:252:28: error: 'metallic' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
250 | let metallic = try texture(from: mrTexture, semantic: .raw, channel: .blue) {
251 | reMaterial.roughness = .init(scale: pbrMetallicRoughness.roughnessFactor, texture: roughness)
252 | reMaterial.metallic = .init(scale: pbrMetallicRoughness.metallicFactor, texture: metallic)
| |- error: 'metallic' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
253 | }
254 | else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:255:28: error: 'roughness' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
253 | }
254 | else {
255 | reMaterial.roughness = .init(floatLiteral: pbrMetallicRoughness.roughnessFactor)
| |- error: 'roughness' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
256 | reMaterial.metallic = .init(floatLiteral: pbrMetallicRoughness.metallicFactor)
257 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:256:28: error: 'metallic' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
254 | else {
255 | reMaterial.roughness = .init(floatLiteral: pbrMetallicRoughness.roughnessFactor)
256 | reMaterial.metallic = .init(floatLiteral: pbrMetallicRoughness.metallicFactor)
| |- error: 'metallic' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
257 | }
258 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:269:28: error: 'normal' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
267 | adjust: scale == 1 ? nil : { try $0.normalScaled(by: scale) }
268 | ) {
269 | reMaterial.normal = .init(texture: normal)
| |- error: 'normal' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
270 | }
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:281:28: error: 'ambientOcclusion' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
279 | adjust: strength == 1 ? nil : { try $0.occlusionAdjusted(strength: strength) }
280 | ) {
281 | reMaterial.ambientOcclusion = .init(texture: occlusion)
| |- error: 'ambientOcclusion' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
282 | }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:293:24: error: 'emissiveColor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
291 | if let emissiveInfo = material.emissiveTexture,
292 | let emissive = try texture(from: emissiveInfo, semantic: .color, tint: emissiveTint) {
293 | reMaterial.emissiveColor = .init(texture: emissive)
| |- error: 'emissiveColor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
294 | reMaterial.emissiveIntensity = material.emissiveStrength // KHR_materials_emissive_strength
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:293:41: error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
291 | if let emissiveInfo = material.emissiveTexture,
292 | let emissive = try texture(from: emissiveInfo, semantic: .color, tint: emissiveTint) {
293 | reMaterial.emissiveColor = .init(texture: emissive)
| |- error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
294 | reMaterial.emissiveIntensity = material.emissiveStrength // KHR_materials_emissive_strength
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:294:24: error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
292 | let emissive = try texture(from: emissiveInfo, semantic: .color, tint: emissiveTint) {
293 | reMaterial.emissiveColor = .init(texture: emissive)
294 | reMaterial.emissiveIntensity = material.emissiveStrength // KHR_materials_emissive_strength
| |- error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
295 | }
296 | else if emissiveFactor != [0, 0, 0] {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:298:24: error: 'emissiveColor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
296 | else if emissiveFactor != [0, 0, 0] {
297 | let emissiveColor = color(SIMD4<Float>(emissiveFactor.x, emissiveFactor.y, emissiveFactor.z, 1))
298 | reMaterial.emissiveColor = .init(color: emissiveColor)
| |- error: 'emissiveColor' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
299 | reMaterial.emissiveIntensity = material.emissiveStrength
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:298:41: error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
296 | else if emissiveFactor != [0, 0, 0] {
297 | let emissiveColor = color(SIMD4<Float>(emissiveFactor.x, emissiveFactor.y, emissiveFactor.z, 1))
298 | reMaterial.emissiveColor = .init(color: emissiveColor)
| |- error: 'init(color:texture:)' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
299 | reMaterial.emissiveIntensity = material.emissiveStrength
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:299:24: error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
297 | let emissiveColor = color(SIMD4<Float>(emissiveFactor.x, emissiveFactor.y, emissiveFactor.z, 1))
298 | reMaterial.emissiveColor = .init(color: emissiveColor)
299 | reMaterial.emissiveIntensity = material.emissiveStrength
| |- error: 'emissiveIntensity' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
300 | }
301 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:303:24: error: 'faceCulling' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
301 |
302 | if material.doubleSided ?? false {
303 | reMaterial.faceCulling = .none
| |- error: 'faceCulling' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
304 | }
305 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:308:24: error: 'blending' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
306 | switch material.alphaMode ?? .OPAQUE {
307 | case .OPAQUE:
308 | reMaterial.blending = .opaque
| |- error: 'blending' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
309 | case .MASK:
310 | reMaterial.opacityThreshold = material.alphaCutoff ?? 0.5
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:310:24: error: 'opacityThreshold' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
:
308 | reMaterial.blending = .opaque
309 | case .MASK:
310 | reMaterial.opacityThreshold = material.alphaCutoff ?? 0.5
| |- error: 'opacityThreshold' is only available in tvOS 26.0 or newer
| `- note: add 'if #available' version check
311 | case .BLEND:
312 | reMaterial.blending = .transparent(opacity: .init(floatLiteral: 1))
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/glb.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile glb.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile gltf+RealityKit.swift
SwiftCompile normal arm64 Compiling\ Encoding.swift,\ Extensions+EXTTextureWebP.swift,\ Extensions+KHRLightsPunctual.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Encoding.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+EXTTextureWebP.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRLightsPunctual.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Encoding.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Encoding.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+EXTTextureWebP.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+EXTTextureWebP.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRLightsPunctual.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRLightsPunctual.swift
SwiftCompile normal arm64 Compiling\ Validation.swift,\ Writer.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Writer.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Validation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Writer.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Writer.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftGLTF (in target 'SwiftGLTF' from project 'SwiftGLTF')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:35:48: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
33 | }
34 |
35 | public func generateRootEntity() throws -> Entity {
| | `- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
36 | let rootEntity = Entity()
37 | // 'scenes' is optional in glTF; with none there is nothing to show.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:50:52: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
48 | }
49 |
50 | func generateEntity(from node: Node) throws -> Entity {
| | `- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
51 | let entity = Entity()
52 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:95:48: error: 'Entity' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
93 | }
94 |
95 | func applyLight(_ light: Light, to entity: Entity) {
| | `- error: 'Entity' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
96 | #if os(macOS)
97 | let color = NSColor(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:128:58: error: 'ModelComponent' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
126 | }
127 |
128 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| | `- error: 'ModelComponent' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
129 | var descriptors: [MeshDescriptor] = []
130 | var materials: [RealityKit.Material] = []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:141:75: error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
139 | }
140 |
141 | private func meshDescriptor(from primitive: Mesh.Primitive) throws -> MeshDescriptor {
| | `- error: 'MeshDescriptor' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
142 | let container = try requireContainer()
143 | var meshDescriptor = MeshDescriptor()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:175:81: error: 'Material' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
173 | }
174 |
175 | private func reMaterial(for primitive: Mesh.Primitive) throws -> RealityKit.Material {
| | `- error: 'Material' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
176 | // glTF: a primitive with no material uses the default material.
177 | if let material = try primitive.material?.resolve(in: document) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:191:19: error: 'TextureResource' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
| `- error: 'TextureResource' is only available in tvOS 26.0 or newer
192 | channel: TextureChannel? = nil,
193 | tint: SIMD3<Float>? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:195:17: error: 'MaterialParameters' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
187 | }
188 |
189 | private func texture(
| `- note: add '@available' attribute to enclosing instance method
190 | from info: TextureInfo,
191 | semantic: TextureResource.Semantic,
:
193 | tint: SIMD3<Float>? = nil,
194 | adjust: ((CGImage) throws -> CGImage)? = nil
195 | ) throws -> MaterialParameters.Texture? {
| `- error: 'MaterialParameters' is only available in tvOS 26.0 or newer
196 | if info.textureTransform != nil {
197 | // PhysicallyBasedMaterial has no public per-texture UV transform.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:224:69: error: 'Material' is only available in tvOS 26.0 or newer
12 | // RealityKit entities, components and resources are main-actor isolated.
13 | @MainActor
14 | public class RealityKitGLTFGenerator {
| `- note: add '@available' attribute to enclosing class
15 | let container: Container?
16 | let document: Document
:
222 | }
223 |
224 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| | `- error: 'Material' is only available in tvOS 26.0 or newer
| `- note: add '@available' attribute to enclosing instance method
225 | if material.isUnlit {
226 | var unlit = UnlitMaterial()
Failed frontend command:
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Accessor+Values.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/AccessorReader.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Animation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/BufferViewDecoder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CGImage+ColorMatrix.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CollectionScanner.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Encoding.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+EXTTextureWebP.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRLightsPunctual.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsEmissiveStrength.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsIOR.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsSpecular.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsTransmission.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsUnlit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsVolume.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRTextureTransform.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/MorphTargets.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Skin.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation+Data.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Validation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Writer.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/glb.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift -target arm64-apple-tvos18.0 -module-can-import-version SceneKit 1.2 612.0.0 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -disable-cross-import-overlay-search -swift-module-cross-import RealityKit /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/System/Library/Frameworks/RealityKit.framework/Modules/RealityKit.swiftcrossimport/ComputeGraph.swiftoverlay -swift-module-cross-import RealityKit /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/System/Library/Frameworks/RealityKit.framework/Modules/RealityKit.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import SceneKit /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SceneKit.framework/Modules/SceneKit.swiftcrossimport/SwiftUI.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=5 -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044509235ffd515576fb835ffc8f67461e5.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftGLTF -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-tvos27.0 -target-sdk-version 27.0 -target-sdk-name appletvos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftGLTF.build/Debug-appletvos/SwiftGLTF-t.build/Objects-normal/arm64/SwiftGLTF.abi.json
SwiftCompile normal arm64 (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ BufferViewDecoder.swift,\ CGImage+ColorMatrix.swift,\ CollectionScanner.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/BufferViewDecoder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CGImage+ColorMatrix.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CollectionScanner.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/BufferViewDecoder.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BufferViewDecoder.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CGImage+ColorMatrix.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CGImage+ColorMatrix.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/CollectionScanner.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CollectionScanner.swift
SwiftCompile normal arm64 Compiling\ gltf+SceneKit.swift,\ gltf.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+SceneKit.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile gltf+SceneKit.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile gltf.swift
SwiftCompile normal arm64 Compiling\ Extensions+KHRMaterialsEmissiveStrength.swift,\ Extensions+KHRMaterialsIOR.swift,\ Extensions+KHRMaterialsSpecular.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsEmissiveStrength.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsIOR.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsSpecular.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsEmissiveStrength.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRMaterialsEmissiveStrength.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsIOR.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRMaterialsIOR.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRMaterialsSpecular.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRMaterialsSpecular.swift
SwiftCompile normal arm64 Compiling\ Extensions+KHRTextureTransform.swift,\ Extensions.swift,\ MorphTargets.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRTextureTransform.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/MorphTargets.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions+KHRTextureTransform.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions+KHRTextureTransform.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Extensions.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Extensions.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/MorphTargets.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MorphTargets.swift
SwiftDriverJobDiscovery normal arm64 Compiling Extensions+KHRMaterialsTransmission.swift, Extensions+KHRMaterialsUnlit.swift, Extensions+KHRMaterialsVolume.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftDriverJobDiscovery normal arm64 Compiling Extensions+KHRMaterialsEmissiveStrength.swift, Extensions+KHRMaterialsIOR.swift, Extensions+KHRMaterialsSpecular.swift (in target 'SwiftGLTF' from project 'SwiftGLTF')
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-10-09 01:33:16.646 xcodebuild[971:5817] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftGLTF (in target 'SwiftGLTF' from project 'SwiftGLTF')
SwiftCompile normal arm64 (in target 'SwiftGLTF' from project 'SwiftGLTF')
Building workspace SwiftGLTF with scheme SwiftGLTF-Package
(3 failures)
BUILD FAILURE 6.4 tvOS