Build Information
Successful build of Model3DView, reference main (de7995
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 06:42:29 UTC.
Swift 6 data race errors: 9
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frzi/swiftui-model3dview.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/frzi/swiftui-model3dview
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at de79951 Update Math.swift
Cloned https://github.com/frzi/swiftui-model3dview.git
Revision (git rev-parse @):
de79951f2ee1ad888a7c61fcce57e13e5a6581f2
SUCCESS checkout https://github.com/frzi/swiftui-model3dview.git at main
Fetching https://github.com/frzi/GLTFSceneKit
Fetching https://github.com/timdonnelly/DisplayLink
[1/39] Fetching displaylink
Fetched https://github.com/timdonnelly/DisplayLink from cache (0.64s)
[1/1088] Fetching gltfscenekit
Fetched https://github.com/frzi/GLTFSceneKit from cache (1.26s)
Computing version for https://github.com/timdonnelly/DisplayLink
Computed https://github.com/timdonnelly/DisplayLink at 0.2.0 (0.56s)
Computing version for https://github.com/frzi/GLTFSceneKit
Computed https://github.com/frzi/GLTFSceneKit at 0.3.1 (0.56s)
Creating working copy for https://github.com/timdonnelly/DisplayLink
Working copy of https://github.com/timdonnelly/DisplayLink resolved at 0.2.0
Creating working copy for https://github.com/frzi/GLTFSceneKit
Working copy of https://github.com/frzi/GLTFSceneKit resolved at 0.3.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftui-model3dview",
"name": "Model3DView",
"url": "https://github.com/frzi/swiftui-model3dview.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-model3dview",
"dependencies": [
{
"identity": "gltfscenekit",
"name": "GLTFSceneKit",
"url": "https://github.com/frzi/GLTFSceneKit",
"version": "0.4.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GLTFSceneKit",
"dependencies": [
]
},
{
"identity": "displaylink",
"name": "DisplayLink",
"url": "https://github.com/timdonnelly/DisplayLink",
"version": "0.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DisplayLink",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/frzi/swiftui-model3dview.git
[1/540] Fetching swiftui-model3dview
Fetched https://github.com/frzi/swiftui-model3dview.git from cache (1.26s)
Fetching https://github.com/frzi/GLTFSceneKit from cache
Fetching https://github.com/timdonnelly/DisplayLink from cache
Fetched https://github.com/timdonnelly/DisplayLink from cache (0.46s)
Fetched https://github.com/frzi/GLTFSceneKit from cache (0.46s)
Computing version for https://github.com/timdonnelly/DisplayLink
Computed https://github.com/timdonnelly/DisplayLink at 0.2.0 (0.02s)
Computing version for https://github.com/frzi/GLTFSceneKit
Computed https://github.com/frzi/GLTFSceneKit at 0.4.1 (0.53s)
Creating working copy for https://github.com/timdonnelly/DisplayLink
Working copy of https://github.com/timdonnelly/DisplayLink resolved at 0.2.0
Creating working copy for https://github.com/frzi/GLTFSceneKit
Working copy of https://github.com/frzi/GLTFSceneKit resolved at 0.4.1
Creating working copy for https://github.com/frzi/swiftui-model3dview.git
Working copy of https://github.com/frzi/swiftui-model3dview.git resolved at main (de79951)
warning: '.resolve-product-dependencies': dependency 'swiftui-model3dview' is not used by any target
Found 2 product dependencies
- GLTFSceneKit
- DisplayLink
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/frzi/swiftui-model3dview.git
{
"dependencies" : [
{
"identity" : "gltfscenekit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/frzi/GLTFSceneKit"
},
{
"identity" : "displaylink",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/timdonnelly/DisplayLink"
}
],
"manifest_display_name" : "Model3DView",
"name" : "Model3DView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "Model3DView",
"targets" : [
"Model3DView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Model3DViewTests",
"module_type" : "SwiftTarget",
"name" : "Model3DViewTests",
"path" : "Tests/Model3DViewTests",
"sources" : [
"Model3DViewTests.swift"
],
"target_dependencies" : [
"Model3DView"
],
"type" : "test"
},
{
"c99name" : "Model3DView",
"module_type" : "SwiftTarget",
"name" : "Model3DView",
"path" : "Sources/Model3DView",
"product_dependencies" : [
"GLTFSceneKit",
"DisplayLink"
],
"product_memberships" : [
"Model3DView"
],
"sources" : [
"Camera/CameraControls.swift",
"Camera/Cameras.swift",
"EnvironmentValues.swift",
"Model3DView.swift",
"Transform3D.swift",
"Types.swift",
"Utils/Euler.swift",
"Utils/Math.swift",
"Utils/ResourcesCache.swift",
"View+Modifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/11] Write sources
[3/11] Copying GLTFShaderModifierSurface_pbrSpecularGlossiness.shader
[4/11] Copying GLTFShaderModifierSurface_pbrSpecularGlossiness_doubleSidedWorkaround.shader
[5/11] Copying GLTFShaderModifierSurface_pbrSpecularGlossiness_texture_doubleSidedWorkaround.shader
[5/11] Copying GLTFShaderModifierFragment_alphaCutoff.shader
[5/11] Copying GLTFShaderModifierSurface.shader
[6/11] Copying GLTFShaderModifierSurface_doubleSidedWorkaround.shader
[7/11] Copying GLTFShaderModifierSurface_alphaModeBlend.shader
[10/11] Write swift-version--7754E27361AE5C74.txt
[12/55] Emitting module GLTFSceneKit
[13/59] Compiling GLTFSceneKit GLTFGlTFProperty.swift
[14/59] Compiling GLTFSceneKit GLTFGlTFid.swift
[15/59] Compiling GLTFSceneKit GLTFImage.swift
[16/59] Compiling GLTFSceneKit GLTFMaterial.swift
[17/59] Compiling GLTFSceneKit GLTFAccessor.swift
[18/59] Compiling GLTFSceneKit GLTFAccessorSparse.swift
[19/59] Compiling GLTFSceneKit GLTFAccessorSparseIndices.swift
[20/59] Compiling GLTFSceneKit GLTFAccessorSparseValues.swift
[21/59] Compiling GLTFSceneKit GLTFAnimation.swift
[22/59] Compiling GLTFSceneKit GLTFBufferView.swift
[23/59] Compiling GLTFSceneKit GLTFCamera.swift
[24/59] Compiling GLTFSceneKit GLTFCameraOrthographic.swift
[25/59] Compiling GLTFSceneKit GLTFCameraPerspective.swift
[26/59] Compiling GLTFSceneKit GLTFExtension.swift
[27/59] Compiling GLTFSceneKit GLTFSkin.swift
[28/59] Compiling GLTFSceneKit GLTFTexture.swift
[29/59] Compiling GLTFSceneKit GLTFTextureInfo.swift
[30/59] Compiling GLTFSceneKit ExtensionList.swift
[31/59] Compiling GLTFSceneKit GLTFMeshPrimitive.swift
[32/59] Compiling GLTFSceneKit GLTFNode.swift
[33/59] Compiling GLTFSceneKit GLTFSampler.swift
[34/59] Compiling GLTFSceneKit GLTFScene.swift
[35/59] Compiling GLTFSceneKit GLTFAnimationChannel.swift
[36/59] Compiling GLTFSceneKit GLTFAnimationChannelTarget.swift
[37/59] Compiling GLTFSceneKit GLTFAnimationSampler.swift
[38/59] Compiling GLTFSceneKit GLTFAsset.swift
[39/59] Compiling GLTFSceneKit GLTFBuffer.swift
[40/59] Compiling GLTFSceneKit GLTFExtras.swift
[41/59] Compiling GLTFSceneKit GLTFExtrasTargetNames.swift
[42/59] Compiling GLTFSceneKit GLTFGlTF.swift
[43/59] Compiling GLTFSceneKit GLTFGlTFChildOfRootProperty.swift
[44/59] Compiling GLTFSceneKit GLTFMaterialNormalTextureInfo.swift
[45/59] Compiling GLTFSceneKit GLTFMaterialOcclusionTextureInfo.swift
[46/59] Compiling GLTFSceneKit GLTFMaterialPbrMetallicRoughness.swift
[47/59] Compiling GLTFSceneKit GLTFMesh.swift
[48/59] Compiling GLTFSceneKit GLTFKHRMaterialsCommon_GLTFKHRMaterialsCommon.swift
[49/59] Compiling GLTFSceneKit GLTFKHRMaterialsPbrSpecularGlossiness_GLTFKHRMaterialsPbrSpecularGlossiness.swift
[50/59] Compiling GLTFSceneKit GLTFKHRMaterialsUnlit.swift
[51/59] Compiling GLTFSceneKit resource_bundle_accessor.swift
[52/59] Compiling GLTFSceneKit GLTFErrors.swift
[53/59] Compiling GLTFSceneKit GLTFFunctions.swift
[54/59] Compiling GLTFSceneKit GLTFSceneSource.swift
[55/59] Compiling GLTFSceneKit GLTFTypes.swift
[56/59] Compiling GLTFSceneKit GLTFUnarchiver.swift
[57/59] Compiling DisplayLink OnFrame.swift
[58/59] Emitting module DisplayLink
[59/59] Compiling DisplayLink DisplayLink.swift
[60/69] Compiling Model3DView Transform3D.swift
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Transform3D.swift:27:6: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | var properties: Transform3DProperties
26 |
27 | var animatableData: AnimatablePair<Euler, AnimatablePair<Vector3, Vector3>> {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | get {
29 | .init(properties.rotation, .init(properties.scale, properties.translation))
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
[61/70] Compiling Model3DView Types.swift
[62/70] Compiling Model3DView Math.swift
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:45:1: warning: extension declares a conformance of imported type 'simd_quatf' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
43 | }
44 |
45 | extension Quaternion: ExpressibleByArrayLiteral {
| |- warning: extension declares a conformance of imported type 'simd_quatf' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
46 | public init(arrayLiteral elements: Float...) {
47 | precondition(elements.count == 4)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:133:1: warning: extension declares a conformance of imported type 'SIMD2' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
131 |
132 | // MARK: - Vector2 utilities
133 | extension Vector2: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral {
| |- warning: extension declares a conformance of imported type 'SIMD2' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
134 | public init(floatLiteral value: Float) {
135 | self.init(repeating: value)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:144:1: warning: extension declares a conformance of imported type 'SIMD3' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
142 |
143 | // MARK: - Vector3 utilities
144 | extension Vector3: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral {
| |- warning: extension declares a conformance of imported type 'SIMD3' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
145 | public init(floatLiteral value: Float) {
146 | self.init(repeating: value)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:155:1: warning: extension declares a conformance of imported type 'SIMD4' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
153 |
154 | // MARK: - Vector4 utilities
155 | extension Vector4: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral {
| |- warning: extension declares a conformance of imported type 'SIMD4' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
156 | public init(floatLiteral value: Float) {
157 | self.init(repeating: value)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:166:1: warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
164 |
165 | // MARK: - Additive / vector arithemtic
166 | extension SIMD2: AdditiveArithmetic where Scalar: FloatingPoint {}
| |- warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
167 |
168 | extension Vector2: VectorArithmetic {
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:168:1: warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
166 | extension SIMD2: AdditiveArithmetic where Scalar: FloatingPoint {}
167 |
168 | extension Vector2: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
169 | public mutating func scale(by rhs: Double) {
170 | self *= Float(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:178:1: warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
176 | }
177 |
178 | extension SIMD3: AdditiveArithmetic where Scalar: FloatingPoint {}
| |- warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
179 |
180 | extension Vector3: VectorArithmetic {
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:180:1: warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
178 | extension SIMD3: AdditiveArithmetic where Scalar: FloatingPoint {}
179 |
180 | extension Vector3: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
181 | public mutating func scale(by rhs: Double) {
182 | self *= Float(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:190:1: warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
188 | }
189 |
190 | extension SIMD4: AdditiveArithmetic where Scalar: FloatingPoint {}
| |- warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
191 |
192 | extension Vector4: VectorArithmetic {
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:192:1: warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
190 | extension SIMD4: AdditiveArithmetic where Scalar: FloatingPoint {}
191 |
192 | extension Vector4: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
193 | public mutating func scale(by rhs: Double) {
194 | self *= Float(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:202:1: warning: extension declares a conformance of imported type 'simd_quatf' to imported protocols 'VectorArithmetic', 'AdditiveArithmetic'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
200 | }
201 |
202 | extension Quaternion: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'simd_quatf' to imported protocols 'VectorArithmetic', 'AdditiveArithmetic'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
203 | public mutating func scale(by rhs: Double) {
204 | self *= Float(rhs)
[63/70] Compiling Model3DView Euler.swift
[64/70] Compiling Model3DView ResourcesCache.swift
[65/70] Compiling Model3DView View+Modifiers.swift
[66/70] Compiling Model3DView Cameras.swift
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Camera/Cameras.swift:42:6: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
40 | var camera: C
41 |
42 | var animatableData: AnimatablePair<Vector3, Euler> {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
43 | get {
44 | .init(camera.position, camera.rotation)
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
[67/70] Compiling Model3DView Model3DView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:124:21: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
121 |
122 | // MARK: - Equatable
123 | extension Model3DView: Equatable {
| `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
124 | public static func == (lhs: Model3DView, rhs: Model3DView) -> Bool {
| |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
125 | lhs.sceneFile == rhs.sceneFile
126 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:164:22: warning: static property 'imageCache' is not concurrency-safe because non-'Sendable' type 'ResourcesCache<URL, PlatformImage>' (aka 'ResourcesCache<URL, NSImage>') may have shared mutable state; this is an error in the Swift 6 language mode
162 |
163 | // Keeping track of already loaded resources.
164 | private static let imageCache = ResourcesCache<URL, PlatformImage>()
| |- warning: static property 'imageCache' is not concurrency-safe because non-'Sendable' type 'ResourcesCache<URL, PlatformImage>' (aka 'ResourcesCache<URL, NSImage>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'imageCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | private static let sceneCache = AsyncResourcesCache<URL, SCNScene>()
166 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/ResourcesCache.swift:13:13: note: generic class 'ResourcesCache' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Resources are loaded via a given action and kept in memory as long as there's at least one reference.
13 | final class ResourcesCache<K: Hashable, T: AnyObject> {
| `- note: generic class 'ResourcesCache' does not conform to the 'Sendable' protocol
14 | private var table: [K : WeakValue] = [:]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:165:22: warning: static property 'sceneCache' is not concurrency-safe because non-'Sendable' type 'AsyncResourcesCache<URL, SCNScene>' may have shared mutable state; this is an error in the Swift 6 language mode
163 | // Keeping track of already loaded resources.
164 | private static let imageCache = ResourcesCache<URL, PlatformImage>()
165 | private static let sceneCache = AsyncResourcesCache<URL, SCNScene>()
| |- warning: static property 'sceneCache' is not concurrency-safe because non-'Sendable' type 'AsyncResourcesCache<URL, SCNScene>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sceneCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 |
167 | // MARK: -
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/ResourcesCache.swift:44:13: note: generic class 'AsyncResourcesCache' does not conform to the 'Sendable' protocol
42 | ///
43 | /// Resources are loaded asynchronously and kept in memory as long as there's at least one reference.
44 | final class AsyncResourcesCache<K: Hashable, T: AnyObject> {
| `- note: generic class 'AsyncResourcesCache' does not conform to the 'Sendable' protocol
45 | private var table: [K : WeakFutureValue] = [:]
46 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:212:9: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 |
209 | // MARK: - Setting scene properties.
210 | fileprivate func setView(_ sceneView: SCNView) {
| `- note: add '@MainActor' to make instance method 'setView' part of global actor 'MainActor'
211 | view = sceneView
212 | view.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
213 | view.pointOfView = cameraNode
214 | view.scene = scene
SceneKit.SCNView:31:30: note: mutation of this property is only permitted within the actor
29 | @available(macOS 10.10, *)
30 | open var sceneTime: TimeInterval { get set }
31 | @MainActor weak open var delegate: (any SCNSceneRendererDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
32 | open var isPlaying: Bool { get set }
33 | open var loops: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:213:9: warning: main actor-isolated property 'pointOfView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 |
209 | // MARK: - Setting scene properties.
210 | fileprivate func setView(_ sceneView: SCNView) {
| `- note: add '@MainActor' to make instance method 'setView' part of global actor 'MainActor'
211 | view = sceneView
212 | view.delegate = self
213 | view.pointOfView = cameraNode
| `- warning: main actor-isolated property 'pointOfView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
214 | view.scene = scene
215 | }
SceneKit.SCNView:34:14: note: mutation of this property is only permitted within the actor
32 | open var isPlaying: Bool { get set }
33 | open var loops: Bool { get set }
34 | open var pointOfView: SCNNode? { get set }
| `- note: mutation of this property is only permitted within the actor
35 | @MainActor open var autoenablesDefaultLighting: Bool { get set }
36 | open var isJitteringEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:214:9: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 |
209 | // MARK: - Setting scene properties.
210 | fileprivate func setView(_ sceneView: SCNView) {
| `- note: add '@MainActor' to make instance method 'setView' part of global actor 'MainActor'
211 | view = sceneView
212 | view.delegate = self
213 | view.pointOfView = cameraNode
214 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
215 | }
216 |
SceneKit.SCNView:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class SCNView : NSView, SCNSceneRenderer, SCNTechniqueSupport {
2 | public init(frame: NSRect, options: [String : Any]? = nil)
3 | open var scene: SCNScene? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var rendersContinuously: Bool { get set }
5 | @NSCopying @MainActor open var backgroundColor: NSColor { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:368:59: warning: main actor-isolated property 'currentViewport' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
361 | */
362 | extension Model3DView.SceneCoordinator: SCNSceneRendererDelegate {
363 | public func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) {
| `- note: add '@MainActor' to make instance method 'renderer(_:updateAtTime:)' part of global actor 'MainActor'
364 | // Update the content node.
365 | contentNode.simdTransform = Matrix4x4(scale: Vector3(repeating: contentScale)) * transform
366 |
367 | // Update the camera.
368 | let projection = camera.projectionMatrix(viewport: view.currentViewport.size)
| `- warning: main actor-isolated property 'currentViewport' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
369 | cameraNode.camera?.projectionTransform = SCNMatrix4(projection)
370 |
SceneKit.SCNView:67:14: note: property declared here
65 | open var audioListener: SCNNode? { get set }
66 | @available(macOS 10.15, *)
67 | open var currentViewport: CGRect { get }
| `- note: property declared here
68 | @available(macOS, introduced: 10.8, deprecated: 10.10)
69 | open var currentTime: TimeInterval { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:414:15: warning: call to main actor-isolated initializer 'init(named:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | // MARK: - Initializers
31 | /// Load a 3D asset from the app's bundle.
32 | public init(named: String) {
| `- note: calls to initializer 'init(named:)' from outside of its actor context are implicitly asynchronous
33 | sceneFile = .url(Bundle.main.url(forResource: named, withExtension: nil))
34 | }
:
412 | @LibraryContentBuilder
413 | var views: [LibraryItem] {
414 | LibraryItem(Model3DView(named: "model.gltf"), visible: true, title: "Model3D View")
| `- warning: call to main actor-isolated initializer 'init(named:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
415 | }
416 | }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:250:12: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
248 | .sink { completion in
249 | if case .failure(_) = completion {
250 | Task { @MainActor in
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
251 | for onLoad in self.onLoadHandlers {
252 | onLoad(.failure)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:303:9: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
301 | contentNode.addChildNode(copiedRoot)
302 |
303 | Task { @MainActor in
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
304 | for onLoad in self.onLoadHandlers {
305 | onLoad(.success)
[68/70] Emitting module Model3DView
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Camera/Cameras.swift:42:6: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
40 | var camera: C
41 |
42 | var animatableData: AnimatablePair<Vector3, Euler> {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
43 | get {
44 | .init(camera.position, camera.rotation)
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:10:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: - Environment keys.
9 | struct CameraEnvironmentKey: EnvironmentKey {
10 | static var defaultValue: Camera = PerspectiveCamera()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:14:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | struct IBLEnvironmentKey: EnvironmentKey {
14 | static var defaultValue: IBLValues?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:18:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | struct SkyboxEnvironmentKey: EnvironmentKey {
18 | static var defaultValue: URL?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:22:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | struct Transform3DEnvironmentKey: EnvironmentKey {
22 | static var defaultValue = Transform3DProperties()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:124:21: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
121 |
122 | // MARK: - Equatable
123 | extension Model3DView: Equatable {
| `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
124 | public static func == (lhs: Model3DView, rhs: Model3DView) -> Bool {
| |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
125 | lhs.sceneFile == rhs.sceneFile
126 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:164:22: warning: static property 'imageCache' is not concurrency-safe because non-'Sendable' type 'ResourcesCache<URL, PlatformImage>' (aka 'ResourcesCache<URL, NSImage>') may have shared mutable state; this is an error in the Swift 6 language mode
162 |
163 | // Keeping track of already loaded resources.
164 | private static let imageCache = ResourcesCache<URL, PlatformImage>()
| |- warning: static property 'imageCache' is not concurrency-safe because non-'Sendable' type 'ResourcesCache<URL, PlatformImage>' (aka 'ResourcesCache<URL, NSImage>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'imageCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | private static let sceneCache = AsyncResourcesCache<URL, SCNScene>()
166 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/ResourcesCache.swift:13:13: note: generic class 'ResourcesCache' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Resources are loaded via a given action and kept in memory as long as there's at least one reference.
13 | final class ResourcesCache<K: Hashable, T: AnyObject> {
| `- note: generic class 'ResourcesCache' does not conform to the 'Sendable' protocol
14 | private var table: [K : WeakValue] = [:]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Model3DView.swift:165:22: warning: static property 'sceneCache' is not concurrency-safe because non-'Sendable' type 'AsyncResourcesCache<URL, SCNScene>' may have shared mutable state; this is an error in the Swift 6 language mode
163 | // Keeping track of already loaded resources.
164 | private static let imageCache = ResourcesCache<URL, PlatformImage>()
165 | private static let sceneCache = AsyncResourcesCache<URL, SCNScene>()
| |- warning: static property 'sceneCache' is not concurrency-safe because non-'Sendable' type 'AsyncResourcesCache<URL, SCNScene>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sceneCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 |
167 | // MARK: -
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/ResourcesCache.swift:44:13: note: generic class 'AsyncResourcesCache' does not conform to the 'Sendable' protocol
42 | ///
43 | /// Resources are loaded asynchronously and kept in memory as long as there's at least one reference.
44 | final class AsyncResourcesCache<K: Hashable, T: AnyObject> {
| `- note: generic class 'AsyncResourcesCache' does not conform to the 'Sendable' protocol
45 | private var table: [K : WeakFutureValue] = [:]
46 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Transform3D.swift:27:6: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | var properties: Transform3DProperties
26 |
27 | var animatableData: AnimatablePair<Euler, AnimatablePair<Vector3, Vector3>> {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | get {
29 | .init(properties.rotation, .init(properties.scale, properties.translation))
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:45:1: warning: extension declares a conformance of imported type 'simd_quatf' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
43 | }
44 |
45 | extension Quaternion: ExpressibleByArrayLiteral {
| |- warning: extension declares a conformance of imported type 'simd_quatf' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
46 | public init(arrayLiteral elements: Float...) {
47 | precondition(elements.count == 4)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:133:1: warning: extension declares a conformance of imported type 'SIMD2' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
131 |
132 | // MARK: - Vector2 utilities
133 | extension Vector2: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral {
| |- warning: extension declares a conformance of imported type 'SIMD2' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
134 | public init(floatLiteral value: Float) {
135 | self.init(repeating: value)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:144:1: warning: extension declares a conformance of imported type 'SIMD3' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
142 |
143 | // MARK: - Vector3 utilities
144 | extension Vector3: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral {
| |- warning: extension declares a conformance of imported type 'SIMD3' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
145 | public init(floatLiteral value: Float) {
146 | self.init(repeating: value)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:155:1: warning: extension declares a conformance of imported type 'SIMD4' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
153 |
154 | // MARK: - Vector4 utilities
155 | extension Vector4: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral {
| |- warning: extension declares a conformance of imported type 'SIMD4' to imported protocols 'ExpressibleByFloatLiteral', 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
156 | public init(floatLiteral value: Float) {
157 | self.init(repeating: value)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:166:1: warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
164 |
165 | // MARK: - Additive / vector arithemtic
166 | extension SIMD2: AdditiveArithmetic where Scalar: FloatingPoint {}
| |- warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
167 |
168 | extension Vector2: VectorArithmetic {
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:168:1: warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
166 | extension SIMD2: AdditiveArithmetic where Scalar: FloatingPoint {}
167 |
168 | extension Vector2: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'SIMD2' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
169 | public mutating func scale(by rhs: Double) {
170 | self *= Float(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:178:1: warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
176 | }
177 |
178 | extension SIMD3: AdditiveArithmetic where Scalar: FloatingPoint {}
| |- warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
179 |
180 | extension Vector3: VectorArithmetic {
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:180:1: warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
178 | extension SIMD3: AdditiveArithmetic where Scalar: FloatingPoint {}
179 |
180 | extension Vector3: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'SIMD3' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
181 | public mutating func scale(by rhs: Double) {
182 | self *= Float(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:190:1: warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
188 | }
189 |
190 | extension SIMD4: AdditiveArithmetic where Scalar: FloatingPoint {}
| |- warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'AdditiveArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
191 |
192 | extension Vector4: VectorArithmetic {
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:192:1: warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
190 | extension SIMD4: AdditiveArithmetic where Scalar: FloatingPoint {}
191 |
192 | extension Vector4: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'SIMD4' to imported protocol 'VectorArithmetic'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
193 | public mutating func scale(by rhs: Double) {
194 | self *= Float(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/Utils/Math.swift:202:1: warning: extension declares a conformance of imported type 'simd_quatf' to imported protocols 'VectorArithmetic', 'AdditiveArithmetic'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
200 | }
201 |
202 | extension Quaternion: VectorArithmetic {
| |- warning: extension declares a conformance of imported type 'simd_quatf' to imported protocols 'VectorArithmetic', 'AdditiveArithmetic'; this will not behave correctly if the owners of 'simd' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
203 | public mutating func scale(by rhs: Double) {
204 | self *= Float(rhs)
[69/70] Compiling Model3DView EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:10:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: - Environment keys.
9 | struct CameraEnvironmentKey: EnvironmentKey {
10 | static var defaultValue: Camera = PerspectiveCamera()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:14:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | struct IBLEnvironmentKey: EnvironmentKey {
14 | static var defaultValue: IBLValues?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:18:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | struct SkyboxEnvironmentKey: EnvironmentKey {
18 | static var defaultValue: URL?
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Model3DView/EnvironmentValues.swift:22:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | struct Transform3DEnvironmentKey: EnvironmentKey {
22 | static var defaultValue = Transform3DProperties()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
[70/70] Compiling Model3DView CameraControls.swift
Build complete! (29.26s)
Build complete.
{
"dependencies" : [
{
"identity" : "gltfscenekit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/frzi/GLTFSceneKit"
},
{
"identity" : "displaylink",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/timdonnelly/DisplayLink"
}
],
"manifest_display_name" : "Model3DView",
"name" : "Model3DView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "Model3DView",
"targets" : [
"Model3DView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Model3DViewTests",
"module_type" : "SwiftTarget",
"name" : "Model3DViewTests",
"path" : "Tests/Model3DViewTests",
"sources" : [
"Model3DViewTests.swift"
],
"target_dependencies" : [
"Model3DView"
],
"type" : "test"
},
{
"c99name" : "Model3DView",
"module_type" : "SwiftTarget",
"name" : "Model3DView",
"path" : "Sources/Model3DView",
"product_dependencies" : [
"GLTFSceneKit",
"DisplayLink"
],
"product_memberships" : [
"Model3DView"
],
"sources" : [
"Camera/CameraControls.swift",
"Camera/Cameras.swift",
"EnvironmentValues.swift",
"Model3DView.swift",
"Transform3D.swift",
"Types.swift",
"Utils/Euler.swift",
"Utils/Math.swift",
"Utils/ResourcesCache.swift",
"View+Modifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.