Build Information
Successful build of glTFSceneKit, reference develop (3a043b
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 08:50:21 UTC.
Swift 6 data race errors: 9
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sakrist/glTFSceneKit.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sakrist/glTFSceneKit
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 3a043b4 Update Package.swift
Cloned https://github.com/sakrist/glTFSceneKit.git
Revision (git rev-parse @):
3a043b41c6d253a486f558de7e5a8845184df074
SUCCESS checkout https://github.com/sakrist/glTFSceneKit.git at develop
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "gltfscenekit",
"name": "glTFSceneKit",
"url": "https://github.com/sakrist/glTFSceneKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/glTFSceneKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/sakrist/glTFSceneKit.git
[1/1176] Fetching gltfscenekit
Fetched https://github.com/sakrist/glTFSceneKit.git from cache (0.92s)
Creating working copy for https://github.com/sakrist/glTFSceneKit.git
Working copy of https://github.com/sakrist/glTFSceneKit.git resolved at develop (3a043b4)
warning: '.resolve-product-dependencies': dependency 'gltfscenekit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/sakrist/glTFSceneKit.git
https://github.com/sakrist/glTFSceneKit.git
{
"dependencies" : [
],
"manifest_display_name" : "glTFSceneKit",
"name" : "glTFSceneKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
}
],
"products" : [
{
"name" : "glTFSceneKit",
"targets" : [
"glTFSceneKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "glTFSceneKitTests",
"module_type" : "SwiftTarget",
"name" : "glTFSceneKitTests",
"path" : "Tests/glTFSceneKitTests",
"sources" : [
"gltf_scenekitTests.swift"
],
"target_dependencies" : [
"glTFSceneKit"
],
"type" : "test"
},
{
"c99name" : "glTFSceneKit",
"module_type" : "SwiftTarget",
"name" : "glTFSceneKit",
"path" : "Sources/glTFSceneKit",
"product_memberships" : [
"glTFSceneKit"
],
"sources" : [
"GLTF+Animation.swift",
"GLTF+CompressedTexture.swift",
"GLTF+Draco.swift",
"GLTF+Material.swift",
"GLTF+SceneKit.swift",
"GLTF/GLTF.swift",
"GLTF/GLTFAccessor.swift",
"GLTF/GLTFAccessorSparse.swift",
"GLTF/GLTFAccessorSparseIndices.swift",
"GLTF/GLTFAccessorSparseValues.swift",
"GLTF/GLTFAnimation.swift",
"GLTF/GLTFAnimationChannel.swift",
"GLTF/GLTFAnimationChannelTarget.swift",
"GLTF/GLTFAnimationSampler.swift",
"GLTF/GLTFAsset.swift",
"GLTF/GLTFBuffer.swift",
"GLTF/GLTFBufferView.swift",
"GLTF/GLTFCamera.swift",
"GLTF/GLTFCameraOrthographic.swift",
"GLTF/GLTFCameraPerspective.swift",
"GLTF/GLTFImage.swift",
"GLTF/GLTFKHRDracoMeshCompressionExtension.swift",
"GLTF/GLTFMaterial.swift",
"GLTF/GLTFMaterialNormalTextureInfo.swift",
"GLTF/GLTFMaterialOcclusionTextureInfo.swift",
"GLTF/GLTFMaterialPBRMetallicRoughness.swift",
"GLTF/GLTFMesh.swift",
"GLTF/GLTFMeshPrimitive.swift",
"GLTF/GLTFNode.swift",
"GLTF/GLTFSampler.swift",
"GLTF/GLTFScene.swift",
"GLTF/GLTFSkin.swift",
"GLTF/GLTFTexture.swift",
"GLTF/GLTFTextureInfo.swift",
"GLTF/JSONCodingKeys.swift",
"GLTFConverter+Geometry.swift",
"GLTFConverter.swift",
"GLTFResourceLoader.swift",
"GLTF_3D4MCompressedTextureExtension.swift",
"Helper.swift",
"TextureStorageManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/40] Emitting module glTFSceneKit
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:48:20: warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
| |- warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resource_loader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'resource_loader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static var load_canceled = "load_canceled"
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:49:20: warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
49 | static var load_canceled = "load_canceled"
| |- warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'load_canceled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'load_canceled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:139:16: warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | extension GLTFBuffer {
138 |
139 | static var data_associate_key = "data_associate_key"
| |- warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public var data: Data? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:149:16: warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | extension GLTFImage {
148 |
149 | static var image_associate_key = "image_associate_key"
| |- warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'image_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'image_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public var image: OSImage? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:35:7: warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | }
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
| `- warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
36 | var title: String?
37 | var code: Int
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:36:9: warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
36 | var title: String?
| `- warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
37 | var code: Int
38 | var errorDescription: String? { return _description }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:239:16: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
237 | @available(OSX 10.12, iOS 10.0, *)
238 | class MetalDevice {
239 | static var device = {
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 | return MTLCreateSystemDefaultDevice()
241 | }()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:19:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:59:16: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
| |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | private var worker = DispatchQueue(label: "textures_loader")
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:40:25: warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
37 | @objc public protocol SceneLoadingDelegate {
38 | @objc optional func scene(_ didLoadScene: SCNScene? )
39 | @objc optional func scene(_ scene: SCNScene?, didCreate camera: SCNCamera)
| `- note: 'scene(_:didCreate:)' previously declared here
40 | @objc optional func scene(_ scene: SCNScene?, didCreate node: SCNNode)
| `- warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
41 | @objc optional func scene(_ scene: SCNScene?, didCreate material: SCNMaterial, for node: SCNNode)
42 | }
[4/44] Compiling glTFSceneKit GLTFAccessorSparseValues.swift
[5/44] Compiling glTFSceneKit GLTFAnimation.swift
[6/44] Compiling glTFSceneKit GLTFAnimationChannel.swift
[7/44] Compiling glTFSceneKit GLTFAnimationChannelTarget.swift
[8/44] Compiling glTFSceneKit GLTFAnimationSampler.swift
[9/44] Compiling glTFSceneKit GLTFAsset.swift
[10/44] Compiling glTFSceneKit GLTFBuffer.swift
[11/44] Compiling glTFSceneKit GLTFBufferView.swift
[12/44] Compiling glTFSceneKit GLTFSampler.swift
[13/44] Compiling glTFSceneKit GLTFScene.swift
[14/44] Compiling glTFSceneKit GLTFSkin.swift
[15/44] Compiling glTFSceneKit GLTFTexture.swift
[16/44] Compiling glTFSceneKit GLTFKHRDracoMeshCompressionExtension.swift
[17/44] Compiling glTFSceneKit GLTFMaterial.swift
[18/44] Compiling glTFSceneKit GLTFMaterialNormalTextureInfo.swift
[19/44] Compiling glTFSceneKit GLTFMaterialOcclusionTextureInfo.swift
[20/44] Compiling glTFSceneKit GLTFMaterialPBRMetallicRoughness.swift
[21/44] Compiling glTFSceneKit GLTFMesh.swift
[22/44] Compiling glTFSceneKit GLTFMeshPrimitive.swift
[23/44] Compiling glTFSceneKit GLTFNode.swift
[24/44] Compiling glTFSceneKit GLTFCamera.swift
[25/44] Compiling glTFSceneKit GLTFCameraOrthographic.swift
[26/44] Compiling glTFSceneKit GLTFCameraPerspective.swift
[27/44] Compiling glTFSceneKit GLTFImage.swift
[28/44] Compiling glTFSceneKit GLTF.swift
[29/44] Compiling glTFSceneKit GLTFAccessor.swift
[30/44] Compiling glTFSceneKit GLTFAccessorSparse.swift
[31/44] Compiling glTFSceneKit GLTFAccessorSparseIndices.swift
[32/44] Compiling glTFSceneKit GLTFResourceLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:13: warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| |- warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:31: warning: reference to captured var 'error_' in concurrently-executing code
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| `- warning: reference to captured var 'error_' in concurrently-executing code
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:35:7: warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | }
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
| `- warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
36 | var title: String?
37 | var code: Int
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:36:9: warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
36 | var title: String?
| `- warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
37 | var code: Int
38 | var errorDescription: String? { return _description }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:239:16: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
237 | @available(OSX 10.12, iOS 10.0, *)
238 | class MetalDevice {
239 | static var device = {
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 | return MTLCreateSystemDefaultDevice()
241 | }()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:19:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:59:16: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
| |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | private var worker = DispatchQueue(label: "textures_loader")
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:27: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:56: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:134:45: warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
132 | if tStatus.status == .no {
133 | tStatus.status = .loading
134 | tStatus.associate(property: property)
| `- warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h:40:12: note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
38 |
39 | SCN_EXPORT
40 | @interface SCNMaterialProperty : NSObject <SCNAnimatable, NSSecureCoding>
| `- note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
7 |
8 | import Foundation
9 | import SceneKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
10 | import os
11 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:136:43: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
134 | tStatus.associate(property: property)
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
137 |
138 | let device = MetalDevice.device
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:139:32: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
137 |
138 | let device = MetalDevice.device
139 | let metalOn = (delegate.renderer?.renderingAPI == .metal || device != nil)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
140 | if let descriptor = texture.extensions?[compressedTextureExtensionKey] as? GLTF_3D4MCompressedTextureExtension, metalOn {
141 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:146:28: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
144 | tStatus.content = cTexture
145 |
146 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
147 | group.leave()
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:29: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:68: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:161:36: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
159 | gltf.loadCompressedTexture(descriptor: descriptor, loadLevel: .last) { (cTexture2, error) in
160 |
161 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
162 | group.leave()
163 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:37: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:66: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:76: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:192:16: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
190 | fileprivate func _loadImageTexture(_ gltf: GLTF, _ delegate: TextureLoaderDelegate, _ texture: GLTFTexture, _ tStatus: TextureAssociator) {
191 | self.worker.async {
192 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
193 | return
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:25: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:197:39: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
196 |
197 | if let imageSourceIndex = texture.source {
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
198 | if let gltf_image = gltf.images?[imageSourceIndex] {
199 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:47: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
[33/44] Compiling glTFSceneKit GLTF_3D4MCompressedTextureExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:13: warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| |- warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:31: warning: reference to captured var 'error_' in concurrently-executing code
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| `- warning: reference to captured var 'error_' in concurrently-executing code
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:35:7: warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | }
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
| `- warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
36 | var title: String?
37 | var code: Int
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:36:9: warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
36 | var title: String?
| `- warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
37 | var code: Int
38 | var errorDescription: String? { return _description }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:239:16: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
237 | @available(OSX 10.12, iOS 10.0, *)
238 | class MetalDevice {
239 | static var device = {
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 | return MTLCreateSystemDefaultDevice()
241 | }()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:19:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:59:16: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
| |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | private var worker = DispatchQueue(label: "textures_loader")
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:27: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:56: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:134:45: warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
132 | if tStatus.status == .no {
133 | tStatus.status = .loading
134 | tStatus.associate(property: property)
| `- warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h:40:12: note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
38 |
39 | SCN_EXPORT
40 | @interface SCNMaterialProperty : NSObject <SCNAnimatable, NSSecureCoding>
| `- note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
7 |
8 | import Foundation
9 | import SceneKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
10 | import os
11 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:136:43: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
134 | tStatus.associate(property: property)
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
137 |
138 | let device = MetalDevice.device
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:139:32: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
137 |
138 | let device = MetalDevice.device
139 | let metalOn = (delegate.renderer?.renderingAPI == .metal || device != nil)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
140 | if let descriptor = texture.extensions?[compressedTextureExtensionKey] as? GLTF_3D4MCompressedTextureExtension, metalOn {
141 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:146:28: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
144 | tStatus.content = cTexture
145 |
146 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
147 | group.leave()
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:29: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:68: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:161:36: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
159 | gltf.loadCompressedTexture(descriptor: descriptor, loadLevel: .last) { (cTexture2, error) in
160 |
161 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
162 | group.leave()
163 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:37: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:66: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:76: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:192:16: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
190 | fileprivate func _loadImageTexture(_ gltf: GLTF, _ delegate: TextureLoaderDelegate, _ texture: GLTFTexture, _ tStatus: TextureAssociator) {
191 | self.worker.async {
192 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
193 | return
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:25: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:197:39: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
196 |
197 | if let imageSourceIndex = texture.source {
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
198 | if let gltf_image = gltf.images?[imageSourceIndex] {
199 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:47: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
[34/44] Compiling glTFSceneKit Helper.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:13: warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| |- warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:31: warning: reference to captured var 'error_' in concurrently-executing code
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| `- warning: reference to captured var 'error_' in concurrently-executing code
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:35:7: warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | }
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
| `- warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
36 | var title: String?
37 | var code: Int
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:36:9: warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
36 | var title: String?
| `- warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
37 | var code: Int
38 | var errorDescription: String? { return _description }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:239:16: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
237 | @available(OSX 10.12, iOS 10.0, *)
238 | class MetalDevice {
239 | static var device = {
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 | return MTLCreateSystemDefaultDevice()
241 | }()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:19:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:59:16: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
| |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | private var worker = DispatchQueue(label: "textures_loader")
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:27: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:56: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:134:45: warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
132 | if tStatus.status == .no {
133 | tStatus.status = .loading
134 | tStatus.associate(property: property)
| `- warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h:40:12: note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
38 |
39 | SCN_EXPORT
40 | @interface SCNMaterialProperty : NSObject <SCNAnimatable, NSSecureCoding>
| `- note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
7 |
8 | import Foundation
9 | import SceneKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
10 | import os
11 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:136:43: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
134 | tStatus.associate(property: property)
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
137 |
138 | let device = MetalDevice.device
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:139:32: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
137 |
138 | let device = MetalDevice.device
139 | let metalOn = (delegate.renderer?.renderingAPI == .metal || device != nil)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
140 | if let descriptor = texture.extensions?[compressedTextureExtensionKey] as? GLTF_3D4MCompressedTextureExtension, metalOn {
141 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:146:28: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
144 | tStatus.content = cTexture
145 |
146 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
147 | group.leave()
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:29: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:68: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:161:36: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
159 | gltf.loadCompressedTexture(descriptor: descriptor, loadLevel: .last) { (cTexture2, error) in
160 |
161 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
162 | group.leave()
163 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:37: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:66: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:76: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:192:16: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
190 | fileprivate func _loadImageTexture(_ gltf: GLTF, _ delegate: TextureLoaderDelegate, _ texture: GLTFTexture, _ tStatus: TextureAssociator) {
191 | self.worker.async {
192 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
193 | return
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:25: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:197:39: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
196 |
197 | if let imageSourceIndex = texture.source {
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
198 | if let gltf_image = gltf.images?[imageSourceIndex] {
199 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:47: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
[35/44] Compiling glTFSceneKit TextureStorageManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:13: warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| |- warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTFResourceLoader.swift:78:31: warning: reference to captured var 'error_' in concurrently-executing code
76 | }
77 | DispatchQueue.global(qos: .userInteractive).async {
78 | completionHandler(error_)
| `- warning: reference to captured var 'error_' in concurrently-executing code
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:35:7: warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | }
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
| `- warning: non-final class 'GLTFError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
36 | var title: String?
37 | var code: Int
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:36:9: warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
34 |
35 | class GLTFError: LocalizedError, CustomDebugStringConvertible {
36 | var title: String?
| `- warning: stored property 'title' of 'Sendable'-conforming class 'GLTFError' is mutable; this is an error in the Swift 6 language mode
37 | var code: Int
38 | var errorDescription: String? { return _description }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/Helper.swift:239:16: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
237 | @available(OSX 10.12, iOS 10.0, *)
238 | class MetalDevice {
239 | static var device = {
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 | return MTLCreateSystemDefaultDevice()
241 | }()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:19:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:59:16: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
| |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'TextureStorageManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | private var worker = DispatchQueue(label: "textures_loader")
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:27: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:130:56: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
128 |
129 | worker.async {
130 | let tStatus = self.textureAssociator(gltf: gltf, at: index)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
131 |
132 | if tStatus.status == .no {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:134:45: warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
132 | if tStatus.status == .no {
133 | tStatus.status = .loading
134 | tStatus.associate(property: property)
| `- warning: capture of 'property' with non-sendable type 'SCNMaterialProperty' in a '@Sendable' closure
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h:40:12: note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
38 |
39 | SCN_EXPORT
40 | @interface SCNMaterialProperty : NSObject <SCNAnimatable, NSSecureCoding>
| `- note: class 'SCNMaterialProperty' does not conform to the 'Sendable' protocol
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
7 |
8 | import Foundation
9 | import SceneKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SceneKit'
10 | import os
11 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:136:43: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
134 | tStatus.associate(property: property)
135 |
136 | gltf.loadSampler(sampler: texture.sampler, property: property)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
137 |
138 | let device = MetalDevice.device
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:139:32: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
137 |
138 | let device = MetalDevice.device
139 | let metalOn = (delegate.renderer?.renderingAPI == .metal || device != nil)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
140 | if let descriptor = texture.extensions?[compressedTextureExtensionKey] as? GLTF_3D4MCompressedTextureExtension, metalOn {
141 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:146:28: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
144 | tStatus.content = cTexture
145 |
146 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
147 | group.leave()
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:29: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:153:68: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
151 | if error != nil {
152 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
153 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
154 | group.leave()
155 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:161:36: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
159 | gltf.loadCompressedTexture(descriptor: descriptor, loadLevel: .last) { (cTexture2, error) in
160 |
161 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
162 | group.leave()
163 | return
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:37: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:66: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:168:76: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
166 | if error != nil {
167 | print("Failed to load comressed texture \(error.debugDescription). Fallback on image source.")
168 | self._loadImageTexture(gltf, delegate, texture, tStatus)
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in an isolated closure; this is an error in the Swift 6 language mode
169 | } else {
170 | tStatus.content = cTexture2
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:192:16: warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
190 | fileprivate func _loadImageTexture(_ gltf: GLTF, _ delegate: TextureLoaderDelegate, _ texture: GLTFTexture, _ tStatus: TextureAssociator) {
191 | self.worker.async {
192 | if gltf.isCancelled {
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in a '@Sendable' closure
193 | return
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:25: warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
55 |
56 | @available(OSX 10.12, iOS 10.0, *)
57 | class TextureStorageManager {
| `- note: class 'TextureStorageManager' does not conform to the 'Sendable' protocol
58 |
59 | static let manager = TextureStorageManager()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'self' with non-sendable type 'TextureStorageManager' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:195:58: warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
17 | }
18 |
19 | protocol TextureLoaderDelegate: class {
| `- note: protocol 'TextureLoaderDelegate' does not conform to the 'Sendable' protocol
20 | var renderer: SCNSceneRenderer? { get }
21 | func texturesLoaded()
:
193 | return
194 | }
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
| `- warning: capture of 'delegate' with non-sendable type 'any TextureLoaderDelegate' in a '@Sendable' closure
196 |
197 | if let imageSourceIndex = texture.source {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:197:39: warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
195 | let group = self.group(gltf: gltf, delegate: delegate, true)
196 |
197 | if let imageSourceIndex = texture.source {
| `- warning: capture of 'texture' with non-sendable type 'GLTFTexture' in a '@Sendable' closure
198 | if let gltf_image = gltf.images?[imageSourceIndex] {
199 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTFTexture.swift:14:12: note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
12 | /// A texture and its sampler.
13 | @objcMembers
14 | open class GLTFTexture: NSObject, Codable {
| `- note: class 'GLTFTexture' does not conform to the 'Sendable' protocol
15 | /// Dictionary object with extension-specific objects.
16 | public var extensions: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in a '@Sendable' closure
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:29: warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class TextureAssociator {
| `- note: class 'TextureAssociator' does not conform to the 'Sendable' protocol
25 | var status: TextureStatus = .no
26 |
:
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'tStatus' with non-sendable type 'TextureAssociator' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/TextureStorageManager.swift:202:47: warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
200 | gltf.loader.load(gltf: gltf, resource: gltf_image) { resource, _ in
201 | if resource.image != nil {
202 | tStatus.content = gltf._compress(image: resource.image!)
| `- warning: capture of 'gltf' with non-sendable type 'GLTF' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF/GLTF.swift:14:12: note: class 'GLTF' does not conform to the 'Sendable' protocol
12 | /// The root object for a glTF asset.
13 | @objcMembers
14 | open class GLTF: NSObject, Codable {
| `- note: class 'GLTF' does not conform to the 'Sendable' protocol
15 | /// An array of accessors.
16 | public var accessors: [GLTFAccessor]?
[36/44] Compiling glTFSceneKit GLTFTextureInfo.swift
[37/44] Compiling glTFSceneKit JSONCodingKeys.swift
[38/44] Compiling glTFSceneKit GLTFConverter+Geometry.swift
[39/44] Compiling glTFSceneKit GLTFConverter.swift
[40/44] Compiling glTFSceneKit GLTF+Animation.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:48:20: warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
| |- warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resource_loader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'resource_loader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static var load_canceled = "load_canceled"
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:49:20: warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
49 | static var load_canceled = "load_canceled"
| |- warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'load_canceled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'load_canceled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:139:16: warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | extension GLTFBuffer {
138 |
139 | static var data_associate_key = "data_associate_key"
| |- warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public var data: Data? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:149:16: warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | extension GLTFImage {
148 |
149 | static var image_associate_key = "image_associate_key"
| |- warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'image_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'image_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public var image: OSImage? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:40:25: warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
37 | @objc public protocol SceneLoadingDelegate {
38 | @objc optional func scene(_ didLoadScene: SCNScene? )
39 | @objc optional func scene(_ scene: SCNScene?, didCreate camera: SCNCamera)
| `- note: 'scene(_:didCreate:)' previously declared here
40 | @objc optional func scene(_ scene: SCNScene?, didCreate node: SCNNode)
| `- warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
41 | @objc optional func scene(_ scene: SCNScene?, didCreate material: SCNMaterial, for node: SCNNode)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:54:58: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
52 | public var loader: GLTFResourceLoader {
53 | get {
54 | var loader_ = objc_getAssociatedObject(self, &Keys.resource_loader) as? GLTFResourceLoader
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
55 | if loader_ != nil {
56 | return loader_!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:62:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
60 | return loader_!
61 | }
62 | set { objc_setAssociatedObject(self, &Keys.resource_loader, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:67:54: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
65 | /// Status set to true if `cancel` been call.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:68:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:142:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
140 |
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:143:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:152:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
150 |
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:153:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
154 | }
155 | }
[41/44] Compiling glTFSceneKit GLTF+CompressedTexture.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:48:20: warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
| |- warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resource_loader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'resource_loader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static var load_canceled = "load_canceled"
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:49:20: warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
49 | static var load_canceled = "load_canceled"
| |- warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'load_canceled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'load_canceled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:139:16: warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | extension GLTFBuffer {
138 |
139 | static var data_associate_key = "data_associate_key"
| |- warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public var data: Data? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:149:16: warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | extension GLTFImage {
148 |
149 | static var image_associate_key = "image_associate_key"
| |- warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'image_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'image_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public var image: OSImage? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:40:25: warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
37 | @objc public protocol SceneLoadingDelegate {
38 | @objc optional func scene(_ didLoadScene: SCNScene? )
39 | @objc optional func scene(_ scene: SCNScene?, didCreate camera: SCNCamera)
| `- note: 'scene(_:didCreate:)' previously declared here
40 | @objc optional func scene(_ scene: SCNScene?, didCreate node: SCNNode)
| `- warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
41 | @objc optional func scene(_ scene: SCNScene?, didCreate material: SCNMaterial, for node: SCNNode)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:54:58: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
52 | public var loader: GLTFResourceLoader {
53 | get {
54 | var loader_ = objc_getAssociatedObject(self, &Keys.resource_loader) as? GLTFResourceLoader
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
55 | if loader_ != nil {
56 | return loader_!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:62:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
60 | return loader_!
61 | }
62 | set { objc_setAssociatedObject(self, &Keys.resource_loader, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:67:54: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
65 | /// Status set to true if `cancel` been call.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:68:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:142:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
140 |
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:143:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:152:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
150 |
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:153:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
154 | }
155 | }
[42/44] Compiling glTFSceneKit GLTF+Draco.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:48:20: warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
| |- warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resource_loader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'resource_loader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static var load_canceled = "load_canceled"
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:49:20: warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
49 | static var load_canceled = "load_canceled"
| |- warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'load_canceled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'load_canceled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:139:16: warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | extension GLTFBuffer {
138 |
139 | static var data_associate_key = "data_associate_key"
| |- warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public var data: Data? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:149:16: warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | extension GLTFImage {
148 |
149 | static var image_associate_key = "image_associate_key"
| |- warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'image_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'image_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public var image: OSImage? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:40:25: warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
37 | @objc public protocol SceneLoadingDelegate {
38 | @objc optional func scene(_ didLoadScene: SCNScene? )
39 | @objc optional func scene(_ scene: SCNScene?, didCreate camera: SCNCamera)
| `- note: 'scene(_:didCreate:)' previously declared here
40 | @objc optional func scene(_ scene: SCNScene?, didCreate node: SCNNode)
| `- warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
41 | @objc optional func scene(_ scene: SCNScene?, didCreate material: SCNMaterial, for node: SCNNode)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:54:58: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
52 | public var loader: GLTFResourceLoader {
53 | get {
54 | var loader_ = objc_getAssociatedObject(self, &Keys.resource_loader) as? GLTFResourceLoader
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
55 | if loader_ != nil {
56 | return loader_!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:62:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
60 | return loader_!
61 | }
62 | set { objc_setAssociatedObject(self, &Keys.resource_loader, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:67:54: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
65 | /// Status set to true if `cancel` been call.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:68:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:142:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
140 |
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:143:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:152:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
150 |
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:153:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
154 | }
155 | }
[43/44] Compiling glTFSceneKit GLTF+Material.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:48:20: warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
| |- warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resource_loader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'resource_loader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static var load_canceled = "load_canceled"
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:49:20: warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
49 | static var load_canceled = "load_canceled"
| |- warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'load_canceled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'load_canceled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:139:16: warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | extension GLTFBuffer {
138 |
139 | static var data_associate_key = "data_associate_key"
| |- warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public var data: Data? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:149:16: warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | extension GLTFImage {
148 |
149 | static var image_associate_key = "image_associate_key"
| |- warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'image_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'image_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public var image: OSImage? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:40:25: warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
37 | @objc public protocol SceneLoadingDelegate {
38 | @objc optional func scene(_ didLoadScene: SCNScene? )
39 | @objc optional func scene(_ scene: SCNScene?, didCreate camera: SCNCamera)
| `- note: 'scene(_:didCreate:)' previously declared here
40 | @objc optional func scene(_ scene: SCNScene?, didCreate node: SCNNode)
| `- warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
41 | @objc optional func scene(_ scene: SCNScene?, didCreate material: SCNMaterial, for node: SCNNode)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:54:58: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
52 | public var loader: GLTFResourceLoader {
53 | get {
54 | var loader_ = objc_getAssociatedObject(self, &Keys.resource_loader) as? GLTFResourceLoader
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
55 | if loader_ != nil {
56 | return loader_!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:62:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
60 | return loader_!
61 | }
62 | set { objc_setAssociatedObject(self, &Keys.resource_loader, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:67:54: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
65 | /// Status set to true if `cancel` been call.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:68:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:142:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
140 |
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:143:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:152:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
150 |
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:153:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
154 | }
155 | }
[44/44] Compiling glTFSceneKit GLTF+SceneKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:48:20: warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
| |- warning: static property 'resource_loader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resource_loader' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'resource_loader' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static var load_canceled = "load_canceled"
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:49:20: warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | struct Keys {
48 | static var resource_loader = "resource_loader"
49 | static var load_canceled = "load_canceled"
| |- warning: static property 'load_canceled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'load_canceled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'load_canceled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:139:16: warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 | extension GLTFBuffer {
138 |
139 | static var data_associate_key = "data_associate_key"
| |- warning: static property 'data_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'data_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public var data: Data? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:149:16: warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | extension GLTFImage {
148 |
149 | static var image_associate_key = "image_associate_key"
| |- warning: static property 'image_associate_key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'image_associate_key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'image_associate_key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public var image: OSImage? {
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:40:25: warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
37 | @objc public protocol SceneLoadingDelegate {
38 | @objc optional func scene(_ didLoadScene: SCNScene? )
39 | @objc optional func scene(_ scene: SCNScene?, didCreate camera: SCNCamera)
| `- note: 'scene(_:didCreate:)' previously declared here
40 | @objc optional func scene(_ scene: SCNScene?, didCreate node: SCNNode)
| `- warning: method 'scene(_:didCreate:)' with Objective-C selector 'scene:didCreate:' conflicts with previous declaration with the same Objective-C selector; this is an error in the Swift 6 language mode
41 | @objc optional func scene(_ scene: SCNScene?, didCreate material: SCNMaterial, for node: SCNNode)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:54:58: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
52 | public var loader: GLTFResourceLoader {
53 | get {
54 | var loader_ = objc_getAssociatedObject(self, &Keys.resource_loader) as? GLTFResourceLoader
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
55 | if loader_ != nil {
56 | return loader_!
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:62:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
60 | return loader_!
61 | }
62 | set { objc_setAssociatedObject(self, &Keys.resource_loader, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:67:54: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
65 | /// Status set to true if `cancel` been call.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:68:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
66 | @objc open private(set) var isCancelled: Bool {
67 | get { return (objc_getAssociatedObject(self, &Keys.load_canceled) as? Bool) ?? false }
68 | set { objc_setAssociatedObject(self, &Keys.load_canceled, newValue, .OBJC_ASSOCIATION_ASSIGN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:142:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
140 |
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:143:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
141 | public var data: Data? {
142 | get { return objc_getAssociatedObject(self, &GLTFBuffer.data_associate_key) as? Data }
143 | set { objc_setAssociatedObject(self, &GLTFBuffer.data_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:152:53: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
150 |
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/glTFSceneKit/GLTF+SceneKit.swift:153:46: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
151 | public var image: OSImage? {
152 | get { return objc_getAssociatedObject(self, &GLTFImage.image_associate_key) as? OSImage }
153 | set { objc_setAssociatedObject(self, &GLTFImage.image_associate_key, newValue, .OBJC_ASSOCIATION_RETAIN) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
154 | }
155 | }
Build complete! (9.08s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "glTFSceneKit",
"name" : "glTFSceneKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
}
],
"products" : [
{
"name" : "glTFSceneKit",
"targets" : [
"glTFSceneKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "glTFSceneKitTests",
"module_type" : "SwiftTarget",
"name" : "glTFSceneKitTests",
"path" : "Tests/glTFSceneKitTests",
"sources" : [
"gltf_scenekitTests.swift"
],
"target_dependencies" : [
"glTFSceneKit"
],
"type" : "test"
},
{
"c99name" : "glTFSceneKit",
"module_type" : "SwiftTarget",
"name" : "glTFSceneKit",
"path" : "Sources/glTFSceneKit",
"product_memberships" : [
"glTFSceneKit"
],
"sources" : [
"GLTF+Animation.swift",
"GLTF+CompressedTexture.swift",
"GLTF+Draco.swift",
"GLTF+Material.swift",
"GLTF+SceneKit.swift",
"GLTF/GLTF.swift",
"GLTF/GLTFAccessor.swift",
"GLTF/GLTFAccessorSparse.swift",
"GLTF/GLTFAccessorSparseIndices.swift",
"GLTF/GLTFAccessorSparseValues.swift",
"GLTF/GLTFAnimation.swift",
"GLTF/GLTFAnimationChannel.swift",
"GLTF/GLTFAnimationChannelTarget.swift",
"GLTF/GLTFAnimationSampler.swift",
"GLTF/GLTFAsset.swift",
"GLTF/GLTFBuffer.swift",
"GLTF/GLTFBufferView.swift",
"GLTF/GLTFCamera.swift",
"GLTF/GLTFCameraOrthographic.swift",
"GLTF/GLTFCameraPerspective.swift",
"GLTF/GLTFImage.swift",
"GLTF/GLTFKHRDracoMeshCompressionExtension.swift",
"GLTF/GLTFMaterial.swift",
"GLTF/GLTFMaterialNormalTextureInfo.swift",
"GLTF/GLTFMaterialOcclusionTextureInfo.swift",
"GLTF/GLTFMaterialPBRMetallicRoughness.swift",
"GLTF/GLTFMesh.swift",
"GLTF/GLTFMeshPrimitive.swift",
"GLTF/GLTFNode.swift",
"GLTF/GLTFSampler.swift",
"GLTF/GLTFScene.swift",
"GLTF/GLTFSkin.swift",
"GLTF/GLTFTexture.swift",
"GLTF/GLTFTextureInfo.swift",
"GLTF/JSONCodingKeys.swift",
"GLTFConverter+Geometry.swift",
"GLTFConverter.swift",
"GLTFResourceLoader.swift",
"GLTF_3D4MCompressedTextureExtension.swift",
"Helper.swift",
"TextureStorageManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.