Build Information
Successful build of SKTiled, reference master (69e520
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 05:21:22 UTC.
Swift 6 data race errors: 82
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
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
1067 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1065:69: warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
| `- warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
1067 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:892:16: note: property declared here
890 |
891 | /// String representing the layer name (null if not set).
892 | public var layerName: String {
| `- note: property declared here
893 | return self.name ?? "null"
894 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1065:63: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
204 |
205 | /// Object parent layer.
206 | weak open var layer: SKObjectGroup!
| `- note: property declared here
207 |
208 | /// Unique id (layer & object names may not be unique).
:
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
1067 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1066:19: warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | open var visibleToCamera: Bool = true
225 |
226 | internal var objectType: TiledObjectType = TiledObjectType.none // object type
| `- note: property declared here
227 | internal var shapeType: TiledObjectShape = TiledObjectShape.rectangle // shape type
228 | internal var points: [CGPoint] = [] // points that describe the object's shape
:
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
| `- warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1067 | }
1068 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1066:42: warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
210 |
211 | /// Tiled object id.
212 | open var id: Int = 0
| `- note: property declared here
213 |
214 | /// Tiled global id (for tile objects).
:
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
| `- warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1067 | }
1068 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:68:23: warning: static property 'drawGrid' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
66 | }
67 |
68 | static public let drawGrid = DebugDrawOptions(rawValue: 1 << 0) // 1
| |- warning: static property 'drawGrid' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawGrid' 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
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:69:23: warning: static property 'drawBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
67 |
68 | static public let drawGrid = DebugDrawOptions(rawValue: 1 << 0) // 1
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
| |- warning: static property 'drawBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawBounds' 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
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:70:23: warning: static property 'drawGraph' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
68 | static public let drawGrid = DebugDrawOptions(rawValue: 1 << 0) // 1
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
| |- warning: static property 'drawGraph' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawGraph' 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
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:71:23: warning: static property 'drawObjectBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
| |- warning: static property 'drawObjectBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawObjectBounds' 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
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:72:23: warning: static property 'drawTileBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
| |- warning: static property 'drawTileBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawTileBounds' 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
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:73:23: warning: static property 'drawMouseOverObject' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
| |- warning: static property 'drawMouseOverObject' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawMouseOverObject' 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
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:74:23: warning: static property 'drawBackground' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
| |- warning: static property 'drawBackground' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawBackground' 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
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
76 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:75:23: warning: static property 'drawAnchor' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
| |- warning: static property 'drawAnchor' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawAnchor' 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
76 |
77 | static public let all: DebugDrawOptions = [.drawGrid, .drawBounds, .drawGraph, .drawObjectBounds,
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:77:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
76 |
77 | static public let all: DebugDrawOptions = [.drawGrid, .drawBounds, .drawGraph, .drawObjectBounds,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
78 | .drawObjectBounds, .drawMouseOverObject,
79 | .drawBackground, .drawAnchor]
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:530:1: warning: extension declares a conformance of imported type 'CGPoint' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
528 |
529 |
530 | extension CGPoint: Hashable {
| |- warning: extension declares a conformance of imported type 'CGPoint' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
531 |
532 | public func hash(into hasher: inout Hasher) {
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2465:23: warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
2463 | public let rawValue: Int32
2464 |
2465 | public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
| |- warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noCompression' 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
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2466:23: warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
:
2464 |
2465 | public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
| |- warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bestSpeed' 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
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
2468 | public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2467:23: warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
:
2465 | public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
| |- warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bestCompression' 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
2468 | public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
2469 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2468:23: warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
:
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
2468 | public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
| |- warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCompression' 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
2469 |
2470 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2520:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'GzipError' has non-sendable type 'GzipError.Kind'; this is an error in the Swift 6 language mode
2484 | // cf. http://www.zlib.net/manual.html
2485 |
2486 | public enum Kind: Equatable {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
2487 | /// The stream structure was inconsistent.
2488 | ///
:
2518 |
2519 | /// Error kind.
2520 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'GzipError' has non-sendable type 'GzipError.Kind'; this is an error in the Swift 6 language mode
2521 |
2522 | /// Returned message by zlib.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:168:20: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
166 | var tinfo = [integer_t](repeating: 0, count: Int(task_info_count))
167 |
168 | kr = task_info(mach_task_self_, task_flavor_t(TASK_BASIC_INFO), &tinfo, &task_info_count)
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
169 | if kr != KERN_SUCCESS {
170 | return -1
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:177:27: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
175 | defer {
176 | if let thread_list = thread_list {
177 | vm_deallocate(mach_task_self_, vm_address_t(UnsafePointer(thread_list).pointee), vm_size_t(thread_count))
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
178 | }
179 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:181:23: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
179 | }
180 |
181 | kr = task_threads(mach_task_self_, &thread_list, &thread_count)
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | if (kr != KERN_SUCCESS) {
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1327:43: warning: main actor-isolated property 'strokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1325 | if let shape = node as? SKShapeNode {
1326 |
1327 | let currentStroke = shape.strokeColor
| `- warning: main actor-isolated property 'strokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1328 | let currentFill = shape.fillColor
1329 |
SpriteKit.SKShapeNode:70:25: note: property declared here
68 | open class func shapeNodeWithSplinePoints(_ points: UnsafeMutablePointer<CGPoint>, count numPoints: Int) -> Self
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
| `- note: property declared here
71 | @MainActor open var fillColor: NSColor { get set }
72 | open var blendMode: SKBlendMode { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1328:41: warning: main actor-isolated property 'fillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1326 |
1327 | let currentStroke = shape.strokeColor
1328 | let currentFill = shape.fillColor
| `- warning: main actor-isolated property 'fillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1329 |
1330 | // Calculate the changing color during the elapsed time.
SpriteKit.SKShapeNode:71:25: note: property declared here
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
71 | @MainActor open var fillColor: NSColor { get set }
| `- note: property declared here
72 | open var blendMode: SKBlendMode { get set }
73 | @MainActor open var isAntialiased: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1351:23: warning: main actor-isolated property 'strokeColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1349 | let newFillColor = SKColor(red: fred, green: fgreen, blue: fblue, alpha: falpha)
1350 |
1351 | shape.strokeColor = newStokeColor
| `- warning: main actor-isolated property 'strokeColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1352 | shape.fillColor = newFillColor
1353 | }
SpriteKit.SKShapeNode:70:25: note: mutation of this property is only permitted within the actor
68 | open class func shapeNodeWithSplinePoints(_ points: UnsafeMutablePointer<CGPoint>, count numPoints: Int) -> Self
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
| `- note: mutation of this property is only permitted within the actor
71 | @MainActor open var fillColor: NSColor { get set }
72 | open var blendMode: SKBlendMode { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1352:23: warning: main actor-isolated property 'fillColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1350 |
1351 | shape.strokeColor = newStokeColor
1352 | shape.fillColor = newFillColor
| `- warning: main actor-isolated property 'fillColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1353 | }
1354 | }
SpriteKit.SKShapeNode:71:25: note: mutation of this property is only permitted within the actor
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
71 | @MainActor open var fillColor: NSColor { get set }
| `- note: mutation of this property is only permitted within the actor
72 | open var blendMode: SKBlendMode { get set }
73 | @MainActor open var isAntialiased: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1749:22: warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1747 | let uiScale: CGFloat = TiledGlobals.default.contentScale
1748 |
1749 | let size = layer.size
| `- warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1750 | let tileWidth = layer.tileWidth * imageScale
1751 | let tileHeight = layer.tileHeight * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:221:16: note: property declared here
219 |
220 | /// Layer size (in tiles).
221 | public var size: CGSize {
| `- note: property declared here
222 | return tilemap.size
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1750:27: warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1748 |
1749 | let size = layer.size
1750 | let tileWidth = layer.tileWidth * imageScale
| `- warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1751 | let tileHeight = layer.tileHeight * imageScale
1752 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:723:16: note: property declared here
721 | public var width: CGFloat { return tilemap.width }
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
| `- note: property declared here
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
725 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1751:28: warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1749 | let size = layer.size
1750 | let tileWidth = layer.tileWidth * imageScale
1751 | let tileHeight = layer.tileHeight * imageScale
| `- warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1752 |
1753 | let tileWidthHalf = tileWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:724:16: note: property declared here
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
| `- note: property declared here
725 |
726 | public var sizeHalved: CGSize { return tilemap.sizeHalved }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1757:31: warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1755 |
1756 | // image size is the rendered size
1757 | let sizeInPoints = (layer.sizeInPoints * imageScale)
| `- warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1758 | let defaultLineWidth: CGFloat = (imageScale / uiScale) * lineScale
1759 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:729:16: note: property declared here
727 | public var tileWidthHalf: CGFloat { return tilemap.tileWidthHalf }
728 | public var tileHeightHalf: CGFloat { return tilemap.tileHeightHalf }
729 | public var sizeInPoints: CGSize { return tilemap.sizeInPoints }
| `- note: property declared here
730 |
731 | /// Layer transparency.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1770:32: warning: main actor-isolated property 'gridColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1768 | var shapePath: CGPath?
1769 |
1770 | let innerColor = layer.gridColor
| `- warning: main actor-isolated property 'gridColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1771 | // line width should be at least 1 for larger tile sizes
1772 | let lineWidth: CGFloat = defaultLineWidth
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:203:16: note: property declared here
201 |
202 | /// Grid visualization color.
203 | public var gridColor: SKColor = TiledGlobals.default.debug.gridColor
| `- note: property declared here
204 |
205 | /// Bounding box color.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1783:44: warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1781 | context.setFillColor(SKColor.clear.cgColor)
1782 |
1783 | let screenPosition = layer.tileToScreenCoords(CGPoint(x: col, y: row))
| `- warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1784 |
1785 | var xpos: CGFloat = screenPosition.x * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:808:19: note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
806 | - returns: `CGPoint` point in screen space.
807 | */
808 | internal func tileToScreenCoords(_ coord: CGPoint) -> CGPoint {
| `- note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
809 | switch orientation {
810 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1788:30: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1786 | var ypos: CGFloat = screenPosition.y * imageScale
1787 |
1788 | switch layer.orientation {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1789 | case .orthogonal:
1790 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1810:50: warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1808 |
1809 | case .hexagonal, .staggered:
1810 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1811 |
1812 | // mirrored in pointForCoordinate
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2452:16: note: property declared here
2450 |
2451 | // hexagonal/staggered
2452 | public var staggerX: Bool { return (staggeraxis == .x) }
| `- note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1810:42: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1808 |
1809 | case .hexagonal, .staggered:
1810 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1811 |
1812 | // mirrored in pointForCoordinate
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1815:30: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1813 | xpos += tileWidthHalf
1814 |
1815 | if layer.orientation == .hexagonal {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1816 |
1817 | ypos += tileHeightHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1826:62: warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1824 | // flat - currently not working
1825 | if (staggerX == true) {
1826 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1827 | r = (tileWidth - sizeLengthX) / 2
1828 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2455:16: note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
2457 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1826:54: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1824 | // flat - currently not working
1825 | if (staggerX == true) {
1826 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1827 | r = (tileWidth - sizeLengthX) / 2
1828 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1840:62: warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1838 | } else {
1839 | r = tileWidth / 2
1840 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1841 | h = (tileHeight - sizeLengthY) / 2
1842 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2456:16: note: property declared here
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2457 |
2458 | public var sideOffsetX: CGFloat { return (tileWidth - sideLengthX) / 2 }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1840:54: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1838 | } else {
1839 | r = tileWidth / 2
1840 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1841 | h = (tileHeight - sizeLengthY) / 2
1842 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1854:30: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1852 | }
1853 |
1854 | if layer.orientation == .staggered {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1855 |
1856 | let points: [CGPoint] = [
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1893:22: warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1891 | let uiScale: CGFloat = TiledGlobals.default.contentScale
1892 |
1893 | let size = layer.size
| `- warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1894 | let tileWidth = layer.tileWidth * imageScale
1895 | let tileHeight = layer.tileHeight * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:221:16: note: property declared here
219 |
220 | /// Layer size (in tiles).
221 | public var size: CGSize {
| `- note: property declared here
222 | return tilemap.size
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1894:27: warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1892 |
1893 | let size = layer.size
1894 | let tileWidth = layer.tileWidth * imageScale
| `- warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1895 | let tileHeight = layer.tileHeight * imageScale
1896 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:723:16: note: property declared here
721 | public var width: CGFloat { return tilemap.width }
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
| `- note: property declared here
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
725 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1895:28: warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1893 | let size = layer.size
1894 | let tileWidth = layer.tileWidth * imageScale
1895 | let tileHeight = layer.tileHeight * imageScale
| `- warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1896 |
1897 | let tileWidthHalf = tileWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:724:16: note: property declared here
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
| `- note: property declared here
725 |
726 | public var sizeHalved: CGSize { return tilemap.sizeHalved }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1900:31: warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1898 | let tileHeightHalf = tileHeight / 2
1899 |
1900 | let sizeInPoints = (layer.sizeInPoints * imageScale)
| `- warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1901 | let defaultLineWidth: CGFloat = (imageScale / uiScale) * lineScale
1902 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:729:16: note: property declared here
727 | public var tileWidthHalf: CGFloat { return tilemap.tileWidthHalf }
728 | public var tileHeightHalf: CGFloat { return tilemap.tileHeightHalf }
729 | public var sizeInPoints: CGSize { return tilemap.sizeInPoints }
| `- note: property declared here
730 |
731 | /// Layer transparency.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1906:33: warning: main actor-isolated property 'graph' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1904 | return imageOfSize(sizeInPoints, scale: uiScale) { context, bounds, scale in
1905 |
1906 | guard let graph = layer.graph else { return }
| `- warning: main actor-isolated property 'graph' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1907 |
1908 | // line width should be at least 1 for larger tile sizes
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:244:16: note: property declared here
242 |
243 | /// Pathfinding graph.
244 | public var graph: GKGridGraph<GKGridGraphNode>!
| `- note: property declared here
245 |
246 | // debug visualizations
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1940:48: warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1938 |
1939 |
1940 | let screenPosition = layer.tileToScreenCoords(CGPoint(x: col, y: row))
| `- warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1941 |
1942 | var xpos: CGFloat = screenPosition.x * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:808:19: note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
806 | - returns: `CGPoint` point in screen space.
807 | */
808 | internal func tileToScreenCoords(_ coord: CGPoint) -> CGPoint {
| `- note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
809 | switch orientation {
810 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1949:34: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1947 | var points: [CGPoint] = []
1948 |
1949 | switch layer.orientation {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1950 | case .orthogonal:
1951 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1967:54: warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1965 |
1966 | case .hexagonal, .staggered:
1967 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1968 |
1969 | xpos += tileWidthHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2452:16: note: property declared here
2450 |
2451 | // hexagonal/staggered
2452 | public var staggerX: Bool { return (staggeraxis == .x) }
| `- note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1967:46: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1965 |
1966 | case .hexagonal, .staggered:
1967 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1968 |
1969 | xpos += tileWidthHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1971:34: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1969 | xpos += tileWidthHalf
1970 |
1971 | if layer.orientation == .hexagonal {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1972 |
1973 | ypos += tileHeightHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1982:66: warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1980 | // flat - currently not working
1981 | if (staggerX == true) {
1982 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1983 | r = (tileWidth - sizeLengthX) / 2
1984 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2455:16: note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
2457 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1982:58: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1980 | // flat - currently not working
1981 | if (staggerX == true) {
1982 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1983 | r = (tileWidth - sizeLengthX) / 2
1984 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1996:66: warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1994 | } else {
1995 | r = tileWidth / 2
1996 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1997 | h = (tileHeight - sizeLengthY) / 2
1998 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2456:16: note: property declared here
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2457 |
2458 | public var sideOffsetX: CGFloat { return (tileWidth - sideLengthX) / 2 }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1996:58: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1994 | } else {
1995 | r = tileWidth / 2
1996 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1997 | h = (tileHeight - sizeLengthY) / 2
1998 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2010:34: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2008 | }
2009 |
2010 | if layer.orientation == .staggered {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2011 |
2012 | points = [
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/Logging.swift:80:25: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Simple logging class.
65 | internal class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
66 |
67 | public enum DateFormat {
:
78 |
79 | /// Default singleton instance.
80 | internal static let `default` = Logger()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
81 |
82 | /// Default logging level.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2093:36: warning: call to main actor-isolated instance method 'removeFromParent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2091 | zoomScale: CGFloat = 0) -> AnchorNode {
2092 |
2093 | node.childNode(withName: key)?.removeFromParent()
| `- warning: call to main actor-isolated instance method 'removeFromParent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
SpriteKit.SKNode:63:26: note: calls to instance method 'removeFromParent()' from outside of its actor context are implicitly asynchronous
61 | open func removeChildrenInArray(_ nodes: [SKNode])
62 | open func removeAllChildren()
63 | @MainActor open func removeFromParent()
| `- note: calls to instance method 'removeFromParent()' from outside of its actor context are implicitly asynchronous
64 | @available(macOS 10.11, *)
65 | open func move(toParent parent: SKNode)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2093:10: warning: call to main actor-isolated instance method 'childNode(withName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2091 | zoomScale: CGFloat = 0) -> AnchorNode {
2092 |
2093 | node.childNode(withName: key)?.removeFromParent()
| `- warning: call to main actor-isolated instance method 'childNode(withName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
SpriteKit.SKNode:69:26: note: calls to instance method 'childNode(withName:)' from outside of its actor context are implicitly asynchronous
67 | @available(swift, obsoleted: 3, renamed: "move(toParent:)")
68 | open func moveToParent(_ parent: SKNode)
69 | @MainActor open func childNode(withName name: String) -> SKNode?
| `- note: calls to instance method 'childNode(withName:)' from outside of its actor context are implicitly asynchronous
70 | @available(swift, obsoleted: 3, renamed: "childNode(withName:)")
71 | open func childNodeWithName(_ name: String) -> SKNode?
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2094:18: warning: call to main actor-isolated initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2092 |
2093 | node.childNode(withName: key)?.removeFromParent()
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
| `- warning: call to main actor-isolated initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2095 | anchor.labelSize = labelSize
2096 | node.addChild(anchor)
/Users/admin/builder/spi-builder-workspace/Sources/AnchorNode.swift:57:5: note: calls to initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' from outside of its actor context are implicitly asynchronous
55 | }
56 |
57 | init(radius: CGFloat, color shapeColor: SKColor, label text: String? = nil, offsetX: CGFloat = 0, offsetY: CGFloat = 0, zoom: CGFloat = 1) {
| `- note: calls to initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' from outside of its actor context are implicitly asynchronous
58 | self.radius = radius
59 | self.color = shapeColor
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2095:12: warning: main actor-isolated property 'labelSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2093 | node.childNode(withName: key)?.removeFromParent()
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
| `- warning: main actor-isolated property 'labelSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
/Users/admin/builder/spi-builder-workspace/Sources/AnchorNode.swift:37:9: note: mutation of this property is only permitted within the actor
35 | var color: SKColor = SKColor.clear
36 | var labelText = "Anchor"
37 | var labelSize: CGFloat = 18.0
| `- note: mutation of this property is only permitted within the actor
38 | var renderQuality: CGFloat = TiledGlobals.default.renderQuality.default
39 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2096:10: warning: call to main actor-isolated instance method 'addChild' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
2096 | node.addChild(anchor)
| `- warning: call to main actor-isolated instance method 'addChild' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2097 | anchor.position = CGPoint(x: 0, y: 0)
2098 | anchor.zPosition = node.zPosition * 10
SpriteKit.SKNode:55:26: note: calls to instance method 'addChild' from outside of its actor context are implicitly asynchronous
53 | open func setValue(_ value: SKAttributeValue, forAttributeNamed key: String)
54 | @MainActor open func setScale(_ scale: CGFloat)
55 | @MainActor open func addChild(_ node: SKNode)
| `- note: calls to instance method 'addChild' from outside of its actor context are implicitly asynchronous
56 | open func insertChild(_ node: SKNode, at index: Int)
57 | @available(swift, obsoleted: 3, renamed: "insertChild(_:at:)")
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2097:12: warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2095 | anchor.labelSize = labelSize
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
| `- warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2098 | anchor.zPosition = node.zPosition * 10
2099 | return anchor
SpriteKit.SKNode:16:25: note: mutation of this property is only permitted within the actor
14 | open var frame: CGRect { get }
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
| `- note: mutation of this property is only permitted within the actor
17 | @MainActor open var zPosition: CGFloat { get set }
18 | @MainActor open var zRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2098:12: warning: main actor-isolated property 'zPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
2098 | anchor.zPosition = node.zPosition * 10
| `- warning: main actor-isolated property 'zPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2099 | return anchor
2100 | }
SpriteKit.SKNode:17:25: note: mutation of this property is only permitted within the actor
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
17 | @MainActor open var zPosition: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @MainActor open var zRotation: CGFloat { get set }
19 | @MainActor open var xScale: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2098:29: warning: main actor-isolated property 'zPosition' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
2098 | anchor.zPosition = node.zPosition * 10
| `- warning: main actor-isolated property 'zPosition' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2099 | return anchor
2100 | }
SpriteKit.SKNode:17:25: note: property declared here
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
17 | @MainActor open var zPosition: CGFloat { get set }
| `- note: property declared here
18 | @MainActor open var zRotation: CGFloat { get set }
19 | @MainActor open var xScale: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2376:10: warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
| `- warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2377 | if let parentNode = node.parent {
2378 | // check that the parent is not the scene
SpriteKit.SKNode:16:25: note: mutation of this property is only permitted within the actor
14 | open var frame: CGRect { get }
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
| `- note: mutation of this property is only permitted within the actor
17 | @MainActor open var zPosition: CGFloat { get set }
18 | @MainActor open var zRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2376:49: warning: main actor-isolated property 'position' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
| `- warning: main actor-isolated property 'position' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2377 | if let parentNode = node.parent {
2378 | // check that the parent is not the scene
SpriteKit.SKNode:16:25: note: property declared here
14 | open var frame: CGRect { get }
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
| `- note: property declared here
17 | @MainActor open var zPosition: CGFloat { get set }
18 | @MainActor open var zRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2377:30: warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
2377 | if let parentNode = node.parent {
| `- warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2378 | // check that the parent is not the scene
2379 | if parentNode != node.scene {
SpriteKit.SKNode:34:14: note: property declared here
32 | @available(macOS, unavailable)
33 | open var focusBehavior: SKNodeFocusBehavior { get set }
34 | open var parent: SKNode? { get }
| `- note: property declared here
35 | open var children: [SKNode] { get }
36 | @MainActor open var name: String? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2379:31: warning: main actor-isolated property 'scene' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
2377 | if let parentNode = node.parent {
2378 | // check that the parent is not the scene
2379 | if parentNode != node.scene {
| `- warning: main actor-isolated property 'scene' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2380 | clampNodePosition(node: parentNode, scale: scale)
2381 | }
SpriteKit.SKNode:37:14: note: property declared here
35 | open var children: [SKNode] { get }
36 | @MainActor open var name: String? { get set }
37 | open var scene: SKScene? { get }
| `- note: property declared here
38 | @MainActor open var physicsBody: SKPhysicsBody? { get set }
39 | open var userData: NSMutableDictionary? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+GameplayKit.swift:302:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
300 | - returns: `GKGridGraphNode.Type` dictionary insertion was successfull.
301 | */
302 | open func objectForGraphType(named: String?) -> GKGridGraphNode.Type { return SKTiledGraphNode.self }
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
303 |
304 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+GameplayKit.swift:312:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
310 | - returns: `Bool` dictionary insertion was successfull.
311 | */
312 | open func addGraph(named: String, graph: GKGridGraph<GKGridGraphNode>) -> Bool {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
313 | if (graphs[named] != nil) {
314 | return false
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+GameplayKit.swift:328:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
326 | - returns: `GKGridGraph?` removed graph instance.
327 | */
328 | open func removeGraph(named: String) -> GKGridGraph<GKGridGraphNode>? {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
329 | log("removing graph \"\(named)\" to scene.", level: .debug)
330 | return graphs.removeValue(forKey: named)
[37/37] Compiling SKTiled SKTiled+GameplayKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/TiledGlobals.swift:89:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TiledGlobals' may have shared mutable state; this is an error in the Swift 6 language mode
84 | ```
85 | */
86 | public class TiledGlobals {
| `- note: class 'TiledGlobals' does not conform to the 'Sendable' protocol
87 |
88 | /// Default singleton instance.
89 | static public let `default` = TiledGlobals()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TiledGlobals' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
90 |
91 | /// Current SpriteKit renderer.
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:209:14: warning: main actor-isolated property 'uuid' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
159 |
160 | */
161 | open class SKTileObject: SKShapeNode, SKTiledObject {
| `- note: add '@preconcurrency' to the 'SKTiledObject' conformance to defer isolation checking to run time
162 |
163 | /**
:
207 |
208 | /// Unique id (layer & object names may not be unique).
209 | open var uuid: String = UUID().uuidString
| `- warning: main actor-isolated property 'uuid' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
210 |
211 | /// Tiled object id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:74:9: note: 'uuid' declared here
72 | @objc public protocol SKTiledObject: AnyObject {
73 | /// Unique object id (layer & object names may not be unique).
74 | var uuid: String { get set }
| `- note: 'uuid' declared here
75 |
76 | /// Object type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:218:14: warning: main actor-isolated property 'type' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
216 |
217 | /// Object type.
218 | open var type: String!
| `- warning: main actor-isolated property 'type' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
219 |
220 | /// Object size.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:77:9: note: 'type' declared here
75 |
76 | /// Object type.
77 | var type: String! { get set }
| `- note: 'type' declared here
78 |
79 | /// Storage for custom Tiled properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:286:14: warning: main actor-isolated property 'properties' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
284 |
285 | /// Custom object properties.
286 | open var properties: [String: String] = [:]
| `- warning: main actor-isolated property 'properties' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
287 |
288 | /// Ignore custom properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:80:9: note: 'properties' declared here
78 |
79 | /// Storage for custom Tiled properties.
80 | var properties: [String: String] { get set }
| `- note: 'properties' declared here
81 |
82 | /// Ignore custom properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:289:14: warning: main actor-isolated property 'ignoreProperties' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
287 |
288 | /// Ignore custom properties.
289 | open var ignoreProperties: Bool = false
| `- warning: main actor-isolated property 'ignoreProperties' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
290 |
291 | /// Physics collision type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:83:9: note: 'ignoreProperties' declared here
81 |
82 | /// Ignore custom properties.
83 | var ignoreProperties: Bool { get set }
| `- note: 'ignoreProperties' declared here
84 |
85 | /// Parse function (with optional completion block).
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Properties.swift:330:17: warning: main actor-isolated instance method 'parseProperties(completion:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
328 |
329 | /// Parse the object's properties value.
330 | public func parseProperties(completion: (() -> Void)?) {
| |- warning: main actor-isolated instance method 'parseProperties(completion:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'parseProperties(completion:)' to make this instance method not isolated to the actor
331 | if (ignoreProperties == true) { return }
332 | if (self.type == nil) { self.type = properties.removeValue(forKey: "type") }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:86:10: note: mark the protocol requirement 'parseProperties(completion:)' 'async' to allow actor-isolated conformances
84 |
85 | /// Parse function (with optional completion block).
86 | func parseProperties(completion: (() -> Void)?)
| `- note: mark the protocol requirement 'parseProperties(completion:)' 'async' to allow actor-isolated conformances
87 |
88 | /// Render scaling property.
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:302:14: warning: main actor-isolated property 'renderQuality' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
300 |
301 | ///Text object render quality.
302 | open var renderQuality: CGFloat = TiledGlobals.default.renderQuality.object {
| `- warning: main actor-isolated property 'renderQuality' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
303 | didSet {
304 | guard (renderQuality != oldValue),
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:89:9: note: 'renderQuality' declared here
87 |
88 | /// Render scaling property.
89 | var renderQuality: CGFloat { get }
| `- note: 'renderQuality' declared here
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1073:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1071 | }
1072 |
1073 | open var shortDescription: String {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1074 | var result = "\(objectType.name) id: \(self.id)"
1075 | result += (self.type != nil) ? ", type: \"\(self.type!)\"" : ""
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1084:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1082 |
1083 | /// Object opacity
1084 | open var opacity: CGFloat {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1085 | get {
1086 | return self.alpha
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1094:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1092 |
1093 | /// Object visibility
1094 | open var visible: Bool {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1095 | get {
1096 | return !self.isHidden
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1104:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1102 |
1103 | /// Returns true if the object references an animated tile.
1104 | open var isAnimated: Bool {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1105 | if let tile = self.tile {
1106 | return tile.tileData.isAnimated
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1112:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1110 |
1111 | /// Signifies that the object is a text object.
1112 | open var isTextObject: Bool {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1113 | return (textAttributes != nil)
1114 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1117:5: warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1115 |
1116 | /// Signifies that the object is a tile object.
1117 | open var isTileObject: Bool {
| `- warning: non-'@objc' property in extensions cannot be overridden; use 'public' instead
1118 | return (gid != nil)
1119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:224:14: warning: main actor-isolated property 'visibleToCamera' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
31 | /// Generic protocol for renderable Tiled objects.
32 | protocol SKTiledGeometry {
33 | var visibleToCamera: Bool { get set }
| `- note: 'visibleToCamera' declared here
34 | func draw(debug: Bool)
35 | }
:
222 |
223 | /// Object is visible in camera.
224 | open var visibleToCamera: Bool = true
| `- warning: main actor-isolated property 'visibleToCamera' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
225 |
226 | internal var objectType: TiledObjectType = TiledObjectType.none // object type
:
1123 |
1124 | extension SKTileObject: Loggable {}
1125 | extension SKTileObject: SKTiledGeometry {}
| `- note: add '@preconcurrency' to the 'SKTiledGeometry' conformance to defer isolation checking to run time
1126 |
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:517:15: warning: main actor-isolated instance method 'draw(debug:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
32 | protocol SKTiledGeometry {
33 | var visibleToCamera: Bool { get set }
34 | func draw(debug: Bool)
| `- note: mark the protocol requirement 'draw(debug:)' 'async' to allow actor-isolated conformances
35 | }
36 |
:
515 |
516 | /// Render the object.
517 | open func draw(debug: Bool = false) {
| |- warning: main actor-isolated instance method 'draw(debug:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'draw(debug:)' to make this instance method not isolated to the actor
518 |
519 | guard let layer = layer,
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1249:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
1247 | */
1248 | @available(*, deprecated)
1249 | open func runAnimation() {}
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
1250 | }
1251 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1054:42: warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
210 |
211 | /// Tiled object id.
212 | open var id: Int = 0
| `- note: property declared here
213 |
214 | /// Tiled global id (for tile objects).
:
1052 | extension SKTileObject {
1053 |
1054 | override open var hash: Int { return id.hashValue }
| `- warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1055 |
1056 | /// Object description.
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1060:23: warning: main actor-isolated property 'name' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1058 | let comma = propertiesString.isEmpty == false ? ", " : ""
1059 | var objectName = ""
1060 | if let name = name {
| `- warning: main actor-isolated property 'name' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1061 | objectName = ", \"\(name)\""
1062 | }
SpriteKit.SKNode:36:25: note: property declared here
34 | open var parent: SKNode? { get }
35 | open var children: [SKNode] { get }
36 | @MainActor open var name: String? { get set }
| `- note: property declared here
37 | open var scene: SKScene? { get }
38 | @MainActor open var physicsBody: SKPhysicsBody? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1063:27: warning: main actor-isolated property 'type' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
216 |
217 | /// Object type.
218 | open var type: String!
| `- note: property declared here
219 |
220 | /// Object size.
:
1061 | objectName = ", \"\(name)\""
1062 | }
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
| `- warning: main actor-isolated property 'type' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1063:55: warning: main actor-isolated property 'type' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
216 |
217 | /// Object type.
218 | open var type: String!
| `- note: property declared here
219 |
220 | /// Object size.
:
1061 | objectName = ", \"\(name)\""
1062 | }
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
| `- warning: main actor-isolated property 'type' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1064:25: warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | open var visibleToCamera: Bool = true
225 |
226 | internal var objectType: TiledObjectType = TiledObjectType.none // object type
| `- note: property declared here
227 | internal var shapeType: TiledObjectShape = TiledObjectShape.rectangle // shape type
228 | internal var points: [CGPoint] = [] // points that describe the object's shape
:
1062 | }
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
| `- warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1064:67: warning: main actor-isolated property 'renderQuality' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
300 |
301 | ///Text object render quality.
302 | open var renderQuality: CGFloat = TiledGlobals.default.renderQuality.object {
| `- note: property declared here
303 | didSet {
304 | guard (renderQuality != oldValue),
:
1062 | }
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
| `- warning: main actor-isolated property 'renderQuality' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1064:86: warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | open var visibleToCamera: Bool = true
225 |
226 | internal var objectType: TiledObjectType = TiledObjectType.none // object type
| `- note: property declared here
227 | internal var shapeType: TiledObjectShape = TiledObjectShape.rectangle // shape type
228 | internal var points: [CGPoint] = [] // points that describe the object's shape
:
1062 | }
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
| `- warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1064:123: warning: main actor-isolated property 'gid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
213 |
214 | /// Tiled global id (for tile objects).
215 | internal var gid: Int!
| `- note: property declared here
216 |
217 | /// Object type.
:
1062 | }
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
| `- warning: main actor-isolated property 'gid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1065:33: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
204 |
205 | /// Object parent layer.
206 | weak open var layer: SKObjectGroup!
| `- note: property declared here
207 |
208 | /// Unique id (layer & object names may not be unique).
:
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
1067 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1065:69: warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
| `- warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
1067 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:892:16: note: property declared here
890 |
891 | /// String representing the layer name (null if not set).
892 | public var layerName: String {
| `- note: property declared here
893 | return self.name ?? "null"
894 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1065:63: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
204 |
205 | /// Object parent layer.
206 | weak open var layer: SKObjectGroup!
| `- note: property declared here
207 |
208 | /// Unique id (layer & object names may not be unique).
:
1063 | let typeString = (type != nil) ? ", type: \"\(type!)\"" : ""
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
1067 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1066:19: warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | open var visibleToCamera: Bool = true
225 |
226 | internal var objectType: TiledObjectType = TiledObjectType.none // object type
| `- note: property declared here
227 | internal var shapeType: TiledObjectShape = TiledObjectShape.rectangle // shape type
228 | internal var points: [CGPoint] = [] // points that describe the object's shape
:
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
| `- warning: main actor-isolated property 'objectType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1067 | }
1068 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1066:42: warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
210 |
211 | /// Tiled object id.
212 | open var id: Int = 0
| `- note: property declared here
213 |
214 | /// Tiled global id (for tile objects).
:
1064 | let miscDesc = (objectType == .text) ? ", text quality: \(renderQuality)" : (objectType == .tile) ? ", tile id: \(gid ?? 0)" : ""
1065 | let layerDescription = (layer != nil) ? ", Layer: \"\(layer.layerName)\"" : ""
1066 | return "\(objectType.name) id: \(id)\(objectName)\(typeString)\(miscDesc)\(comma)\(propertiesString)\(layerDescription)"
| `- warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1067 | }
1068 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:68:23: warning: static property 'drawGrid' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
66 | }
67 |
68 | static public let drawGrid = DebugDrawOptions(rawValue: 1 << 0) // 1
| |- warning: static property 'drawGrid' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawGrid' 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
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:69:23: warning: static property 'drawBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
67 |
68 | static public let drawGrid = DebugDrawOptions(rawValue: 1 << 0) // 1
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
| |- warning: static property 'drawBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawBounds' 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
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:70:23: warning: static property 'drawGraph' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
68 | static public let drawGrid = DebugDrawOptions(rawValue: 1 << 0) // 1
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
| |- warning: static property 'drawGraph' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawGraph' 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
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:71:23: warning: static property 'drawObjectBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
69 | static public let drawBounds = DebugDrawOptions(rawValue: 1 << 1) // 2
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
| |- warning: static property 'drawObjectBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawObjectBounds' 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
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:72:23: warning: static property 'drawTileBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
70 | static public let drawGraph = DebugDrawOptions(rawValue: 1 << 2) // 4
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
| |- warning: static property 'drawTileBounds' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawTileBounds' 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
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:73:23: warning: static property 'drawMouseOverObject' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
71 | static public let drawObjectBounds = DebugDrawOptions(rawValue: 1 << 3) // 8
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
| |- warning: static property 'drawMouseOverObject' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawMouseOverObject' 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
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:74:23: warning: static property 'drawBackground' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
72 | static public let drawTileBounds = DebugDrawOptions(rawValue: 1 << 4) // 16
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
| |- warning: static property 'drawBackground' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawBackground' 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
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
76 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:75:23: warning: static property 'drawAnchor' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
73 | static public let drawMouseOverObject = DebugDrawOptions(rawValue: 1 << 5) // 32
74 | static public let drawBackground = DebugDrawOptions(rawValue: 1 << 6) // 64
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
| |- warning: static property 'drawAnchor' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drawAnchor' 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
76 |
77 | static public let all: DebugDrawOptions = [.drawGrid, .drawBounds, .drawGraph, .drawObjectBounds,
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:77:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | */
61 | public struct DebugDrawOptions: OptionSet {
| `- note: consider making struct 'DebugDrawOptions' conform to the 'Sendable' protocol
62 | public let rawValue: Int
63 |
:
75 | static public let drawAnchor = DebugDrawOptions(rawValue: 1 << 7) // 128
76 |
77 | static public let all: DebugDrawOptions = [.drawGrid, .drawBounds, .drawGraph, .drawObjectBounds,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'DebugDrawOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
78 | .drawObjectBounds, .drawMouseOverObject,
79 | .drawBackground, .drawAnchor]
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:530:1: warning: extension declares a conformance of imported type 'CGPoint' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
528 |
529 |
530 | extension CGPoint: Hashable {
| |- warning: extension declares a conformance of imported type 'CGPoint' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
531 |
532 | public func hash(into hasher: inout Hasher) {
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2465:23: warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
2463 | public let rawValue: Int32
2464 |
2465 | public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
| |- warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noCompression' 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
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2466:23: warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
:
2464 |
2465 | public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
| |- warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bestSpeed' 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
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
2468 | public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2467:23: warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
:
2465 | public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
| |- warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bestCompression' 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
2468 | public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
2469 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2468:23: warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
2458 |
2459 | /// Compression level whose rawValue is based on the zlib's constants.
2460 | public struct CompressionLevel: RawRepresentable {
| `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
2461 |
2462 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
:
2466 | public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
2467 | public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
2468 | public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
| |- warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCompression' 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
2469 |
2470 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2520:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'GzipError' has non-sendable type 'GzipError.Kind'; this is an error in the Swift 6 language mode
2484 | // cf. http://www.zlib.net/manual.html
2485 |
2486 | public enum Kind: Equatable {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
2487 | /// The stream structure was inconsistent.
2488 | ///
:
2518 |
2519 | /// Error kind.
2520 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'GzipError' has non-sendable type 'GzipError.Kind'; this is an error in the Swift 6 language mode
2521 |
2522 | /// Returned message by zlib.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:168:20: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
166 | var tinfo = [integer_t](repeating: 0, count: Int(task_info_count))
167 |
168 | kr = task_info(mach_task_self_, task_flavor_t(TASK_BASIC_INFO), &tinfo, &task_info_count)
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
169 | if kr != KERN_SUCCESS {
170 | return -1
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:177:27: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
175 | defer {
176 | if let thread_list = thread_list {
177 | vm_deallocate(mach_task_self_, vm_address_t(UnsafePointer(thread_list).pointee), vm_size_t(thread_count))
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
178 | }
179 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:181:23: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
179 | }
180 |
181 | kr = task_threads(mach_task_self_, &thread_list, &thread_count)
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
182 |
183 | if (kr != KERN_SUCCESS) {
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1327:43: warning: main actor-isolated property 'strokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1325 | if let shape = node as? SKShapeNode {
1326 |
1327 | let currentStroke = shape.strokeColor
| `- warning: main actor-isolated property 'strokeColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1328 | let currentFill = shape.fillColor
1329 |
SpriteKit.SKShapeNode:70:25: note: property declared here
68 | open class func shapeNodeWithSplinePoints(_ points: UnsafeMutablePointer<CGPoint>, count numPoints: Int) -> Self
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
| `- note: property declared here
71 | @MainActor open var fillColor: NSColor { get set }
72 | open var blendMode: SKBlendMode { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1328:41: warning: main actor-isolated property 'fillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1326 |
1327 | let currentStroke = shape.strokeColor
1328 | let currentFill = shape.fillColor
| `- warning: main actor-isolated property 'fillColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1329 |
1330 | // Calculate the changing color during the elapsed time.
SpriteKit.SKShapeNode:71:25: note: property declared here
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
71 | @MainActor open var fillColor: NSColor { get set }
| `- note: property declared here
72 | open var blendMode: SKBlendMode { get set }
73 | @MainActor open var isAntialiased: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1351:23: warning: main actor-isolated property 'strokeColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1349 | let newFillColor = SKColor(red: fred, green: fgreen, blue: fblue, alpha: falpha)
1350 |
1351 | shape.strokeColor = newStokeColor
| `- warning: main actor-isolated property 'strokeColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1352 | shape.fillColor = newFillColor
1353 | }
SpriteKit.SKShapeNode:70:25: note: mutation of this property is only permitted within the actor
68 | open class func shapeNodeWithSplinePoints(_ points: UnsafeMutablePointer<CGPoint>, count numPoints: Int) -> Self
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
| `- note: mutation of this property is only permitted within the actor
71 | @MainActor open var fillColor: NSColor { get set }
72 | open var blendMode: SKBlendMode { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1352:23: warning: main actor-isolated property 'fillColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1350 |
1351 | shape.strokeColor = newStokeColor
1352 | shape.fillColor = newFillColor
| `- warning: main actor-isolated property 'fillColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1353 | }
1354 | }
SpriteKit.SKShapeNode:71:25: note: mutation of this property is only permitted within the actor
69 | @MainActor open var path: CGPath? { get set }
70 | @MainActor open var strokeColor: NSColor { get set }
71 | @MainActor open var fillColor: NSColor { get set }
| `- note: mutation of this property is only permitted within the actor
72 | open var blendMode: SKBlendMode { get set }
73 | @MainActor open var isAntialiased: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1749:22: warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1747 | let uiScale: CGFloat = TiledGlobals.default.contentScale
1748 |
1749 | let size = layer.size
| `- warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1750 | let tileWidth = layer.tileWidth * imageScale
1751 | let tileHeight = layer.tileHeight * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:221:16: note: property declared here
219 |
220 | /// Layer size (in tiles).
221 | public var size: CGSize {
| `- note: property declared here
222 | return tilemap.size
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1750:27: warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1748 |
1749 | let size = layer.size
1750 | let tileWidth = layer.tileWidth * imageScale
| `- warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1751 | let tileHeight = layer.tileHeight * imageScale
1752 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:723:16: note: property declared here
721 | public var width: CGFloat { return tilemap.width }
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
| `- note: property declared here
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
725 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1751:28: warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1749 | let size = layer.size
1750 | let tileWidth = layer.tileWidth * imageScale
1751 | let tileHeight = layer.tileHeight * imageScale
| `- warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1752 |
1753 | let tileWidthHalf = tileWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:724:16: note: property declared here
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
| `- note: property declared here
725 |
726 | public var sizeHalved: CGSize { return tilemap.sizeHalved }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1757:31: warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1739 | - returns: `CGImage` visual grid texture.
1740 | */
1741 | internal func drawLayerGrid(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGrid(_:imageScale:lineScale:)' part of global actor 'MainActor'
1742 | imageScale: CGFloat = 8,
1743 | lineScale: CGFloat = 1) -> CGImage? {
:
1755 |
1756 | // image size is the rendered size
1757 | let sizeInPoints = (layer.sizeInPoints * imageScale)
| `- warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1758 | let defaultLineWidth: CGFloat = (imageScale / uiScale) * lineScale
1759 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:729:16: note: property declared here
727 | public var tileWidthHalf: CGFloat { return tilemap.tileWidthHalf }
728 | public var tileHeightHalf: CGFloat { return tilemap.tileHeightHalf }
729 | public var sizeInPoints: CGSize { return tilemap.sizeInPoints }
| `- note: property declared here
730 |
731 | /// Layer transparency.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1770:32: warning: main actor-isolated property 'gridColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1768 | var shapePath: CGPath?
1769 |
1770 | let innerColor = layer.gridColor
| `- warning: main actor-isolated property 'gridColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1771 | // line width should be at least 1 for larger tile sizes
1772 | let lineWidth: CGFloat = defaultLineWidth
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:203:16: note: property declared here
201 |
202 | /// Grid visualization color.
203 | public var gridColor: SKColor = TiledGlobals.default.debug.gridColor
| `- note: property declared here
204 |
205 | /// Bounding box color.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1783:44: warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1781 | context.setFillColor(SKColor.clear.cgColor)
1782 |
1783 | let screenPosition = layer.tileToScreenCoords(CGPoint(x: col, y: row))
| `- warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1784 |
1785 | var xpos: CGFloat = screenPosition.x * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:808:19: note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
806 | - returns: `CGPoint` point in screen space.
807 | */
808 | internal func tileToScreenCoords(_ coord: CGPoint) -> CGPoint {
| `- note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
809 | switch orientation {
810 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1788:30: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1786 | var ypos: CGFloat = screenPosition.y * imageScale
1787 |
1788 | switch layer.orientation {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1789 | case .orthogonal:
1790 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1810:50: warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1808 |
1809 | case .hexagonal, .staggered:
1810 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1811 |
1812 | // mirrored in pointForCoordinate
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2452:16: note: property declared here
2450 |
2451 | // hexagonal/staggered
2452 | public var staggerX: Bool { return (staggeraxis == .x) }
| `- note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1810:42: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1808 |
1809 | case .hexagonal, .staggered:
1810 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1811 |
1812 | // mirrored in pointForCoordinate
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1815:30: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1813 | xpos += tileWidthHalf
1814 |
1815 | if layer.orientation == .hexagonal {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1816 |
1817 | ypos += tileHeightHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1826:62: warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1824 | // flat - currently not working
1825 | if (staggerX == true) {
1826 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1827 | r = (tileWidth - sizeLengthX) / 2
1828 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2455:16: note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
2457 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1826:54: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1824 | // flat - currently not working
1825 | if (staggerX == true) {
1826 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1827 | r = (tileWidth - sizeLengthX) / 2
1828 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1840:62: warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1838 | } else {
1839 | r = tileWidth / 2
1840 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1841 | h = (tileHeight - sizeLengthY) / 2
1842 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2456:16: note: property declared here
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2457 |
2458 | public var sideOffsetX: CGFloat { return (tileWidth - sideLengthX) / 2 }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1840:54: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1838 | } else {
1839 | r = tileWidth / 2
1840 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1841 | h = (tileHeight - sizeLengthY) / 2
1842 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1854:30: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1852 | }
1853 |
1854 | if layer.orientation == .staggered {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1855 |
1856 | let points: [CGPoint] = [
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1893:22: warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1891 | let uiScale: CGFloat = TiledGlobals.default.contentScale
1892 |
1893 | let size = layer.size
| `- warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1894 | let tileWidth = layer.tileWidth * imageScale
1895 | let tileHeight = layer.tileHeight * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:221:16: note: property declared here
219 |
220 | /// Layer size (in tiles).
221 | public var size: CGSize {
| `- note: property declared here
222 | return tilemap.size
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1894:27: warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1892 |
1893 | let size = layer.size
1894 | let tileWidth = layer.tileWidth * imageScale
| `- warning: main actor-isolated property 'tileWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1895 | let tileHeight = layer.tileHeight * imageScale
1896 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:723:16: note: property declared here
721 | public var width: CGFloat { return tilemap.width }
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
| `- note: property declared here
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
725 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1895:28: warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1893 | let size = layer.size
1894 | let tileWidth = layer.tileWidth * imageScale
1895 | let tileHeight = layer.tileHeight * imageScale
| `- warning: main actor-isolated property 'tileHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1896 |
1897 | let tileWidthHalf = tileWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:724:16: note: property declared here
722 | public var height: CGFloat { return tilemap.height }
723 | public var tileWidth: CGFloat { return tilemap.tileWidth }
724 | public var tileHeight: CGFloat { return tilemap.tileHeight }
| `- note: property declared here
725 |
726 | public var sizeHalved: CGSize { return tilemap.sizeHalved }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1900:31: warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1883 | - returns: `CGImage` visual graph texture.
1884 | */
1885 | internal func drawLayerGraph(_ layer: SKTiledLayerObject,
| `- note: add '@MainActor' to make global function 'drawLayerGraph(_:imageScale:lineScale:)' part of global actor 'MainActor'
1886 | imageScale: CGFloat = 8,
1887 | lineScale: CGFloat = 1) -> CGImage? {
:
1898 | let tileHeightHalf = tileHeight / 2
1899 |
1900 | let sizeInPoints = (layer.sizeInPoints * imageScale)
| `- warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1901 | let defaultLineWidth: CGFloat = (imageScale / uiScale) * lineScale
1902 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:729:16: note: property declared here
727 | public var tileWidthHalf: CGFloat { return tilemap.tileWidthHalf }
728 | public var tileHeightHalf: CGFloat { return tilemap.tileHeightHalf }
729 | public var sizeInPoints: CGSize { return tilemap.sizeInPoints }
| `- note: property declared here
730 |
731 | /// Layer transparency.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1906:33: warning: main actor-isolated property 'graph' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1904 | return imageOfSize(sizeInPoints, scale: uiScale) { context, bounds, scale in
1905 |
1906 | guard let graph = layer.graph else { return }
| `- warning: main actor-isolated property 'graph' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1907 |
1908 | // line width should be at least 1 for larger tile sizes
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:244:16: note: property declared here
242 |
243 | /// Pathfinding graph.
244 | public var graph: GKGridGraph<GKGridGraphNode>!
| `- note: property declared here
245 |
246 | // debug visualizations
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1940:48: warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1938 |
1939 |
1940 | let screenPosition = layer.tileToScreenCoords(CGPoint(x: col, y: row))
| `- warning: call to main actor-isolated instance method 'tileToScreenCoords' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1941 |
1942 | var xpos: CGFloat = screenPosition.x * imageScale
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:808:19: note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
806 | - returns: `CGPoint` point in screen space.
807 | */
808 | internal func tileToScreenCoords(_ coord: CGPoint) -> CGPoint {
| `- note: calls to instance method 'tileToScreenCoords' from outside of its actor context are implicitly asynchronous
809 | switch orientation {
810 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1949:34: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1947 | var points: [CGPoint] = []
1948 |
1949 | switch layer.orientation {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1950 | case .orthogonal:
1951 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1967:54: warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1965 |
1966 | case .hexagonal, .staggered:
1967 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'staggerX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1968 |
1969 | xpos += tileWidthHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2452:16: note: property declared here
2450 |
2451 | // hexagonal/staggered
2452 | public var staggerX: Bool { return (staggeraxis == .x) }
| `- note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1967:46: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1965 |
1966 | case .hexagonal, .staggered:
1967 | let staggerX = layer.tilemap.staggerX
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1968 |
1969 | xpos += tileWidthHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1971:34: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1969 | xpos += tileWidthHalf
1970 |
1971 | if layer.orientation == .hexagonal {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1972 |
1973 | ypos += tileHeightHalf
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1982:66: warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1980 | // flat - currently not working
1981 | if (staggerX == true) {
1982 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'sideLengthX' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1983 | r = (tileWidth - sizeLengthX) / 2
1984 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2455:16: note: property declared here
2453 | public var staggerEven: Bool { return staggerindex == .even }
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
2457 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1982:58: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1980 | // flat - currently not working
1981 | if (staggerX == true) {
1982 | let sizeLengthX = (layer.tilemap.sideLengthX * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1983 | r = (tileWidth - sizeLengthX) / 2
1984 | h = tileHeight / 2
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1996:66: warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1994 | } else {
1995 | r = tileWidth / 2
1996 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'sideLengthY' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1997 | h = (tileHeight - sizeLengthY) / 2
1998 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2456:16: note: property declared here
2454 |
2455 | public var sideLengthX: CGFloat { return (staggeraxis == .x) ? CGFloat(hexsidelength) : 0 }
2456 | public var sideLengthY: CGFloat { return (staggeraxis == .y) ? CGFloat(hexsidelength) : 0 }
| `- note: property declared here
2457 |
2458 | public var sideOffsetX: CGFloat { return (tileWidth - sideLengthX) / 2 }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:1996:58: warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1994 | } else {
1995 | r = tileWidth / 2
1996 | let sizeLengthY = (layer.tilemap.sideLengthY * imageScale)
| `- warning: main actor-isolated property 'tilemap' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1997 | h = (tileHeight - sizeLengthY) / 2
1998 | variableSize = tileHeight - (h * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:114:16: note: property declared here
112 |
113 | /// Reference to the parent tilemap.
114 | public var tilemap: SKTilemap
| `- note: property declared here
115 |
116 | /// Unique layer id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2010:34: warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2008 | }
2009 |
2010 | if layer.orientation == .staggered {
| `- warning: main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2011 |
2012 | points = [
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:231:18: note: property declared here
229 |
230 | /// Tile map orientation.
231 | internal var orientation: SKTilemap.TilemapOrientation {
| `- note: property declared here
232 | return tilemap.orientation
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/Logging.swift:80:25: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Simple logging class.
65 | internal class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
66 |
67 | public enum DateFormat {
:
78 |
79 | /// Default singleton instance.
80 | internal static let `default` = Logger()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
81 |
82 | /// Default logging level.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2093:36: warning: call to main actor-isolated instance method 'removeFromParent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2091 | zoomScale: CGFloat = 0) -> AnchorNode {
2092 |
2093 | node.childNode(withName: key)?.removeFromParent()
| `- warning: call to main actor-isolated instance method 'removeFromParent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
SpriteKit.SKNode:63:26: note: calls to instance method 'removeFromParent()' from outside of its actor context are implicitly asynchronous
61 | open func removeChildrenInArray(_ nodes: [SKNode])
62 | open func removeAllChildren()
63 | @MainActor open func removeFromParent()
| `- note: calls to instance method 'removeFromParent()' from outside of its actor context are implicitly asynchronous
64 | @available(macOS 10.11, *)
65 | open func move(toParent parent: SKNode)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2093:10: warning: call to main actor-isolated instance method 'childNode(withName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2091 | zoomScale: CGFloat = 0) -> AnchorNode {
2092 |
2093 | node.childNode(withName: key)?.removeFromParent()
| `- warning: call to main actor-isolated instance method 'childNode(withName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
SpriteKit.SKNode:69:26: note: calls to instance method 'childNode(withName:)' from outside of its actor context are implicitly asynchronous
67 | @available(swift, obsoleted: 3, renamed: "move(toParent:)")
68 | open func moveToParent(_ parent: SKNode)
69 | @MainActor open func childNode(withName name: String) -> SKNode?
| `- note: calls to instance method 'childNode(withName:)' from outside of its actor context are implicitly asynchronous
70 | @available(swift, obsoleted: 3, renamed: "childNode(withName:)")
71 | open func childNodeWithName(_ name: String) -> SKNode?
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2094:18: warning: call to main actor-isolated initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2092 |
2093 | node.childNode(withName: key)?.removeFromParent()
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
| `- warning: call to main actor-isolated initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2095 | anchor.labelSize = labelSize
2096 | node.addChild(anchor)
/Users/admin/builder/spi-builder-workspace/Sources/AnchorNode.swift:57:5: note: calls to initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' from outside of its actor context are implicitly asynchronous
55 | }
56 |
57 | init(radius: CGFloat, color shapeColor: SKColor, label text: String? = nil, offsetX: CGFloat = 0, offsetY: CGFloat = 0, zoom: CGFloat = 1) {
| `- note: calls to initializer 'init(radius:color:label:offsetX:offsetY:zoom:)' from outside of its actor context are implicitly asynchronous
58 | self.radius = radius
59 | self.color = shapeColor
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2095:12: warning: main actor-isolated property 'labelSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2093 | node.childNode(withName: key)?.removeFromParent()
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
| `- warning: main actor-isolated property 'labelSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
/Users/admin/builder/spi-builder-workspace/Sources/AnchorNode.swift:37:9: note: mutation of this property is only permitted within the actor
35 | var color: SKColor = SKColor.clear
36 | var labelText = "Anchor"
37 | var labelSize: CGFloat = 18.0
| `- note: mutation of this property is only permitted within the actor
38 | var renderQuality: CGFloat = TiledGlobals.default.renderQuality.default
39 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2096:10: warning: call to main actor-isolated instance method 'addChild' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2094 | let anchor = AnchorNode(radius: radius, color: anchorColor, label: withLabel, offsetX: labelOffsetX, offsetY: labelOffsetY, zoom: zoomScale)
2095 | anchor.labelSize = labelSize
2096 | node.addChild(anchor)
| `- warning: call to main actor-isolated instance method 'addChild' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
2097 | anchor.position = CGPoint(x: 0, y: 0)
2098 | anchor.zPosition = node.zPosition * 10
SpriteKit.SKNode:55:26: note: calls to instance method 'addChild' from outside of its actor context are implicitly asynchronous
53 | open func setValue(_ value: SKAttributeValue, forAttributeNamed key: String)
54 | @MainActor open func setScale(_ scale: CGFloat)
55 | @MainActor open func addChild(_ node: SKNode)
| `- note: calls to instance method 'addChild' from outside of its actor context are implicitly asynchronous
56 | open func insertChild(_ node: SKNode, at index: Int)
57 | @available(swift, obsoleted: 3, renamed: "insertChild(_:at:)")
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2097:12: warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2095 | anchor.labelSize = labelSize
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
| `- warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2098 | anchor.zPosition = node.zPosition * 10
2099 | return anchor
SpriteKit.SKNode:16:25: note: mutation of this property is only permitted within the actor
14 | open var frame: CGRect { get }
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
| `- note: mutation of this property is only permitted within the actor
17 | @MainActor open var zPosition: CGFloat { get set }
18 | @MainActor open var zRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2098:12: warning: main actor-isolated property 'zPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
2098 | anchor.zPosition = node.zPosition * 10
| `- warning: main actor-isolated property 'zPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2099 | return anchor
2100 | }
SpriteKit.SKNode:17:25: note: mutation of this property is only permitted within the actor
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
17 | @MainActor open var zPosition: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @MainActor open var zRotation: CGFloat { get set }
19 | @MainActor open var xScale: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2098:29: warning: main actor-isolated property 'zPosition' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2081 |
2082 |
2083 | internal func drawAnchor(_ node: SKNode,
| `- note: add '@MainActor' to make global function 'drawAnchor(_:withKey:withLabel:labelSize:labelOffsetX:labelOffsetY:radius:anchorColor:zoomScale:)' part of global actor 'MainActor'
2084 | withKey key: String = "ANCHOR",
2085 | withLabel: String? = nil,
:
2096 | node.addChild(anchor)
2097 | anchor.position = CGPoint(x: 0, y: 0)
2098 | anchor.zPosition = node.zPosition * 10
| `- warning: main actor-isolated property 'zPosition' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2099 | return anchor
2100 | }
SpriteKit.SKNode:17:25: note: property declared here
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
17 | @MainActor open var zPosition: CGFloat { get set }
| `- note: property declared here
18 | @MainActor open var zRotation: CGFloat { get set }
19 | @MainActor open var xScale: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2376:10: warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
| `- warning: main actor-isolated property 'position' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
2377 | if let parentNode = node.parent {
2378 | // check that the parent is not the scene
SpriteKit.SKNode:16:25: note: mutation of this property is only permitted within the actor
14 | open var frame: CGRect { get }
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
| `- note: mutation of this property is only permitted within the actor
17 | @MainActor open var zPosition: CGFloat { get set }
18 | @MainActor open var zRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2376:49: warning: main actor-isolated property 'position' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
| `- warning: main actor-isolated property 'position' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2377 | if let parentNode = node.parent {
2378 | // check that the parent is not the scene
SpriteKit.SKNode:16:25: note: property declared here
14 | open var frame: CGRect { get }
15 | open func calculateAccumulatedFrame() -> CGRect
16 | @MainActor open var position: CGPoint { get set }
| `- note: property declared here
17 | @MainActor open var zPosition: CGFloat { get set }
18 | @MainActor open var zRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2377:30: warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
2377 | if let parentNode = node.parent {
| `- warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2378 | // check that the parent is not the scene
2379 | if parentNode != node.scene {
SpriteKit.SKNode:34:14: note: property declared here
32 | @available(macOS, unavailable)
33 | open var focusBehavior: SKNodeFocusBehavior { get set }
34 | open var parent: SKNode? { get }
| `- note: property declared here
35 | open var children: [SKNode] { get }
36 | @MainActor open var name: String? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Extensions.swift:2379:31: warning: main actor-isolated property 'scene' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2373 | - parameter scale: `CGFloat` device scale.
2374 | */
2375 | public func clampNodePosition(node: SKNode, scale: CGFloat) {
| `- note: add '@MainActor' to make global function 'clampNodePosition(node:scale:)' part of global actor 'MainActor'
2376 | node.position = clampedPosition(point: node.position, scale: scale)
2377 | if let parentNode = node.parent {
2378 | // check that the parent is not the scene
2379 | if parentNode != node.scene {
| `- warning: main actor-isolated property 'scene' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2380 | clampNodePosition(node: parentNode, scale: scale)
2381 | }
SpriteKit.SKNode:37:14: note: property declared here
35 | open var children: [SKNode] { get }
36 | @MainActor open var name: String? { get set }
37 | open var scene: SKScene? { get }
| `- note: property declared here
38 | @MainActor open var physicsBody: SKPhysicsBody? { get set }
39 | open var userData: NSMutableDictionary? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+GameplayKit.swift:302:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
300 | - returns: `GKGridGraphNode.Type` dictionary insertion was successfull.
301 | */
302 | open func objectForGraphType(named: String?) -> GKGridGraphNode.Type { return SKTiledGraphNode.self }
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
303 |
304 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+GameplayKit.swift:312:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
310 | - returns: `Bool` dictionary insertion was successfull.
311 | */
312 | open func addGraph(named: String, graph: GKGridGraph<GKGridGraphNode>) -> Bool {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
313 | if (graphs[named] != nil) {
314 | return false
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+GameplayKit.swift:328:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
326 | - returns: `GKGridGraph?` removed graph instance.
327 | */
328 | open func removeGraph(named: String) -> GKGridGraph<GKGridGraphNode>? {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
329 | log("removing graph \"\(named)\" to scene.", level: .debug)
330 | return graphs.removeValue(forKey: named)
Build complete! (16.66s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SKTiled",
"name" : "SKTiled",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "tvos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "SKTiled",
"targets" : [
"SKTiled"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SKTiledTests",
"module_type" : "SwiftTarget",
"name" : "SKTiledTests",
"path" : "Tests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/characters-8x8.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/characters-8x8.tsx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/environment-8x8.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/environment-8x8.tsx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/items-8x8.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/items-8x8.tsx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/items-alt-8x8.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/monsters-16x16.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/monsters-16x16.tsx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/portraits-8x8.png",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/portraits-8x8.tsx",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Assets/test-tilemap.tmx",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"ColorTests.swift",
"CompressionTests.swift",
"CoordinateTests.swift",
"ParserTests.swift",
"PerformanceTests.swift",
"PropertiesTests.swift",
"QueryTests.swift",
"TemplateTests.swift",
"TestMapDelegate.swift",
"TestTilesetDelegate.swift",
"Tests+Extensions.swift",
"TilemapTests.swift",
"TilesetTests.swift"
],
"target_dependencies" : [
"SKTiled"
],
"type" : "test"
},
{
"c99name" : "SKTiled",
"module_type" : "SwiftTarget",
"name" : "SKTiled",
"path" : "Sources",
"product_memberships" : [
"SKTiled"
],
"sources" : [
"AnchorNode.swift",
"Array2D.swift",
"Logging.swift",
"SKGroupLayer.swift",
"SKImageLayer.swift",
"SKObjectGroup.swift",
"SKTile.swift",
"SKTileLayer.swift",
"SKTileObject.swift",
"SKTiled+Debug.swift",
"SKTiled+Extensions.swift",
"SKTiled+GameplayKit.swift",
"SKTiled+Properties.swift",
"SKTiledLayerObject.swift",
"SKTiledObject.swift",
"SKTiledScene.swift",
"SKTiledSceneCamera.swift",
"SKTilemap.swift",
"SKTilemapParser.swift",
"SKTileset.swift",
"SKTilesetData.swift",
"ThreadSafeArray.swift",
"TileAnimationFrame.swift",
"TileCollisionShape.swift",
"TileDataStorage.swift",
"TileObjectOverlay.swift",
"TileObjectProxy.swift",
"TiledBackgroundLayer.swift",
"TiledDebugDrawNode.swift",
"TiledGlobals.swift",
"TiledSceneCameraDelegate.swift",
"TiledSceneDelegate.swift",
"TilemapDelegate.swift",
"TilesetDataSource.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.