Build Information
Successful build of SwiftGLTF with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 14
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/schwa/SwiftGLTF.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/schwa/SwiftGLTF
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4160ed7 Fix download url
Cloned https://github.com/schwa/SwiftGLTF.git
Revision (git rev-parse @):
4160ed7e89b7cfcccf5ff7a0cbfd5b055fada771
SUCCESS checkout https://github.com/schwa/SwiftGLTF.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/schwa/SwiftGLTF.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/9] Compiling SwiftGLTF gltf.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:219:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Accessor]>' may have shared mutable state; this is an error in the Swift 6 language mode
217 |
218 | public struct Accessor: Decodable, Hashable, Sendable, Resolver {
219 | public static let documentKeyPath = \Document.accessors
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Accessor]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
220 |
221 | public let bufferView: Index<BufferView>?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:286:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Animation]>' may have shared mutable state; this is an error in the Swift 6 language mode
284 |
285 | public struct Animation: Decodable, Hashable, Sendable {
286 | public static let documentKeyPath = \Document.animations
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Animation]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | }
288 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:312:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Buffer]>' may have shared mutable state; this is an error in the Swift 6 language mode
310 |
311 | public struct Buffer: Decodable, Hashable, Sendable, Resolver {
312 | public static let documentKeyPath = \Document.buffers
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Buffer]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
313 |
314 | public let uri: URI?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:322:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [BufferView]>' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | public struct BufferView: Decodable, Hashable, Sendable, Resolver {
322 | public static let documentKeyPath = \Document.bufferViews
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [BufferView]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
323 |
324 | public let buffer: Index<Buffer>
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:333:16: warning: stored property 'target' of 'Sendable'-conforming struct 'BufferView' has non-sendable type 'BufferView.Target?'; this is an error in the Swift 6 language mode
326 | public let byteLength: Int
327 | public let byteStride: Int?
328 | public enum Target: Int, Decodable {
| `- note: consider making enum 'Target' conform to the 'Sendable' protocol
329 | case ARRAY_BUFFER = 34962
330 | case ELEMENT_ARRAY_BUFFER = 34963
331 | }
332 |
333 | public let target: Target?
| `- warning: stored property 'target' of 'Sendable'-conforming struct 'BufferView' has non-sendable type 'BufferView.Target?'; this is an error in the Swift 6 language mode
334 | public let name: String?
335 | // let extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:361:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Camera]>' may have shared mutable state; this is an error in the Swift 6 language mode
359 |
360 | public struct Camera: Decodable, Hashable, Sendable, Resolver {
361 | public static let documentKeyPath = \Document.cameras
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Camera]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | }
363 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:373:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Image]>' may have shared mutable state; this is an error in the Swift 6 language mode
371 |
372 | public struct Image: Decodable, Hashable, Sendable, Resolver {
373 | public static let documentKeyPath = \Document.images
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Image]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
374 |
375 | public let uri: URI?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:384:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Material]>' may have shared mutable state; this is an error in the Swift 6 language mode
382 |
383 | public struct Material: Decodable, Hashable, Sendable, Resolver {
384 | public static let documentKeyPath = \Document.materials
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Material]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
385 |
386 | public let name: String?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:431:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Mesh]>' may have shared mutable state; this is an error in the Swift 6 language mode
429 |
430 | public struct Mesh: Decodable, Hashable, Sendable, Resolver {
431 | public static let documentKeyPath = \Document.meshes
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Mesh]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
432 |
433 | public struct Primitive: Decodable, Hashable, Sendable {
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:507:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Node]>' may have shared mutable state; this is an error in the Swift 6 language mode
505 |
506 | public struct Node: Decodable, Hashable, Sendable, Resolver {
507 | public static let documentKeyPath = \Document.nodes
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Node]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
508 |
509 | public let camera: Index<Camera>?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:570:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Sampler]>' may have shared mutable state; this is an error in the Swift 6 language mode
568 |
569 | public struct Sampler: Decodable, Hashable, Sendable, Resolver {
570 | public static let documentKeyPath = \Document.samplers
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Sampler]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
571 |
572 | public enum MagFilter: Int, Decodable, Hashable, Sendable {
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:629:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Scene]>' may have shared mutable state; this is an error in the Swift 6 language mode
627 |
628 | public struct Scene: Decodable, Hashable, Sendable, Resolver {
629 | public static let documentKeyPath = \Document.scenes
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Scene]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
630 |
631 | public let nodes: [Index<Node>]
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:651:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Skin]?>' may have shared mutable state; this is an error in the Swift 6 language mode
649 |
650 | public struct Skin: Decodable, Hashable, Sendable {
651 | public static let documentKeyPath = \Document.skins
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Skin]?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
652 | }
653 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:655:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Texture]>' may have shared mutable state; this is an error in the Swift 6 language mode
653 |
654 | public struct Texture: Decodable, Hashable, Sendable, Resolver {
655 | public static let documentKeyPath = \Document.textures
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Texture]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
656 |
657 | public let sampler: Index<Sampler>?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
[4/9] Compiling SwiftGLTF gltf+SceneKit.swift
[5/9] Compiling SwiftGLTF Scratch.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift:25:9: warning: 'channel' is deprecated: Inefficient
23 |
24 | var redChannel: CGImage {
25 | channel(CIVector(x: 1, y: 0, z: 0, w: 0))
| `- warning: 'channel' is deprecated: Inefficient
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift:29:9: warning: 'channel' is deprecated: Inefficient
27 |
28 | var greenChannel: CGImage {
29 | channel(CIVector(x: 0, y: 1, z: 0, w: 0))
| `- warning: 'channel' is deprecated: Inefficient
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/Scratch.swift:33:9: warning: 'channel' is deprecated: Inefficient
31 |
32 | var blueChannel: CGImage {
33 | channel(CIVector(x: 0, y: 0, z: 1, w: 0))
| `- warning: 'channel' is deprecated: Inefficient
34 | }
35 | }
[6/9] Compiling SwiftGLTF glb.swift
[7/9] Compiling SwiftGLTF gltf+RealityKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:22:26: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public func generateRootEntity() throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateRootEntity()' part of global actor 'MainActor'
22 | let rootEntity = Entity()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let scene = try document.scene.map { try $0.resolve(in: document) } ?? document.scenes.first!
24 | try scene.nodes
RealityFoundation.Entity:17:32: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
15 | @available(macOS 12.0, iOS 15.0, *)
16 | @MainActor open var __accessibilityElements: [Any]? { get }
17 | @MainActor required public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
18 | @MainActor public static func __testInit() -> Entity
19 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:28:28: warning: call to main actor-isolated instance method 'addChild(_:preservingWorldTransform:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | .map { try generateEntity(from: $0) }
27 | .forEach {
28 | rootEntity.addChild($0)
| `- warning: call to main actor-isolated instance method 'addChild(_:preservingWorldTransform:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | }
30 | return rootEntity
RealityFoundation.HasHierarchy:6:28: note: calls to instance method 'addChild(_:preservingWorldTransform:)' from outside of its actor context are implicitly asynchronous
4 | @MainActor public func setParent(_ parent: Entity?, preservingWorldTransform: Bool = false)
5 | @MainActor public var children: Entity.ChildCollection { get set }
6 | @MainActor public func addChild(_ entity: Entity, preservingWorldTransform: Bool = false)
| `- note: calls to instance method 'addChild(_:preservingWorldTransform:)' from outside of its actor context are implicitly asynchronous
7 | @MainActor public func removeChild(_ entity: Entity, preservingWorldTransform: Bool = false)
8 | @MainActor public func removeFromParent(preservingWorldTransform: Bool = false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:34:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 |
36 | if let mesh = try node.mesh?.resolve(in: document) {
RealityFoundation.Entity:17:32: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
15 | @available(macOS 12.0, iOS 15.0, *)
16 | @MainActor open var __accessibilityElements: [Any]? { get }
17 | @MainActor required public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
18 | @MainActor public static func __testInit() -> Entity
19 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:37:30: warning: main actor-isolated subscript 'subscript(_:)' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
35 |
36 | if let mesh = try node.mesh?.resolve(in: document) {
37 | entity.components[ModelComponent.self] = try generateMeshResource(from: mesh)
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
38 | }
39 | if let matrix = node.matrix {
RealityFoundation.Entity:5:27: note: mutation of this subscript is only permitted within the actor
3 | @MainActor @preconcurrency public struct ComponentSet {
4 | @MainActor public subscript<T>(componentType: T.Type) -> T? where T : Component { get set }
5 | @MainActor public subscript(componentType: any Component.Type) -> (any Component)? { get set }
| `- note: mutation of this subscript is only permitted within the actor
6 | @MainActor public func set<T>(_ component: T) where T : Component
7 | @MainActor public func set(_ components: [any Component])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:37:20: warning: main actor-isolated property 'components' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
35 |
36 | if let mesh = try node.mesh?.resolve(in: document) {
37 | entity.components[ModelComponent.self] = try generateMeshResource(from: mesh)
| `- warning: main actor-isolated property 'components' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
38 | }
39 | if let matrix = node.matrix {
RealityFoundation.Entity:4:27: note: mutation of this property is only permitted within the actor
2 | @MainActor @preconcurrency open class Entity : HasHierarchy, HasSynchronization, HasTransform, Sendable {
3 | @MainActor public var __coreEntity: __EntityRef { get }
4 | @MainActor public var components: Entity.ComponentSet { get set }
| `- note: mutation of this property is only permitted within the actor
5 | @MainActor public var scene: Scene? { get }
6 | @MainActor public var name: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:40:20: warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
35 |
:
38 | }
39 | if let matrix = node.matrix {
40 | entity.transform.matrix = matrix
| `- warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
41 | }
42 | if let translation = node.translation {
RealityFoundation.HasTransform:3:27: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension HasTransform {
3 | @MainActor public var transform: Transform { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @MainActor public var scale: SIMD3<Float> { get set }
5 | @MainActor public func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:43:20: warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
35 |
:
41 | }
42 | if let translation = node.translation {
43 | entity.transform.translation = translation
| `- warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
44 | }
45 | if let rotation = node.rotation {
RealityFoundation.HasTransform:3:27: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension HasTransform {
3 | @MainActor public var transform: Transform { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @MainActor public var scale: SIMD3<Float> { get set }
5 | @MainActor public func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:46:20: warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
35 |
:
44 | }
45 | if let rotation = node.rotation {
46 | entity.transform.rotation = simd_quatf(vector: rotation)
| `- warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
47 | }
48 | if let scale = node.scale {
RealityFoundation.HasTransform:3:27: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension HasTransform {
3 | @MainActor public var transform: Transform { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @MainActor public var scale: SIMD3<Float> { get set }
5 | @MainActor public func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:49:20: warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | func generateEntity(from node: Node) throws -> Entity {
| `- note: add '@MainActor' to make instance method 'generateEntity(from:)' part of global actor 'MainActor'
34 | let entity = Entity()
35 |
:
47 | }
48 | if let scale = node.scale {
49 | entity.transform.scale = scale
| `- warning: main actor-isolated property 'transform' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
50 | }
51 | try node.children.map { try $0.resolve(in: document) }.map { try generateEntity(from: $0) }.forEach {
RealityFoundation.HasTransform:3:27: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension HasTransform {
3 | @MainActor public var transform: Transform { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @MainActor public var scale: SIMD3<Float> { get set }
5 | @MainActor public func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:52:20: warning: call to main actor-isolated instance method 'addChild(_:preservingWorldTransform:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | try node.children.map { try $0.resolve(in: document) }.map { try generateEntity(from: $0) }.forEach {
52 | entity.addChild($0)
| `- warning: call to main actor-isolated instance method 'addChild(_:preservingWorldTransform:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 | return entity
RealityFoundation.HasHierarchy:6:28: note: calls to instance method 'addChild(_:preservingWorldTransform:)' from outside of its actor context are implicitly asynchronous
4 | @MainActor public func setParent(_ parent: Entity?, preservingWorldTransform: Bool = false)
5 | @MainActor public var children: Entity.ChildCollection { get set }
6 | @MainActor public func addChild(_ entity: Entity, preservingWorldTransform: Bool = false)
| `- note: calls to instance method 'addChild(_:preservingWorldTransform:)' from outside of its actor context are implicitly asynchronous
7 | @MainActor public func removeChild(_ entity: Entity, preservingWorldTransform: Bool = false)
8 | @MainActor public func removeFromParent(preservingWorldTransform: Bool = false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:78:45: warning: call to main actor-isolated static method 'generate(from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
57 | func generateMeshResource(from mesh: Mesh) throws -> ModelComponent {
| `- note: add '@MainActor' to make instance method 'generateMeshResource(from:)' part of global actor 'MainActor'
58 | // assert(mesh.primitives.count == 1)
59 | let primitive = mesh.primitives.first!
:
76 | meshDescriptor.primitives = .triangles(indices)
77 | }
78 | let meshResource = try MeshResource.generate(from: [meshDescriptor])
| `- warning: call to main actor-isolated static method 'generate(from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | guard let material = try primitive.material?.resolve(in: document) else {
RealityFoundation.MeshResource:36:35: note: calls to static method 'generate(from:)' from outside of its actor context are implicitly asynchronous
34 | @MainActor public static func generate(from content: MeshResource.Contents) throws -> MeshResource
35 | @MainActor public static func generateAsync(from content: MeshResource.Contents) -> LoadRequest<MeshResource>
36 | @MainActor public static func generate(from descriptors: [MeshDescriptor]) throws -> MeshResource
| `- note: calls to static method 'generate(from:)' from outside of its actor context are implicitly asynchronous
37 | @MainActor public static func generateAsync(from descriptors: [MeshDescriptor]) -> LoadRequest<MeshResource>
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf+RealityKit.swift:97:59: warning: call to main actor-isolated static method 'generate(from:withName:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | }
86 |
87 | func makeMaterial(from material: Material) throws -> RealityKit.Material {
| `- note: add '@MainActor' to make instance method 'makeMaterial(from:)' part of global actor 'MainActor'
88 | var reMaterial = PhysicallyBasedMaterial()
89 | if let pbrMetallicRoughness = material.pbrMetallicRoughness {
:
95 | let data = try container.data(for: source)
96 | let image = try CGImage.image(with: data)
97 | let textureResource = try TextureResource.generate(from: image, options: .init(semantic: .color))
| `- warning: call to main actor-isolated static method 'generate(from:withName:options:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | reTexture = MaterialParameters.Texture(textureResource)
99 | }
RealityFoundation.TextureResource:46:35: note: calls to static method 'generate(from:withName:options:)' from outside of its actor context are implicitly asynchronous
44 | @MainActor public static func loadAsync(contentsOf url: URL, withName resourceName: String? = nil, options: TextureResource.CreateOptions) -> LoadRequest<TextureResource>
45 | @available(macOS 12.0, iOS 15.0, *)
46 | @MainActor public static func generate(from cgImage: CGImage, withName resourceName: String? = nil, options: TextureResource.CreateOptions) throws -> TextureResource
| `- note: calls to static method 'generate(from:withName:options:)' from outside of its actor context are implicitly asynchronous
47 | @available(macOS 12.0, iOS 15.0, *)
48 | @MainActor public static func generateAsync(from cgImage: CGImage, withName resourceName: String? = nil, options: TextureResource.CreateOptions) -> LoadRequest<TextureResource>
[8/9] Emitting module SwiftGLTF
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:219:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Accessor]>' may have shared mutable state; this is an error in the Swift 6 language mode
217 |
218 | public struct Accessor: Decodable, Hashable, Sendable, Resolver {
219 | public static let documentKeyPath = \Document.accessors
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Accessor]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
220 |
221 | public let bufferView: Index<BufferView>?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:286:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Animation]>' may have shared mutable state; this is an error in the Swift 6 language mode
284 |
285 | public struct Animation: Decodable, Hashable, Sendable {
286 | public static let documentKeyPath = \Document.animations
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Animation]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | }
288 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:312:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Buffer]>' may have shared mutable state; this is an error in the Swift 6 language mode
310 |
311 | public struct Buffer: Decodable, Hashable, Sendable, Resolver {
312 | public static let documentKeyPath = \Document.buffers
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Buffer]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
313 |
314 | public let uri: URI?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:322:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [BufferView]>' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | public struct BufferView: Decodable, Hashable, Sendable, Resolver {
322 | public static let documentKeyPath = \Document.bufferViews
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [BufferView]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
323 |
324 | public let buffer: Index<Buffer>
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:333:16: warning: stored property 'target' of 'Sendable'-conforming struct 'BufferView' has non-sendable type 'BufferView.Target?'; this is an error in the Swift 6 language mode
326 | public let byteLength: Int
327 | public let byteStride: Int?
328 | public enum Target: Int, Decodable {
| `- note: consider making enum 'Target' conform to the 'Sendable' protocol
329 | case ARRAY_BUFFER = 34962
330 | case ELEMENT_ARRAY_BUFFER = 34963
331 | }
332 |
333 | public let target: Target?
| `- warning: stored property 'target' of 'Sendable'-conforming struct 'BufferView' has non-sendable type 'BufferView.Target?'; this is an error in the Swift 6 language mode
334 | public let name: String?
335 | // let extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:361:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Camera]>' may have shared mutable state; this is an error in the Swift 6 language mode
359 |
360 | public struct Camera: Decodable, Hashable, Sendable, Resolver {
361 | public static let documentKeyPath = \Document.cameras
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Camera]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | }
363 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:373:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Image]>' may have shared mutable state; this is an error in the Swift 6 language mode
371 |
372 | public struct Image: Decodable, Hashable, Sendable, Resolver {
373 | public static let documentKeyPath = \Document.images
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Image]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
374 |
375 | public let uri: URI?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:384:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Material]>' may have shared mutable state; this is an error in the Swift 6 language mode
382 |
383 | public struct Material: Decodable, Hashable, Sendable, Resolver {
384 | public static let documentKeyPath = \Document.materials
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Material]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
385 |
386 | public let name: String?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:431:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Mesh]>' may have shared mutable state; this is an error in the Swift 6 language mode
429 |
430 | public struct Mesh: Decodable, Hashable, Sendable, Resolver {
431 | public static let documentKeyPath = \Document.meshes
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Mesh]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
432 |
433 | public struct Primitive: Decodable, Hashable, Sendable {
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:507:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Node]>' may have shared mutable state; this is an error in the Swift 6 language mode
505 |
506 | public struct Node: Decodable, Hashable, Sendable, Resolver {
507 | public static let documentKeyPath = \Document.nodes
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Node]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
508 |
509 | public let camera: Index<Camera>?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:570:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Sampler]>' may have shared mutable state; this is an error in the Swift 6 language mode
568 |
569 | public struct Sampler: Decodable, Hashable, Sendable, Resolver {
570 | public static let documentKeyPath = \Document.samplers
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Sampler]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
571 |
572 | public enum MagFilter: Int, Decodable, Hashable, Sendable {
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:629:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Scene]>' may have shared mutable state; this is an error in the Swift 6 language mode
627 |
628 | public struct Scene: Decodable, Hashable, Sendable, Resolver {
629 | public static let documentKeyPath = \Document.scenes
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Scene]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
630 |
631 | public let nodes: [Index<Node>]
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:651:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Skin]?>' may have shared mutable state; this is an error in the Swift 6 language mode
649 |
650 | public struct Skin: Decodable, Hashable, Sendable {
651 | public static let documentKeyPath = \Document.skins
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Skin]?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
652 | }
653 |
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGLTF/gltf.swift:655:23: warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Texture]>' may have shared mutable state; this is an error in the Swift 6 language mode
653 |
654 | public struct Texture: Decodable, Hashable, Sendable, Resolver {
655 | public static let documentKeyPath = \Document.textures
| |- warning: static property 'documentKeyPath' is not concurrency-safe because non-'Sendable' type 'KeyPath<Document, [Texture]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'documentKeyPath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
656 |
657 | public let sampler: Index<Sampler>?
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
[9/9] Compiling SwiftGLTF CollectionScanner.swift
Build complete! (36.02s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftGLTF",
"name" : "SwiftGLTF",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
}
],
"products" : [
{
"name" : "SwiftGLTF",
"targets" : [
"SwiftGLTF"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftGLTFTests",
"module_type" : "SwiftTarget",
"name" : "SwiftGLTFTests",
"path" : "Tests/SwiftGLTFTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/Box.gltf",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftGLTFTests/Box-byteStride.glb",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"GLTFTests.swift"
],
"target_dependencies" : [
"SwiftGLTF"
],
"type" : "test"
},
{
"c99name" : "SwiftGLTF",
"module_type" : "SwiftTarget",
"name" : "SwiftGLTF",
"path" : "Sources/SwiftGLTF",
"product_memberships" : [
"SwiftGLTF"
],
"sources" : [
"CollectionScanner.swift",
"Scratch.swift",
"glb.swift",
"gltf+RealityKit.swift",
"gltf+SceneKit.swift",
"gltf.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.