Build Information
Failed to build Creamy3D, reference 0.2.7 (4ca1d9
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 15:05:46 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alex566/Creamy3D.git
Reference: 0.2.7
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alex566/Creamy3D
* tag 0.2.7 -> FETCH_HEAD
HEAD is now at 4ca1d98 Dynamic multisampling selection
Cloned https://github.com/alex566/Creamy3D.git
Revision (git rev-parse @):
4ca1d98c6d261e9b98e5491a93a84bcb4978997a
SUCCESS checkout https://github.com/alex566/Creamy3D.git at 0.2.7
========================================
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": "creamy3d",
"name": "Creamy3D",
"url": "https://github.com/alex566/Creamy3D.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Creamy3D",
"dependencies": [
]
}
]
}
Fetching https://github.com/alex566/Creamy3D.git
[1/476] Fetching creamy3d
Fetched https://github.com/alex566/Creamy3D.git from cache (0.75s)
Creating working copy for https://github.com/alex566/Creamy3D.git
Working copy of https://github.com/alex566/Creamy3D.git resolved at 0.2.7 (4ca1d98)
warning: '.resolve-product-dependencies': dependency 'creamy3d' 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/alex566/Creamy3D.git
https://github.com/alex566/Creamy3D.git
{
"dependencies" : [
],
"manifest_display_name" : "Creamy3D",
"name" : "Creamy3D",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Creamy3D",
"targets" : [
"Creamy3D"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Creamy3DTests",
"module_type" : "SwiftTarget",
"name" : "Creamy3DTests",
"path" : "Tests/Creamy3DTests",
"sources" : [
"Creamy3DTests.swift"
],
"target_dependencies" : [
"Creamy3D"
],
"type" : "test"
},
{
"c99name" : "Creamy3D",
"module_type" : "SwiftTarget",
"name" : "Creamy3D",
"path" : "Sources/Creamy3D",
"product_memberships" : [
"Creamy3D"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Shaders/color_material.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Shaders/common.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Shaders/fresnel_material.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Shaders/matcap_material.metal",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Shaders/material_common.h",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Shaders/texture_material.metal",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"ColorRGB.swift",
"CreamyView.swift",
"Materials/ColorMaterial.swift",
"Materials/FresnelMaterial.swift",
"Materials/MatcapMaterial.swift",
"Materials/Material+Blend.swift",
"Materials/Material.swift",
"Materials/TextureMaterial.swift",
"MetalView.swift",
"Objects/EmptyObject.swift",
"Objects/Mesh.swift",
"Objects/Object.swift",
"Renderer.swift",
"Scene/Camera.swift",
"Scene/MaterialFunctions/ColorMaterialFunction.swift",
"Scene/MaterialFunctions/FresnelMaterialFunction.swift",
"Scene/MaterialFunctions/MatcapMaterialFunction.swift",
"Scene/MaterialFunctions/MaterialFunction.swift",
"Scene/MaterialFunctions/TextureMaterialFunction.swift",
"Scene/MaterialState.swift",
"Scene/MeshLoader/CubeMeshLoader.swift",
"Scene/MeshLoader/MeshLoader.swift",
"Scene/MeshLoader/ModelMeshLoader.swift",
"Scene/MeshLoader/SphereMeshLoader.swift",
"Scene/MeshNode.swift",
"Scene/Projection.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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/8] Copying fresnel_material.metal
[1/8] Write sources
[1/8] Copying texture_material.metal
[2/8] Copying matcap_material.metal
[2/8] Copying material_common.h
[2/8] Copying color_material.metal
[4/8] Copying common.metal
[7/8] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/34] Emitting module Creamy3D
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
[10/36] Compiling Creamy3D Projection.swift
[11/36] Compiling Creamy3D resource_bundle_accessor.swift
[12/36] Compiling Creamy3D FresnelMaterialFunction.swift
[13/36] Compiling Creamy3D MatcapMaterialFunction.swift
[14/36] Compiling Creamy3D MaterialFunction.swift
[15/36] Compiling Creamy3D MeshLoader.swift
[16/36] Compiling Creamy3D ModelMeshLoader.swift
[17/36] Compiling Creamy3D TextureMaterialFunction.swift
[18/36] Compiling Creamy3D MaterialState.swift
[19/36] Compiling Creamy3D CubeMeshLoader.swift
[20/36] Compiling Creamy3D FresnelMaterial.swift
[21/36] Compiling Creamy3D MatcapMaterial.swift
[22/36] Compiling Creamy3D Material+Blend.swift
[23/36] Compiling Creamy3D EmptyObject.swift
[24/36] Compiling Creamy3D Mesh.swift
[25/36] Compiling Creamy3D Object.swift
[26/36] Compiling Creamy3D SphereMeshLoader.swift
[27/36] Compiling Creamy3D MeshNode.swift
[28/36] Compiling Creamy3D ColorRGB.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/CreamyView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | MetalView(
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | projection: .init(width: proxy.size.width,
22 | height: proxy.size.height,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
[29/36] Compiling Creamy3D CreamyView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/CreamyView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | MetalView(
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | projection: .init(width: proxy.size.width,
22 | height: proxy.size.height,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
[30/36] Compiling Creamy3D ColorMaterial.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/CreamyView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | MetalView(
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | projection: .init(width: proxy.size.width,
22 | height: proxy.size.height,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
[31/36] Compiling Creamy3D Material.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:20:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:21:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | renderer.update(camera: camera, projection: projection)
23 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:22:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | renderer.update(objects: objects, projection: projection)
24 | return view
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:23:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
23 | renderer.update(objects: objects, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | return view
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:28:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
:
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
28 | renderer.update(camera: camera, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | renderer.update(objects: objects, projection: projection)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:29:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
:
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
[32/36] Compiling Creamy3D TextureMaterial.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:20:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:21:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | renderer.update(camera: camera, projection: projection)
23 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:22:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | renderer.update(objects: objects, projection: projection)
24 | return view
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:23:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
23 | renderer.update(objects: objects, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | return view
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:28:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
:
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
28 | renderer.update(camera: camera, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | renderer.update(objects: objects, projection: projection)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:29:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
:
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
[33/36] Compiling Creamy3D MetalView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:20:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:21:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | renderer.update(camera: camera, projection: projection)
23 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:22:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | renderer.update(objects: objects, projection: projection)
24 | return view
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:23:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
20 | let view = MTKView()
21 | renderer.setup(view: view)
22 | renderer.update(camera: camera, projection: projection)
23 | renderer.update(objects: objects, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | return view
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:28:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
:
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
28 | renderer.update(camera: camera, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | renderer.update(objects: objects, projection: projection)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:29:9: warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | @StateObject
17 | var renderer = Renderer()
| `- note: property declared here
18 |
19 | func makeUIView(context: Context) -> MTKView {
:
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
| `- warning: main actor-isolated property 'renderer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
[34/36] Compiling Creamy3D Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:14: error: value of type 'MTKView' has no member 'backgroundColor'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: value of type 'MTKView' has no member 'backgroundColor'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:33: error: cannot infer contextual base in reference to member 'clear'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:71:14: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | 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
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:45:60: note: mutation of this property is only permitted within the actor
43 | @abstract The delegate handling common view operations
44 | */
45 | @property (nonatomic, weak, nullable) id <MTKViewDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
46 |
47 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:72:14: warning: main actor-isolated property 'device' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
| `- warning: main actor-isolated property 'device' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:52:56: note: mutation of this property is only permitted within the actor
50 | @discussion This must be explicitly set by the application unless it was passed into the initializer. Defaults to nil
51 | */
52 | @property (nonatomic, retain, nullable) id <MTLDevice> device;
| `- note: mutation of this property is only permitted within the actor
53 |
54 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:73:14: warning: main actor-isolated property 'colorPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
| `- warning: main actor-isolated property 'colorPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:94:38: note: mutation of this property is only permitted within the actor
92 | @abstract The pixelFormat for the drawable's texture.
93 | */
94 | @property (nonatomic) MTLPixelFormat colorPixelFormat;
| `- note: mutation of this property is only permitted within the actor
95 |
96 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:74:14: warning: main actor-isolated property 'framebufferOnly' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
| `- warning: main actor-isolated property 'framebufferOnly' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:66:28: note: mutation of this property is only permitted within the actor
64 | @discussion This defaults to YES. This property controls whether or not the returned drawables' MTLTextures may only be used for framebuffer attachments (YES) or whether they may also be used for texture sampling and pixel read/write operations (NO). A value of YES allows the CAMetalLayer to allocate the MTLTexture objects in ways that are optimized for display purposes that makes them unsuitable for sampling. The recommended value for most applications is YES.
65 | */
66 | @property (nonatomic) BOOL framebufferOnly;
| `- note: mutation of this property is only permitted within the actor
67 |
68 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:75:14: warning: main actor-isolated property 'clearDepth' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
| `- warning: main actor-isolated property 'clearDepth' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:127:30: note: mutation of this property is only permitted within the actor
125 | @discussion This defaults to 1.0
126 | */
127 | @property (nonatomic) double clearDepth;
| `- note: mutation of this property is only permitted within the actor
128 |
129 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:76:14: warning: main actor-isolated property 'clearColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:120:37: note: mutation of this property is only permitted within the actor
118 | @discussion This defaults to (0.0, 0.0, 0.0, 1.0)
119 | */
120 | @property (nonatomic) MTLClearColor clearColor;
| `- note: mutation of this property is only permitted within the actor
121 |
122 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:77:14: warning: main actor-isolated property 'depthStencilPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
| `- warning: main actor-isolated property 'depthStencilPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | view.backgroundColor = .clear
79 | view.sampleCount = config.sampleCount
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:100:38: note: mutation of this property is only permitted within the actor
98 | @abstract The pixelFormat used to create depthStencilTexture
99 | */
100 | @property (nonatomic) MTLPixelFormat depthStencilPixelFormat;
| `- note: mutation of this property is only permitted within the actor
101 |
102 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:79:14: warning: main actor-isolated property 'sampleCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
79 | view.sampleCount = config.sampleCount
| `- warning: main actor-isolated property 'sampleCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:113:34: note: mutation of this property is only permitted within the actor
111 | @discussion This defaults to 1. If sampleCount is greater than 1 a multisampled color texture will be created and the currentDrawable's texture will be set as the resolve texture in the currentRenderPassDescriptor and the store action will be set to MTLStoreActionMultisampleResolve
112 | */
113 | @property (nonatomic) NSUInteger sampleCount;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:157:35: warning: main actor-isolated property 'currentDrawable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 |
153 | private func executePasses(view: MTKView, completion: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'executePasses(view:completion:)' part of global actor 'MainActor'
154 | guard let commandBuffer = commandQueue.makeCommandBuffer() else {
155 | return
156 | }
157 | guard let drawable = view.currentDrawable else {
| `- warning: main actor-isolated property 'currentDrawable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
158 | return
159 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:59:64: note: property declared here
57 | @discussion currentDrawable is updated at the end -draw (i.e. after the delegate's drawInMTKView method is called)
58 | */
59 | @property (nonatomic, readonly, nullable) id <CAMetalDrawable> currentDrawable;
| `- note: property declared here
60 |
61 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:160:37: warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 |
153 | private func executePasses(view: MTKView, completion: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'executePasses(view:completion:)' part of global actor 'MainActor'
154 | guard let commandBuffer = commandQueue.makeCommandBuffer() else {
155 | return
:
158 | return
159 | }
160 | guard let descriptor = view.currentRenderPassDescriptor else {
| `- warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
161 | return
162 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:162:68: note: property declared here
160 | @discussion This is a convience property. The view does not use this descriptor and there is no requirement for an app to use this descriptor.
161 | */
162 | @property (nonatomic, readonly, nullable) MTLRenderPassDescriptor *currentRenderPassDescriptor;
| `- note: property declared here
163 |
164 | /*!
[35/36] Compiling Creamy3D Camera.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:14: error: value of type 'MTKView' has no member 'backgroundColor'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: value of type 'MTKView' has no member 'backgroundColor'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:33: error: cannot infer contextual base in reference to member 'clear'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:71:14: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | 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
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:45:60: note: mutation of this property is only permitted within the actor
43 | @abstract The delegate handling common view operations
44 | */
45 | @property (nonatomic, weak, nullable) id <MTKViewDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
46 |
47 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:72:14: warning: main actor-isolated property 'device' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
| `- warning: main actor-isolated property 'device' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:52:56: note: mutation of this property is only permitted within the actor
50 | @discussion This must be explicitly set by the application unless it was passed into the initializer. Defaults to nil
51 | */
52 | @property (nonatomic, retain, nullable) id <MTLDevice> device;
| `- note: mutation of this property is only permitted within the actor
53 |
54 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:73:14: warning: main actor-isolated property 'colorPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
| `- warning: main actor-isolated property 'colorPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:94:38: note: mutation of this property is only permitted within the actor
92 | @abstract The pixelFormat for the drawable's texture.
93 | */
94 | @property (nonatomic) MTLPixelFormat colorPixelFormat;
| `- note: mutation of this property is only permitted within the actor
95 |
96 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:74:14: warning: main actor-isolated property 'framebufferOnly' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
| `- warning: main actor-isolated property 'framebufferOnly' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:66:28: note: mutation of this property is only permitted within the actor
64 | @discussion This defaults to YES. This property controls whether or not the returned drawables' MTLTextures may only be used for framebuffer attachments (YES) or whether they may also be used for texture sampling and pixel read/write operations (NO). A value of YES allows the CAMetalLayer to allocate the MTLTexture objects in ways that are optimized for display purposes that makes them unsuitable for sampling. The recommended value for most applications is YES.
65 | */
66 | @property (nonatomic) BOOL framebufferOnly;
| `- note: mutation of this property is only permitted within the actor
67 |
68 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:75:14: warning: main actor-isolated property 'clearDepth' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
| `- warning: main actor-isolated property 'clearDepth' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:127:30: note: mutation of this property is only permitted within the actor
125 | @discussion This defaults to 1.0
126 | */
127 | @property (nonatomic) double clearDepth;
| `- note: mutation of this property is only permitted within the actor
128 |
129 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:76:14: warning: main actor-isolated property 'clearColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:120:37: note: mutation of this property is only permitted within the actor
118 | @discussion This defaults to (0.0, 0.0, 0.0, 1.0)
119 | */
120 | @property (nonatomic) MTLClearColor clearColor;
| `- note: mutation of this property is only permitted within the actor
121 |
122 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:77:14: warning: main actor-isolated property 'depthStencilPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
| `- warning: main actor-isolated property 'depthStencilPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | view.backgroundColor = .clear
79 | view.sampleCount = config.sampleCount
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:100:38: note: mutation of this property is only permitted within the actor
98 | @abstract The pixelFormat used to create depthStencilTexture
99 | */
100 | @property (nonatomic) MTLPixelFormat depthStencilPixelFormat;
| `- note: mutation of this property is only permitted within the actor
101 |
102 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:79:14: warning: main actor-isolated property 'sampleCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
79 | view.sampleCount = config.sampleCount
| `- warning: main actor-isolated property 'sampleCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:113:34: note: mutation of this property is only permitted within the actor
111 | @discussion This defaults to 1. If sampleCount is greater than 1 a multisampled color texture will be created and the currentDrawable's texture will be set as the resolve texture in the currentRenderPassDescriptor and the store action will be set to MTLStoreActionMultisampleResolve
112 | */
113 | @property (nonatomic) NSUInteger sampleCount;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:157:35: warning: main actor-isolated property 'currentDrawable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 |
153 | private func executePasses(view: MTKView, completion: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'executePasses(view:completion:)' part of global actor 'MainActor'
154 | guard let commandBuffer = commandQueue.makeCommandBuffer() else {
155 | return
156 | }
157 | guard let drawable = view.currentDrawable else {
| `- warning: main actor-isolated property 'currentDrawable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
158 | return
159 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:59:64: note: property declared here
57 | @discussion currentDrawable is updated at the end -draw (i.e. after the delegate's drawInMTKView method is called)
58 | */
59 | @property (nonatomic, readonly, nullable) id <CAMetalDrawable> currentDrawable;
| `- note: property declared here
60 |
61 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:160:37: warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 |
153 | private func executePasses(view: MTKView, completion: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'executePasses(view:completion:)' part of global actor 'MainActor'
154 | guard let commandBuffer = commandQueue.makeCommandBuffer() else {
155 | return
:
158 | return
159 | }
160 | guard let descriptor = view.currentRenderPassDescriptor else {
| `- warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
161 | return
162 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:162:68: note: property declared here
160 | @discussion This is a convience property. The view does not use this descriptor and there is no requirement for an app to use this descriptor.
161 | */
162 | @property (nonatomic, readonly, nullable) MTLRenderPassDescriptor *currentRenderPassDescriptor;
| `- note: property declared here
163 |
164 | /*!
[36/36] Compiling Creamy3D ColorMaterialFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:14: error: value of type 'MTKView' has no member 'backgroundColor'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: value of type 'MTKView' has no member 'backgroundColor'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:33: error: cannot infer contextual base in reference to member 'clear'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:71:14: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | 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
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:45:60: note: mutation of this property is only permitted within the actor
43 | @abstract The delegate handling common view operations
44 | */
45 | @property (nonatomic, weak, nullable) id <MTKViewDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
46 |
47 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:72:14: warning: main actor-isolated property 'device' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
| `- warning: main actor-isolated property 'device' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:52:56: note: mutation of this property is only permitted within the actor
50 | @discussion This must be explicitly set by the application unless it was passed into the initializer. Defaults to nil
51 | */
52 | @property (nonatomic, retain, nullable) id <MTLDevice> device;
| `- note: mutation of this property is only permitted within the actor
53 |
54 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:73:14: warning: main actor-isolated property 'colorPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
| `- warning: main actor-isolated property 'colorPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:94:38: note: mutation of this property is only permitted within the actor
92 | @abstract The pixelFormat for the drawable's texture.
93 | */
94 | @property (nonatomic) MTLPixelFormat colorPixelFormat;
| `- note: mutation of this property is only permitted within the actor
95 |
96 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:74:14: warning: main actor-isolated property 'framebufferOnly' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
| `- warning: main actor-isolated property 'framebufferOnly' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:66:28: note: mutation of this property is only permitted within the actor
64 | @discussion This defaults to YES. This property controls whether or not the returned drawables' MTLTextures may only be used for framebuffer attachments (YES) or whether they may also be used for texture sampling and pixel read/write operations (NO). A value of YES allows the CAMetalLayer to allocate the MTLTexture objects in ways that are optimized for display purposes that makes them unsuitable for sampling. The recommended value for most applications is YES.
65 | */
66 | @property (nonatomic) BOOL framebufferOnly;
| `- note: mutation of this property is only permitted within the actor
67 |
68 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:75:14: warning: main actor-isolated property 'clearDepth' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
73 | view.colorPixelFormat = config.colorPixelFormat
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
| `- warning: main actor-isolated property 'clearDepth' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:127:30: note: mutation of this property is only permitted within the actor
125 | @discussion This defaults to 1.0
126 | */
127 | @property (nonatomic) double clearDepth;
| `- note: mutation of this property is only permitted within the actor
128 |
129 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:76:14: warning: main actor-isolated property 'clearColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
74 | view.framebufferOnly = true
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:120:37: note: mutation of this property is only permitted within the actor
118 | @discussion This defaults to (0.0, 0.0, 0.0, 1.0)
119 | */
120 | @property (nonatomic) MTLClearColor clearColor;
| `- note: mutation of this property is only permitted within the actor
121 |
122 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:77:14: warning: main actor-isolated property 'depthStencilPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
75 | view.clearDepth = 1.0
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
| `- warning: main actor-isolated property 'depthStencilPixelFormat' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | view.backgroundColor = .clear
79 | view.sampleCount = config.sampleCount
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:100:38: note: mutation of this property is only permitted within the actor
98 | @abstract The pixelFormat used to create depthStencilTexture
99 | */
100 | @property (nonatomic) MTLPixelFormat depthStencilPixelFormat;
| `- note: mutation of this property is only permitted within the actor
101 |
102 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:79:14: warning: main actor-isolated property 'sampleCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 |
70 | func setup(view: MTKView) {
| `- note: add '@MainActor' to make instance method 'setup(view:)' part of global actor 'MainActor'
71 | view.delegate = self
72 | view.device = device
:
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
79 | view.sampleCount = config.sampleCount
| `- warning: main actor-isolated property 'sampleCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:113:34: note: mutation of this property is only permitted within the actor
111 | @discussion This defaults to 1. If sampleCount is greater than 1 a multisampled color texture will be created and the currentDrawable's texture will be set as the resolve texture in the currentRenderPassDescriptor and the store action will be set to MTLStoreActionMultisampleResolve
112 | */
113 | @property (nonatomic) NSUInteger sampleCount;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:157:35: warning: main actor-isolated property 'currentDrawable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 |
153 | private func executePasses(view: MTKView, completion: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'executePasses(view:completion:)' part of global actor 'MainActor'
154 | guard let commandBuffer = commandQueue.makeCommandBuffer() else {
155 | return
156 | }
157 | guard let drawable = view.currentDrawable else {
| `- warning: main actor-isolated property 'currentDrawable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
158 | return
159 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:59:64: note: property declared here
57 | @discussion currentDrawable is updated at the end -draw (i.e. after the delegate's drawInMTKView method is called)
58 | */
59 | @property (nonatomic, readonly, nullable) id <CAMetalDrawable> currentDrawable;
| `- note: property declared here
60 |
61 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:160:37: warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 |
153 | private func executePasses(view: MTKView, completion: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'executePasses(view:completion:)' part of global actor 'MainActor'
154 | guard let commandBuffer = commandQueue.makeCommandBuffer() else {
155 | return
:
158 | return
159 | }
160 | guard let descriptor = view.currentRenderPassDescriptor else {
| `- warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
161 | return
162 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:162:68: note: property declared here
160 | @discussion This is a convience property. The view does not use this descriptor and there is no requirement for an app to use this descriptor.
161 | */
162 | @property (nonatomic, readonly, nullable) MTLRenderPassDescriptor *currentRenderPassDescriptor;
| `- note: property declared here
163 |
164 | /*!
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/27] Emitting module Creamy3D
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
[3/29] Compiling Creamy3D Material.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
[4/29] Compiling Creamy3D TextureMaterial.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
[5/29] Compiling Creamy3D MetalView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:19:30: error: cannot find type 'Context' in scope
17 | var renderer = Renderer()
18 |
19 | func makeUIView(context: Context) -> MTKView {
| `- error: cannot find type 'Context' in scope
20 | let view = MTKView()
21 | renderer.setup(view: view)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:27:51: error: cannot find type 'Context' in scope
25 | }
26 |
27 | func updateUIView(_ uiView: MTKView, context: Context) {
| `- error: cannot find type 'Context' in scope
28 | renderer.update(camera: camera, projection: projection)
29 | renderer.update(objects: objects, projection: projection)
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/MetalView.swift:11:19: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct MetalView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | let projection: Projection
13 | let camera: Camera
[6/29] Compiling Creamy3D FresnelMaterial.swift
[7/29] Compiling Creamy3D MatcapMaterial.swift
[8/29] Compiling Creamy3D Material+Blend.swift
[9/29] Compiling Creamy3D EmptyObject.swift
[10/29] Compiling Creamy3D Mesh.swift
[11/29] Compiling Creamy3D Object.swift
[12/29] Compiling Creamy3D FresnelMaterialFunction.swift
[13/29] Compiling Creamy3D MatcapMaterialFunction.swift
[14/29] Compiling Creamy3D MaterialFunction.swift
[15/29] Compiling Creamy3D ColorRGB.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/CreamyView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | MetalView(
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | projection: .init(width: proxy.size.width,
22 | height: proxy.size.height,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
[16/29] Compiling Creamy3D CreamyView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/CreamyView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | MetalView(
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | projection: .init(width: proxy.size.width,
22 | height: proxy.size.height,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
[17/29] Compiling Creamy3D ColorMaterial.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/CreamyView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | MetalView(
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | projection: .init(width: proxy.size.width,
22 | height: proxy.size.height,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
[18/29] Compiling Creamy3D MeshLoader.swift
[19/29] Compiling Creamy3D ModelMeshLoader.swift
[20/29] Compiling Creamy3D Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:14: error: value of type 'MTKView' has no member 'backgroundColor'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: value of type 'MTKView' has no member 'backgroundColor'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:33: error: cannot infer contextual base in reference to member 'clear'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
79 | view.sampleCount = config.sampleCount
80 | }
[21/29] Compiling Creamy3D Camera.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:14: error: value of type 'MTKView' has no member 'backgroundColor'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: value of type 'MTKView' has no member 'backgroundColor'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:33: error: cannot infer contextual base in reference to member 'clear'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
79 | view.sampleCount = config.sampleCount
80 | }
[22/29] Compiling Creamy3D ColorMaterialFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:14: error: value of type 'MTKView' has no member 'backgroundColor'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: value of type 'MTKView' has no member 'backgroundColor'
79 | view.sampleCount = config.sampleCount
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Creamy3D/Renderer.swift:78:33: error: cannot infer contextual base in reference to member 'clear'
76 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
77 | view.depthStencilPixelFormat = config.depthPixelFormat
78 | view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
79 | view.sampleCount = config.sampleCount
80 | }
[23/29] Compiling Creamy3D SphereMeshLoader.swift
[24/29] Compiling Creamy3D MeshNode.swift
[25/29] Compiling Creamy3D TextureMaterialFunction.swift
[26/29] Compiling Creamy3D MaterialState.swift
[27/29] Compiling Creamy3D CubeMeshLoader.swift
[28/29] Compiling Creamy3D Projection.swift
[29/29] Compiling Creamy3D resource_bundle_accessor.swift
BUILD FAILURE 6.1 macosSpm