Build Information
Successful build of SKTiled, reference master (69e520
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 22:33:01 UTC.
Swift 6 data race errors: 82
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
78 | */
79 | @property (nonatomic) CGPoint position;
| `- note: property declared here
80 |
81 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:675:78: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 |
109 | /// Camera bounds.
110 | internal var bounds: CGRect
| `- note: property declared here
111 |
112 | /// Camera observers.
:
673 | override public var description: String {
674 | guard let scene = scene else { return "Camera: "}
675 | let rect = CGRect(origin: scene.convert(position, from: self), size: bounds.size)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
676 | let uiScale = getContentScaleFactor()
677 | let scaleString = (uiScale > 1) ? ", scale: \(uiScale)" : ""
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:680:54: warning: main actor-isolated property 'zoom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
114 |
115 | /// Camera zoom level.
116 | public var zoom: CGFloat = 1.0
| `- note: property declared here
117 |
118 | /// Initial zoom level.
:
678 | let sizeString = "origin: \(Int(rect.origin.x)), \(Int(rect.origin.y)), size: \(Int(rect.size.width)) x \(Int(rect.size.height))\(scaleString)"
679 |
680 | let result = "Camera: \(sizeString), zoom: \(zoom.roundTo())"
| `- warning: main actor-isolated property 'zoom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
681 | return "\(result)\(clampDescription)"
682 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:681:28: warning: main actor-isolated property 'clampDescription' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
663 |
664 | /// Current clamp status
665 | public var clampDescription: String {
| `- note: property declared here
666 | let clampString = (ignoreZoomClamping == false) ? (zoomClamping != .none) ? ", clamp: \(zoomClamping.minimum)" : "" : ""
667 | let modeString = (controlMode != .none) ? ", mode: \(controlMode)" : ""
:
679 |
680 | let result = "Camera: \(sizeString), zoom: \(zoom.roundTo())"
681 | return "\(result)\(clampDescription)"
| `- warning: main actor-isolated property 'clampDescription' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
682 | }
683 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:685:28: warning: main actor-isolated property 'zoomClamping' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 |
170 | /// Clamping factor used to alleviate render artifacts like cracking.
171 | public var zoomClamping: CameraZoomClamping = CameraZoomClamping.none {
| `- note: property declared here
172 | didSet {
173 | setCameraZoom(self.zoom)
:
683 |
684 | override public var debugDescription: String {
685 | let clampString = (zoomClamping != .none) ? ", clamp: \(zoomClamping.minimum)" : ""
| `- warning: main actor-isolated property 'zoomClamping' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
686 | return "Camera: \(bounds.roundTo()), zoom: \(zoom.roundTo())\(clampString)"
687 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:685:65: warning: main actor-isolated property 'zoomClamping' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 |
170 | /// Clamping factor used to alleviate render artifacts like cracking.
171 | public var zoomClamping: CameraZoomClamping = CameraZoomClamping.none {
| `- note: property declared here
172 | didSet {
173 | setCameraZoom(self.zoom)
:
683 |
684 | override public var debugDescription: String {
685 | let clampString = (zoomClamping != .none) ? ", clamp: \(zoomClamping.minimum)" : ""
| `- warning: main actor-isolated property 'zoomClamping' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
686 | return "Camera: \(bounds.roundTo()), zoom: \(zoom.roundTo())\(clampString)"
687 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:686:27: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 |
109 | /// Camera bounds.
110 | internal var bounds: CGRect
| `- note: property declared here
111 |
112 | /// Camera observers.
:
684 | override public var debugDescription: String {
685 | let clampString = (zoomClamping != .none) ? ", clamp: \(zoomClamping.minimum)" : ""
686 | return "Camera: \(bounds.roundTo()), zoom: \(zoom.roundTo())\(clampString)"
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
687 | }
688 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:686:54: warning: main actor-isolated property 'zoom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
114 |
115 | /// Camera zoom level.
116 | public var zoom: CGFloat = 1.0
| `- note: property declared here
117 |
118 | /// Initial zoom level.
:
684 | override public var debugDescription: String {
685 | let clampString = (zoomClamping != .none) ? ", clamp: \(zoomClamping.minimum)" : ""
686 | return "Camera: \(bounds.roundTo()), zoom: \(zoom.roundTo())\(clampString)"
| `- warning: main actor-isolated property 'zoom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
687 | }
688 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:185:16: warning: main actor-isolated property 'uuid' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
152 | [tileset-url]:SKTileset.html
153 | */
154 | public class SKTilemap: SKEffectNode, SKTiledObject {
| `- note: add '@preconcurrency' to the 'SKTiledObject' conformance to defer isolation checking to run time
155 |
156 | /**
:
183 |
184 | /// Unique SpriteKit node id.
185 | public var uuid: String = UUID().uuidString
| `- warning: main actor-isolated property 'uuid' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
186 |
187 | /// Indicates the Tiled application version this map was created with.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:74:9: note: requirement '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: requirement 'uuid' declared here
75 |
76 | /// Object type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:194:16: warning: main actor-isolated property 'type' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
192 |
193 | /// Tilemap node type.
194 | public var type: String!
| `- warning: main actor-isolated property 'type' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
195 |
196 | /// Custom **Tiled** properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:77:9: note: requirement 'type' declared here
75 |
76 | /// Object type.
77 | var type: String! { get set }
| `- note: requirement 'type' declared here
78 |
79 | /// Storage for custom Tiled properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:197:16: warning: main actor-isolated property 'properties' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
195 |
196 | /// Custom **Tiled** properties.
197 | public var properties: [String: String] = [:]
| `- warning: main actor-isolated property 'properties' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
198 |
199 | /// If enabled, custom **Tiled** properties are ignored.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:80:9: note: requirement 'properties' declared here
78 |
79 | /// Storage for custom Tiled properties.
80 | var properties: [String: String] { get set }
| `- note: requirement 'properties' declared here
81 |
82 | /// Ignore custom properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:200:16: warning: main actor-isolated property 'ignoreProperties' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
198 |
199 | /// If enabled, custom **Tiled** properties are ignored.
200 | public var ignoreProperties: Bool = false
| `- warning: main actor-isolated property 'ignoreProperties' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
201 |
202 | /// Returns true if all of the child layers are rendered.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:83:9: note: requirement 'ignoreProperties' declared here
81 |
82 | /// Ignore custom properties.
83 | var ignoreProperties: Bool { get set }
| `- note: requirement 'ignoreProperties' declared here
84 |
85 | /// Parse function (with optional completion block).
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Properties.swift:39:17: warning: main actor-isolated instance method 'parseProperties(completion:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
37 | - parameter completion: `Void?` optional completion closure.
38 | */
39 | public func parseProperties(completion: (() -> Void)?) {
| |- warning: main actor-isolated instance method 'parseProperties(completion:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; 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
40 |
41 | if (ignoreProperties == true) { return }
/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/SKTilemap.swift:261:16: warning: main actor-isolated property 'renderQuality' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
259 |
260 | /// Scaling factor for text objects, etc.
261 | public var renderQuality: CGFloat = 2 {
| `- warning: main actor-isolated property 'renderQuality' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledObject'; this is an error in the Swift 6 language mode
262 | didSet {
263 | guard renderQuality != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledObject.swift:89:9: note: requirement 'renderQuality' declared here
87 |
88 | /// Render scaling property.
89 | var renderQuality: CGFloat { get }
| `- note: requirement 'renderQuality' declared here
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2636:17: warning: main actor-isolated instance method 'dumpStatistics()' cannot be used to satisfy nonisolated requirement from protocol 'CustomDebugReflectable'; this is an error in the Swift 6 language mode
2631 |
2632 | /// :nodoc:
2633 | extension SKTilemap: CustomDebugReflectable {
| `- note: add '@preconcurrency' to the 'CustomDebugReflectable' conformance to defer isolation checking to run time
2634 |
2635 | /// Dump a summary of the current tilemap's layer statistics.
2636 | public func dumpStatistics() {
| |- warning: main actor-isolated instance method 'dumpStatistics()' cannot be used to satisfy nonisolated requirement from protocol 'CustomDebugReflectable'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'dumpStatistics()' to make this instance method not isolated to the actor
2637 | guard (layerCount > 0) else {
2638 | print("# Tilemap \"\(mapName)\": 0 Layers")
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Debug.swift:210:10: note: mark the protocol requirement 'dumpStatistics()' 'async' to allow actor-isolated conformances
208 | /// :nodoc:
209 | protocol CustomDebugReflectable: AnyObject {
210 | func dumpStatistics()
| `- note: mark the protocol requirement 'dumpStatistics()' 'async' to allow actor-isolated conformances
211 | }
212 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:300:16: warning: main actor-isolated property 'receiveCameraUpdates' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
298 |
299 | /// Receive notifications from camera.
300 | public var receiveCameraUpdates: Bool = true
| `- warning: main actor-isolated property 'receiveCameraUpdates' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
301 |
302 | /// Display bounds that the tilemap is viewable in.
:
2872 |
2873 | /// :nodoc:
2874 | extension SKTilemap: SKTiledSceneCameraDelegate {
| `- note: add '@preconcurrency' to the 'SKTiledSceneCameraDelegate' conformance to defer isolation checking to run time
2875 |
2876 | /**
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:69:15: note: requirement 'receiveCameraUpdates' declared here
67 | Allow delegate to receive updates from camera.
68 | */
69 | @objc var receiveCameraUpdates: Bool { get set }
| `- note: requirement 'receiveCameraUpdates' declared here
70 |
71 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2881:17: warning: main actor-isolated instance method 'containedNodesChanged' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
2879 | - parameter nodes: `Set<SKNode>` nodes in camera view.
2880 | */
2881 | public func containedNodesChanged(_ nodes: Set<SKNode>) {
| |- warning: main actor-isolated instance method 'containedNodesChanged' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'containedNodesChanged' to make this instance method not isolated to the actor
2882 | guard (receiveCameraUpdates == true) else { return }
2883 |
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:76:25: note: mark the protocol requirement 'containedNodesChanged' 'async' to allow actor-isolated conformances
74 | - parameter nodes: `[SKNode]` nodes in camera view.
75 | */
76 | @objc optional func containedNodesChanged(_ nodes: Set<SKNode>)
| `- note: mark the protocol requirement 'containedNodesChanged' 'async' to allow actor-isolated conformances
77 |
78 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2907:17: warning: main actor-isolated instance method 'cameraPositionChanged(newPosition:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
2905 | - parameter newPositon: `CGPoint` updated camera position.
2906 | */
2907 | public func cameraPositionChanged(newPosition: CGPoint) {
| |- warning: main actor-isolated instance method 'cameraPositionChanged(newPosition:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cameraPositionChanged(newPosition:)' to make this instance method not isolated to the actor
2908 | // nodesInView
2909 | }
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:83:25: note: mark the protocol requirement 'cameraPositionChanged(newPosition:)' 'async' to allow actor-isolated conformances
81 | - parameter newPositon: `CGPoint` updated camera position.
82 | */
83 | @objc optional func cameraPositionChanged(newPosition: CGPoint)
| `- note: mark the protocol requirement 'cameraPositionChanged(newPosition:)' 'async' to allow actor-isolated conformances
84 |
85 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2916:17: warning: main actor-isolated instance method 'cameraZoomChanged(newZoom:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
2914 | - parameter newZoom: `CGFloat` camera zoom amount.
2915 | */
2916 | public func cameraZoomChanged(newZoom: CGFloat) {
| |- warning: main actor-isolated instance method 'cameraZoomChanged(newZoom:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cameraZoomChanged(newZoom:)' to make this instance method not isolated to the actor
2917 | //let oldZoom = currentZoom
2918 | currentZoom = newZoom
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:90:25: note: mark the protocol requirement 'cameraZoomChanged(newZoom:)' 'async' to allow actor-isolated conformances
88 | - parameter newZoom: `CGFloat` camera zoom amount.
89 | */
90 | @objc optional func cameraZoomChanged(newZoom: CGFloat)
| `- note: mark the protocol requirement 'cameraZoomChanged(newZoom:)' 'async' to allow actor-isolated conformances
91 |
92 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2898:17: warning: main actor-isolated instance method 'cameraBoundsChanged(bounds:position:zoom:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
2896 | - parameter zoom: `CGFloat` camera zoom amount.
2897 | */
2898 | public func cameraBoundsChanged(bounds: CGRect, position: CGPoint, zoom: CGFloat) {
| |- warning: main actor-isolated instance method 'cameraBoundsChanged(bounds:position:zoom:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'cameraBoundsChanged(bounds:position:zoom:)' to make this instance method not isolated to the actor
2899 | cameraBounds = bounds
2900 | }
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:99:25: note: mark the protocol requirement 'cameraBoundsChanged(bounds:position:zoom:)' 'async' to allow actor-isolated conformances
97 | - parameter zoom: `CGFloat` camera zoom amount.
98 | */
99 | @objc optional func cameraBoundsChanged(bounds: CGRect, position: CGPoint, zoom: CGFloat)
| `- note: mark the protocol requirement 'cameraBoundsChanged(bounds:position:zoom:)' 'async' to allow actor-isolated conformances
100 |
101 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2937:17: warning: main actor-isolated instance method 'sceneDoubleClicked(event:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
2935 | - parameter event: `NSEvent` mouse click event.
2936 | */
2937 | public func sceneDoubleClicked(event: NSEvent) {}
| |- warning: main actor-isolated instance method 'sceneDoubleClicked(event:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sceneDoubleClicked(event:)' to make this instance method not isolated to the actor
2938 |
2939 | /**
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:107:25: note: mark the protocol requirement 'sceneDoubleClicked(event:)' 'async' to allow actor-isolated conformances
105 | - parameter event: `NSEvent` mouse click event.
106 | */
107 | @objc optional func sceneDoubleClicked(event: NSEvent)
| `- note: mark the protocol requirement 'sceneDoubleClicked(event:)' 'async' to allow actor-isolated conformances
108 |
109 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2944:17: warning: main actor-isolated instance method 'mousePositionChanged(event:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
2942 | - parameter event: `NSEvent` mouse click event.
2943 | */
2944 | public func mousePositionChanged(event: NSEvent) {}
| |- warning: main actor-isolated instance method 'mousePositionChanged(event:)' cannot be used to satisfy nonisolated requirement from protocol 'SKTiledSceneCameraDelegate'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'mousePositionChanged(event:)' to make this instance method not isolated to the actor
2945 | #endif
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:114:25: note: mark the protocol requirement 'mousePositionChanged(event:)' 'async' to allow actor-isolated conformances
112 | - parameter event: `NSEvent` mouse click event.
113 | */
114 | @objc optional func mousePositionChanged(event: NSEvent)
| `- note: mark the protocol requirement 'mousePositionChanged(event:)' 'async' to allow actor-isolated conformances
115 | #endif
116 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2171:31: warning: capture of 'dataStorage' with non-sendable type 'TileDataStorage' in a '@Sendable' closure
2169 | staticTilesQueue.async {
2170 |
2171 | for staticItem in dataStorage.staticTileCache.enumerated() {
| `- warning: capture of 'dataStorage' with non-sendable type 'TileDataStorage' in a '@Sendable' closure
2172 |
2173 | let tileData = staticItem.element.key
/Users/admin/builder/spi-builder-workspace/Sources/TileDataStorage.swift:50:16: note: class 'TileDataStorage' does not conform to the 'Sendable' protocol
48 | /// Data structure for storing and recalling tile data efficiently.
49 |
50 | internal class TileDataStorage: Loggable {
| `- note: class 'TileDataStorage' does not conform to the 'Sendable' protocol
51 | weak var tilemap: SKTilemap?
52 | // queues
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2208:21: warning: capture of 'completion' with non-sendable type '((Int) -> Void)?' in a '@Sendable' closure
2206 | if (TiledGlobals.default.enableRenderCallbacks == true) {
2207 | DispatchQueue.main.async {
2208 | completion?(staticTilesUpdated)
| |- warning: capture of 'completion' with non-sendable type '((Int) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
2209 | }
2210 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2181:30: warning: main actor-isolated property 'visibleToCamera' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2179 |
2180 | // ignore tiles not in view
2181 | if (tile.visibleToCamera) == false {
| `- warning: main actor-isolated property 'visibleToCamera' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2182 | continue
2183 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTile.swift:101:14: note: property declared here
99 |
100 | /// Object is visible in camera.
101 | open var visibleToCamera: Bool = true
| `- note: property declared here
102 |
103 | /// Don't send updates.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2185:33: warning: main actor-isolated property 'renderMode' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2183 | }
2184 |
2185 | switch tile.renderMode {
| `- warning: main actor-isolated property 'renderMode' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2186 |
2187 | // tile is ignoring its tile data, move on
/Users/admin/builder/spi-builder-workspace/Sources/SKTile.swift:107:14: note: property declared here
105 |
106 | /// Render mode for this instance.
107 | open var renderMode: TileRenderMode = TileRenderMode.default {
| `- note: property declared here
108 | didSet {
109 | guard (oldValue != renderMode) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2198:34: warning: main actor-isolated property 'texture' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2196 | }
2197 |
2198 | tile.texture = tileTexture
| `- warning: main actor-isolated property 'texture' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2199 | tile.size = tileTexture.size()
2200 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SKSpriteNode.h:105:52: note: mutation of this property is only permitted within the actor
103 | Texture to be drawn (is stretched to fill the sprite)
104 | */
105 | @property (nonatomic, retain, nullable) SKTexture *texture;
| `- note: mutation of this property is only permitted within the actor
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2199:34: warning: main actor-isolated property 'size' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2197 |
2198 | tile.texture = tileTexture
2199 | tile.size = tileTexture.size()
| `- warning: main actor-isolated property 'size' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2200 | }
2201 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SKSpriteNode.h:163:30: note: mutation of this property is only permitted within the actor
161 | Set the size of the sprite (in parent's coordinate space)
162 | */
163 | @property (nonatomic) CGSize size;
| `- note: mutation of this property is only permitted within the actor
164 |
165 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2202:21: warning: mutation of captured var 'staticTilesUpdated' in concurrently-executing code
2200 | }
2201 |
2202 | staticTilesUpdated += 1
| `- warning: mutation of captured var 'staticTilesUpdated' in concurrently-executing code
2203 | }
2204 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2226:33: warning: capture of 'dataStorage' with non-sendable type 'TileDataStorage' in a '@Sendable' closure
2224 |
2225 | animatedTilesQueue.async {
2226 | for animatedItem in dataStorage.animatedTileCache.enumerated() {
| `- warning: capture of 'dataStorage' with non-sendable type 'TileDataStorage' in a '@Sendable' closure
2227 |
2228 | let tileData = animatedItem.element.key
/Users/admin/builder/spi-builder-workspace/Sources/TileDataStorage.swift:50:16: note: class 'TileDataStorage' does not conform to the 'Sendable' protocol
48 | /// Data structure for storing and recalling tile data efficiently.
49 |
50 | internal class TileDataStorage: Loggable {
| `- note: class 'TileDataStorage' does not conform to the 'Sendable' protocol
51 | weak var tilemap: SKTilemap?
52 | // queues
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2315:21: warning: capture of 'completion' with non-sendable type '((Int) -> Void)?' in a '@Sendable' closure
2313 | if (TiledGlobals.default.enableRenderCallbacks == true) {
2314 | DispatchQueue.main.async {
2315 | completion?(animatedTilesUpdated)
| |- warning: capture of 'completion' with non-sendable type '((Int) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
2316 | }
2317 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2241:58: warning: main actor-isolated property 'speed' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
267 |
268 | /// Map animation speed
269 | override public var speed: CGFloat {
| `- note: property declared here
270 | didSet {
271 | guard oldValue != speed else { return }
:
2239 |
2240 | // array of frame values
2241 | let frames: [TileAnimationFrame] = (self.speed >= 0) ? tileData.frames : tileData.frames.reversed()
| `- warning: main actor-isolated property 'speed' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2242 |
2243 | // increment the current time value
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2244:66: warning: main actor-isolated property 'speed' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
267 |
268 | /// Map animation speed
269 | override public var speed: CGFloat {
| `- note: property declared here
270 | didSet {
271 | guard oldValue != speed else { return }
:
2242 |
2243 | // increment the current time value
2244 | tileData.currentTime += (delta * abs(Double(self.speed)))
| `- warning: main actor-isolated property 'speed' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2245 |
2246 | // current time in ms
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2288:30: warning: main actor-isolated property 'enableAnimation' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2286 | for tile in tileArray {
2287 | // ignore tiles with disabled animation
2288 | if (tile.enableAnimation == false) {
| `- warning: main actor-isolated property 'enableAnimation' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2289 | continue
2290 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTile.swift:178:14: note: property declared here
176 |
177 | /// Enable tile animation.
178 | open var enableAnimation: Bool = true {
| `- note: property declared here
179 | didSet {
180 | if (enableAnimation == false) {
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2293:30: warning: main actor-isolated property 'visibleToCamera' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2291 |
2292 | // ignore tiles not in view
2293 | if (tile.visibleToCamera == false) {
| `- warning: main actor-isolated property 'visibleToCamera' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2294 | continue
2295 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTile.swift:101:14: note: property declared here
99 |
100 | /// Object is visible in camera.
101 | open var visibleToCamera: Bool = true
| `- note: property declared here
102 |
103 | /// Don't send updates.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2297:33: warning: main actor-isolated property 'renderMode' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2295 | }
2296 |
2297 | switch tile.renderMode {
| `- warning: main actor-isolated property 'renderMode' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
2298 |
2299 | case .ignore, .static:
/Users/admin/builder/spi-builder-workspace/Sources/SKTile.swift:107:14: note: property declared here
105 |
106 | /// Render mode for this instance.
107 | open var renderMode: TileRenderMode = TileRenderMode.default {
| `- note: property declared here
108 | didSet {
109 | guard (oldValue != renderMode) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2305:38: warning: main actor-isolated property 'texture' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2303 |
2304 | if let frameTexture = currentTexture {
2305 | tile.texture = frameTexture
| `- warning: main actor-isolated property 'texture' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2306 | tile.size = frameTexture.size()
2307 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SKSpriteNode.h:105:52: note: mutation of this property is only permitted within the actor
103 | Texture to be drawn (is stretched to fill the sprite)
104 | */
105 | @property (nonatomic, retain, nullable) SKTexture *texture;
| `- note: mutation of this property is only permitted within the actor
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2306:38: warning: main actor-isolated property 'size' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2304 | if let frameTexture = currentTexture {
2305 | tile.texture = frameTexture
2306 | tile.size = frameTexture.size()
| `- warning: main actor-isolated property 'size' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
2307 | }
2308 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SKSpriteNode.h:163:30: note: mutation of this property is only permitted within the actor
161 | Set the size of the sprite (in parent's coordinate space)
162 | */
163 | @property (nonatomic) CGSize size;
| `- note: mutation of this property is only permitted within the actor
164 |
165 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2309:21: warning: mutation of captured var 'animatedTilesUpdated' in concurrently-executing code
2307 | }
2308 | }
2309 | animatedTilesUpdated += 1
| `- warning: mutation of captured var 'animatedTilesUpdated' in concurrently-executing code
2310 | }
2311 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2569:27: warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
463 |
464 | /// Size of the map in points.
465 | public var sizeInPoints: CGSize {
| `- note: property declared here
466 | switch orientation {
467 | case .orthogonal:
:
2567 | /// String representation of the map.
2568 | override public var description: String {
2569 | let sizedesc = "\(sizeInPoints.shortDescription): (\(size.shortDescription) @ \(tileSize.shortDescription))"
| `- warning: main actor-isolated property 'sizeInPoints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2570 | guard isRendered == true else {
2571 | return "Map: \(mapName), \(sizedesc)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2569:62: warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
207 |
208 | /// Size of map (in tiles).
209 | public var size: CGSize
| `- note: property declared here
210 |
211 | /// Tile size (in pixels).
:
2567 | /// String representation of the map.
2568 | override public var description: String {
2569 | let sizedesc = "\(sizeInPoints.shortDescription): (\(size.shortDescription) @ \(tileSize.shortDescription))"
| `- warning: main actor-isolated property 'size' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2570 | guard isRendered == true else {
2571 | return "Map: \(mapName), \(sizedesc)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2569:89: warning: main actor-isolated property 'tileSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
210 |
211 | /// Tile size (in pixels).
212 | public var tileSize: CGSize
| `- note: property declared here
213 |
214 | /// Map orientation type.
:
2567 | /// String representation of the map.
2568 | override public var description: String {
2569 | let sizedesc = "\(sizeInPoints.shortDescription): (\(size.shortDescription) @ \(tileSize.shortDescription))"
| `- warning: main actor-isolated property 'tileSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2570 | guard isRendered == true else {
2571 | return "Map: \(mapName), \(sizedesc)"
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2570:15: warning: main actor-isolated property 'isRendered' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 |
202 | /// Returns true if all of the child layers are rendered.
203 | public internal(set) var isRendered: Bool = false
| `- note: property declared here
204 |
205 | /// Returns the render time of this map.
:
2568 | override public var description: String {
2569 | let sizedesc = "\(sizeInPoints.shortDescription): (\(size.shortDescription) @ \(tileSize.shortDescription))"
2570 | guard isRendered == true else {
| `- warning: main actor-isolated property 'isRendered' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2571 | return "Map: \(mapName), \(sizedesc)"
2572 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2571:28: warning: main actor-isolated property 'mapName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
220 |
221 | /// String representing the map name. Defaults to the current map source file name (minus the tmx extension).
222 | public var mapName: String {
| `- note: property declared here
223 | if let dname = self.displayName {
224 | return dname
:
2569 | let sizedesc = "\(sizeInPoints.shortDescription): (\(size.shortDescription) @ \(tileSize.shortDescription))"
2570 | guard isRendered == true else {
2571 | return "Map: \(mapName), \(sizedesc)"
| `- warning: main actor-isolated property 'mapName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2572 | }
2573 | return "Map: \(mapName), \(sizedesc), \(tileCount) tiles"
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2573:24: warning: main actor-isolated property 'mapName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
220 |
221 | /// String representing the map name. Defaults to the current map source file name (minus the tmx extension).
222 | public var mapName: String {
| `- note: property declared here
223 | if let dname = self.displayName {
224 | return dname
:
2571 | return "Map: \(mapName), \(sizedesc)"
2572 | }
2573 | return "Map: \(mapName), \(sizedesc), \(tileCount) tiles"
| `- warning: main actor-isolated property 'mapName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2574 | }
2575 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2573:49: warning: main actor-isolated property 'tileCount' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
612 |
613 | /// Global tile count
614 | public var tileCount: Int {
| `- note: property declared here
615 | return tileLayers(recursive: true).reduce(0) { (result: Int, layer: SKTileLayer) in
616 | return result + layer.tileCount
:
2571 | return "Map: \(mapName), \(sizedesc)"
2572 | }
2573 | return "Map: \(mapName), \(sizedesc), \(tileCount) tiles"
| `- warning: main actor-isolated property 'tileCount' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2574 | }
2575 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2578:31: warning: main actor-isolated property 'mapName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
220 |
221 | /// String representing the map name. Defaults to the current map source file name (minus the tmx extension).
222 | public var mapName: String {
| `- note: property declared here
223 | if let dname = self.displayName {
224 | return dname
:
2576 | /// Debug string representation of the map.
2577 | override public var debugDescription: String {
2578 | return "Tile Map: \"\(mapName)\", \(tileCount) tiles"
| `- warning: main actor-isolated property 'mapName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2579 | }
2580 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2578:45: warning: main actor-isolated property 'tileCount' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
612 |
613 | /// Global tile count
614 | public var tileCount: Int {
| `- note: property declared here
615 | return tileLayers(recursive: true).reduce(0) { (result: Int, layer: SKTileLayer) in
616 | return result + layer.tileCount
:
2576 | /// Debug string representation of the map.
2577 | override public var debugDescription: String {
2578 | return "Tile Map: \"\(mapName)\", \(tileCount) tiles"
| `- warning: main actor-isolated property 'tileCount' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
2579 | }
2580 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:290:20: warning: main actor-isolated property 'dataStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | - returns: `SKTilemap?` tiled map node.
148 | */
149 | internal func load(tmxFile: String,
| `- note: add '@MainActor' to make instance method 'load(tmxFile:inDirectory:delegate:tilesetDataSource:updateMode:withTilesets:ignoreProperties:loggingLevel:renderQueue:)' part of global actor 'MainActor'
150 | inDirectory: String? = nil,
151 | delegate: SKTilemapDelegate? = nil,
:
288 | }
289 |
290 | currentMap.dataStorage?.sync()
| `- warning: main actor-isolated property 'dataStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
291 | return currentMap
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:347:18: note: property declared here
345 |
346 | /// Storage for tile data and updates.
347 | internal var dataStorage: TileDataStorage?
| `- note: property declared here
348 |
349 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:444:30: warning: call to main actor-isolated instance method 'getLayers(recursive:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
437 | - parameter duration: `TimeInterval` fade-in time for each layer.
438 | */
439 | fileprivate func didBeginRendering(_ tilemap: SKTilemap, queue: DispatchQueue, duration: TimeInterval = 0.025) {
| `- note: add '@MainActor' to make instance method 'didBeginRendering(_:queue:duration:)' part of global actor 'MainActor'
440 |
441 | let debugLevel: Bool = (loggingLevel.rawValue < 1) ? true : false
442 |
443 | // loop through the layers
444 | for layer in tilemap.getLayers(recursive: true) {
| `- warning: call to main actor-isolated instance method 'getLayers(recursive:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
445 |
446 | // assign each layer a work item
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:1106:17: note: calls to instance method 'getLayers(recursive:)' from outside of its actor context are implicitly asynchronous
1104 | - returns: `[SKTiledLayerObject]` array of layers.
1105 | */
1106 | public func getLayers(recursive: Bool = true) -> [SKTiledLayerObject] {
| |- note: calls to instance method 'getLayers(recursive:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1107 | return (recursive == true) ? self.layers : Array(self._layers)
1108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:450:33: warning: call to main actor-isolated instance method 'draw()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
448 | // render object groups
449 | if let objectGroup = layer as? SKObjectGroup {
450 | objectGroup.draw()
| `- warning: call to main actor-isolated instance method 'draw()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
451 | }
452 |
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:284:17: note: calls to instance method 'draw()' from outside of its actor context are implicitly asynchronous
282 | Render all of the objects in the group.
283 | */
284 | public func draw() {
| |- note: calls to instance method 'draw()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
285 | objects.forEach { $0.draw() }
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:460:59: warning: main actor-isolated property 'uuid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
458 |
459 | // get stashed tile data
460 | if let tileData = self.data[tileLayer.uuid] {
| `- warning: main actor-isolated property 'uuid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
461 | // add the layer data
462 | if (tileLayer.setLayerData(tileData, debug: debugLevel) == false) {
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:117:16: note: property declared here
115 |
116 | /// Unique layer id.
117 | public var uuid: String = UUID().uuidString
| `- note: property declared here
118 |
119 | /// Layer type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:462:39: warning: call to main actor-isolated instance method 'setLayerData(_:debug:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
460 | if let tileData = self.data[tileLayer.uuid] {
461 | // add the layer data
462 | if (tileLayer.setLayerData(tileData, debug: debugLevel) == false) {
| `- warning: call to main actor-isolated instance method 'setLayerData(_:debug:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
463 | self.log("layer \"\(tileLayer.layerName)\" failed to set data.", level: .warning)
464 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:302:17: note: calls to instance method 'setLayerData(_:debug:)' from outside of its actor context are implicitly asynchronous
300 | */
301 | @discardableResult
302 | public func setLayerData(_ data: [UInt32], debug: Bool = false) -> Bool {
| |- note: calls to instance method 'setLayerData(_:debug:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
303 | if !(data.count == size.pointCount) {
304 | log("invalid data size for layer \"\(self.layerName)\": \(data.count), expected: \(size.pointCount)", level: .error)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:463:59: warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
461 | // add the layer data
462 | if (tileLayer.setLayerData(tileData, debug: debugLevel) == false) {
463 | self.log("layer \"\(tileLayer.layerName)\" failed to set data.", level: .warning)
| `- warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
464 | }
465 | }
/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/SKTilemapParser.swift:468:34: warning: main actor-isolated property 'gidErrors' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
466 |
467 | // report errors
468 | if tileLayer.gidErrors.isEmpty == false {
| `- warning: main actor-isolated property 'gidErrors' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
469 | let gidErrorString : String = tileLayer.gidErrors.reduce("", { "\($0)" == "" ? "\($1)" : "\($0)" + ", " + "\($1)" })
470 | Logger.default.log("layer \"\(tileLayer.layerName)\": the following gids could not be found: \(gidErrorString)", level: .warning, symbol: self.logSymbol)
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:241:18: note: property declared here
239 |
240 | /// Storage for parsing errors.
241 | internal var gidErrors: [UInt32] = []
| `- note: property declared here
242 |
243 | /// Pathfinding graph.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:469:65: warning: main actor-isolated property 'gidErrors' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
467 | // report errors
468 | if tileLayer.gidErrors.isEmpty == false {
469 | let gidErrorString : String = tileLayer.gidErrors.reduce("", { "\($0)" == "" ? "\($1)" : "\($0)" + ", " + "\($1)" })
| `- warning: main actor-isolated property 'gidErrors' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
470 | Logger.default.log("layer \"\(tileLayer.layerName)\": the following gids could not be found: \(gidErrorString)", level: .warning, symbol: self.logSymbol)
471 | //Logger.default.cache(LogEvent("layer \"\(tileLayer.layerName)\": the following gids could not be found: \(gidErrorString)", level: .warning, caller: self.logSymbol))
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:241:18: note: property declared here
239 |
240 | /// Storage for parsing errors.
241 | internal var gidErrors: [UInt32] = []
| `- note: property declared here
242 |
243 | /// Pathfinding graph.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:470:65: warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
468 | if tileLayer.gidErrors.isEmpty == false {
469 | let gidErrorString : String = tileLayer.gidErrors.reduce("", { "\($0)" == "" ? "\($1)" : "\($0)" + ", " + "\($1)" })
470 | Logger.default.log("layer \"\(tileLayer.layerName)\": the following gids could not be found: \(gidErrorString)", level: .warning, symbol: self.logSymbol)
| `- warning: main actor-isolated property 'layerName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
471 | //Logger.default.cache(LogEvent("layer \"\(tileLayer.layerName)\": the following gids could not be found: \(gidErrorString)", level: .warning, caller: self.logSymbol))
472 | }
/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/SKTilemapParser.swift:477:27: warning: call to main actor-isolated instance method 'didFinishRendering(duration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
475 | // run the layer callback on the parser queue
476 | self.parsingQueue.sync {
477 | layer.didFinishRendering(duration: duration)
| `- warning: call to main actor-isolated instance method 'didFinishRendering(duration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
478 | }
479 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:950:17: note: calls to instance method 'didFinishRendering(duration:)' from outside of its actor context are implicitly asynchronous
948 | - parameter duration: `TimeInterval` fade-in duration.
949 | */
950 | public func didFinishRendering(duration: TimeInterval = 0) {
| |- note: calls to instance method 'didFinishRendering(duration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
951 | log(" - layer rendered: \"\(layerName)\"", level: .debug)
952 | self.parseProperties(completion: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:496:26: warning: call to main actor-isolated instance method 'didFinishRendering(timeStarted:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
494 | // sync external queue here
495 | queue.sync {
496 | self.tilemap.didFinishRendering(timeStarted: self.timer)
| `- warning: call to main actor-isolated instance method 'didFinishRendering(timeStarted:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
497 | }
498 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:1960:17: note: calls to instance method 'didFinishRendering(timeStarted:)' from outside of its actor context are implicitly asynchronous
1958 | - parameter timeStarted: `Date` render start time.
1959 | */
1960 | public func didFinishRendering(timeStarted: Date) {
| |- note: calls to instance method 'didFinishRendering(timeStarted:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1961 | // set the `isRendered` property
1962 | isRendered = layers.filter { $0.isRendered == false }.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:562:33: warning: call to main actor-isolated initializer 'init(attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
560 |
561 | // create the tilemap
562 | guard let tilemap = SKTilemap(attributes: attributeDict) else {
| `- warning: call to main actor-isolated initializer 'init(attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
563 | self.log("could not create tilemap.", level: .fatal)
564 | parser.abortParsing()
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:854:12: note: calls to initializer 'init(attributes:)' from outside of its actor context are implicitly asynchronous
852 | - returns: `SKTilemap?`
853 | */
854 | public init?(attributes: [String: String]) {
| |- note: calls to initializer 'init(attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
855 | guard let width = attributes["width"] else { return nil }
856 | guard let height = attributes["height"] else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:569:21: warning: main actor-isolated property 'dataStorage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
567 |
568 | // initialize cache
569 | tilemap.dataStorage = TileDataStorage(map: tilemap)
| `- warning: main actor-isolated property 'dataStorage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
570 | tilemap.receiveCameraUpdates = TiledGlobals.default.enableCameraCallbacks
571 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:347:18: note: mutation of this property is only permitted within the actor
345 |
346 | /// Storage for tile data and updates.
347 | internal var dataStorage: TileDataStorage?
| `- note: mutation of this property is only permitted within the actor
348 |
349 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:570:21: warning: main actor-isolated property 'receiveCameraUpdates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
568 | // initialize cache
569 | tilemap.dataStorage = TileDataStorage(map: tilemap)
570 | tilemap.receiveCameraUpdates = TiledGlobals.default.enableCameraCallbacks
| `- warning: main actor-isolated property 'receiveCameraUpdates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
571 |
572 | // initialize notifications
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:300:16: note: mutation of this property is only permitted within the actor
298 |
299 | /// Receive notifications from camera.
300 | public var receiveCameraUpdates: Bool = true
| `- note: mutation of this property is only permitted within the actor
301 |
302 | /// Display bounds that the tilemap is viewable in.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:573:21: warning: call to main actor-isolated instance method 'setupNotifications()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
571 |
572 | // initialize notifications
573 | tilemap.setupNotifications()
| `- warning: call to main actor-isolated instance method 'setupNotifications()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
574 |
575 | // set global logging level
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:2002:19: note: calls to instance method 'setupNotifications()' from outside of its actor context are implicitly asynchronous
2000 | Setup notification callbacks.
2001 | */
2002 | internal func setupNotifications() {
| |- note: calls to instance method 'setupNotifications()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
2003 | // nuttin here
2004 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:576:21: warning: main actor-isolated property 'loggingLevel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
574 |
575 | // set global logging level
576 | tilemap.loggingLevel = self.loggingLevel
| `- warning: main actor-isolated property 'loggingLevel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
577 | tilemap.updateMode = self.tileUpdateMode
578 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:241:18: note: mutation of this property is only permitted within the actor
239 |
240 | /// Logging verbosity.
241 | internal var loggingLevel: LoggingLevel = TiledGlobals.default.loggingLevel
| `- note: mutation of this property is only permitted within the actor
242 |
243 | // MARK: Tile Update Mode
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:577:21: warning: main actor-isolated property 'updateMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
575 | // set global logging level
576 | tilemap.loggingLevel = self.loggingLevel
577 | tilemap.updateMode = self.tileUpdateMode
| `- warning: main actor-isolated property 'updateMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
578 |
579 | self.tilemap = tilemap
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:246:16: note: mutation of this property is only permitted within the actor
244 |
245 | /// Update mode used for tiles & objects.
246 | public var updateMode: TileUpdateMode = TileUpdateMode.dynamic {
| `- note: mutation of this property is only permitted within the actor
247 | didSet {
248 | guard (updateMode != oldValue) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:580:26: warning: main actor-isolated property 'ignoreProperties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
578 |
579 | self.tilemap = tilemap
580 | self.tilemap.ignoreProperties = self.ignoreProperties
| `- warning: main actor-isolated property 'ignoreProperties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
581 | self.tilemap.delegate = self.mapDelegate
582 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:200:16: note: mutation of this property is only permitted within the actor
198 |
199 | /// If enabled, custom **Tiled** properties are ignored.
200 | public var ignoreProperties: Bool = false
| `- note: mutation of this property is only permitted within the actor
201 |
202 | /// Returns true if all of the child layers are rendered.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:581:26: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
579 | self.tilemap = tilemap
580 | self.tilemap.ignoreProperties = self.ignoreProperties
581 | self.tilemap.delegate = self.mapDelegate
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
582 |
583 | // set the tilemap url property
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:451:21: note: mutation of this property is only permitted within the actor
449 |
450 | /// Reference to `SKTilemapDelegate` delegate.
451 | weak public var delegate: SKTilemapDelegate?
| `- note: mutation of this property is only permitted within the actor
452 |
453 | /// Map frame.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:584:26: warning: main actor-isolated property 'url' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
582 |
583 | // set the tilemap url property
584 | self.tilemap.url = URL(fileURLWithPath: currentFilename)
| `- warning: main actor-isolated property 'url' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
585 |
586 | if let tiledVersion = tilemap.tiledversion {
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:182:16: note: mutation of this property is only permitted within the actor
180 |
181 | /// Tilemap source file path.
182 | public var url: URL!
| `- note: mutation of this property is only permitted within the actor
183 |
184 | /// Unique SpriteKit node id.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:586:43: warning: main actor-isolated property 'tiledversion' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
584 | self.tilemap.url = URL(fileURLWithPath: currentFilename)
585 |
586 | if let tiledVersion = tilemap.tiledversion {
| `- warning: main actor-isolated property 'tiledversion' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
587 | self.log("Tiled version: \(tiledVersion)", level: .debug)
588 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:188:30: note: property declared here
186 |
187 | /// Indicates the Tiled application version this map was created with.
188 | public internal(set) var tiledversion: String!
| `- note: property declared here
189 |
190 | /// Indicates the Tiled map version.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:591:30: warning: main actor-isolated property 'zDeltaForLayers' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
589 |
590 | if (self.mapDelegate != nil) {
591 | self.tilemap.zDeltaForLayers = self.mapDelegate!.zDeltaForLayers
| `- warning: main actor-isolated property 'zDeltaForLayers' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
592 | }
593 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:341:16: note: mutation of this property is only permitted within the actor
339 |
340 | /// Default z-position range between layers.
341 | public var zDeltaForLayers: CGFloat = 50
| `- note: mutation of this property is only permitted within the actor
342 |
343 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:599:26: warning: main actor-isolated property 'name' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
597 |
598 | // `SKTilemap.name` represents the tmx filename (minus .tmx extension)
599 | self.tilemap.name = currentBasename
| `- warning: main actor-isolated property 'name' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
600 | self.tilemap.displayName = currentBasename
601 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SKNode.h:149:49: note: mutation of this property is only permitted within the actor
147 | In general, this should be unique among peers in the scene graph.
148 | */
149 | @property (nonatomic, copy, nullable) NSString *name;
| `- note: mutation of this property is only permitted within the actor
150 |
151 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:600:26: warning: main actor-isolated property 'displayName' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
598 | // `SKTilemap.name` represents the tmx filename (minus .tmx extension)
599 | self.tilemap.name = currentBasename
600 | self.tilemap.displayName = currentBasename
| `- warning: main actor-isolated property 'displayName' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
601 |
602 | // run setup functions on tilemap
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:219:16: note: mutation of this property is only permitted within the actor
217 |
218 | /// Map display name. Defaults to the current map source file name (minus the tmx extension).
219 | public var displayName: String?
| `- note: mutation of this property is only permitted within the actor
220 |
221 | /// String representing the map name. Defaults to the current map source file name (minus the tmx extension).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:636:39: warning: call to main actor-isolated instance method 'addTileset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
634 | // if we're in tilemap parsing mode, add the tileset to the map
635 | if (parsingMode == .tmx) {
636 | self.tilemap?.addTileset(existingTileset)
| `- warning: call to main actor-isolated instance method 'addTileset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
637 |
638 | // set the first gid parameter
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:999:17: note: calls to instance method 'addTileset' from outside of its actor context are implicitly asynchronous
997 | - parameter tileset: `SKTileset` tileset object.
998 | */
999 | public func addTileset(_ tileset: SKTileset) {
| |- note: calls to instance method 'addTileset' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1000 | tilesets.insert(tileset)
1001 | tileset.tilemap = self
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:680:39: warning: call to main actor-isolated instance method 'addTileset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
678 |
679 | // add the tileset to the tilemap
680 | self.tilemap?.addTileset(tileset)
| `- warning: call to main actor-isolated instance method 'addTileset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
681 | lastElement = tileset
682 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:999:17: note: calls to instance method 'addTileset' from outside of its actor context are implicitly asynchronous
997 | - parameter tileset: `SKTileset` tileset object.
998 | */
999 | public func addTileset(_ tileset: SKTileset) {
| |- note: calls to instance method 'addTileset' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1000 | tilesets.insert(tileset)
1001 | tileset.tilemap = self
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:723:35: warning: call to main actor-isolated instance method 'addTileset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
721 |
722 | // add the tileset to the tilemap (if it exists)
723 | self.tilemap?.addTileset(tileset)
| `- warning: call to main actor-isolated instance method 'addTileset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
724 |
725 | lastElement = tileset
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:999:17: note: calls to instance method 'addTileset' from outside of its actor context are implicitly asynchronous
997 | - parameter tileset: `SKTileset` tileset object.
998 | */
999 | public func addTileset(_ tileset: SKTileset) {
| |- note: calls to instance method 'addTileset' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1000 | tilesets.insert(tileset)
1001 | tileset.tilemap = self
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:765:31: warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
763 | if (elementName == "layer") {
764 | guard let layerName = attributeDict["name"] else { parser.abortParsing(); return }
765 | guard let layer = SKTileLayer(tilemap: self.tilemap!, attributes: attributeDict)
| `- warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
766 | else {
767 | log("Error creating tile layer: \"\(layerName)\"", level: .fatal)
/Users/admin/builder/spi-builder-workspace/Sources/SKTileLayer.swift:162:12: note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
160 | - parameter attributes: `[String: String]` layer attributes.
161 | */
162 | public init?(tilemap: SKTilemap, attributes: [String: String]) {
| |- note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
163 | // name, width and height are required
164 | guard let layerName = attributes["name"] else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:774:23: warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
772 | let parentElement = elementPath.last!
773 | if let group = parentElement as? SKGroupLayer {
774 | group.addLayer(layer)
| `- warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
775 | layer.rawIndex = layerIndex
776 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKGroupLayer.swift:152:17: note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
150 | */
151 | @discardableResult
152 | public func addLayer(_ layer: SKTiledLayerObject, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
153 |
154 | // set the zPosition relative to the layer index ** adding multiplier - layers with difference of 1 seem to have z-fighting issues **.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:775:23: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
773 | if let group = parentElement as? SKGroupLayer {
774 | group.addLayer(layer)
775 | layer.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
776 | layerIndex += 1
777 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:780:25: warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
778 |
779 | if let tilemap = parentElement as? SKTilemap {
780 | tilemap.addLayer(layer)
| `- warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
781 | layer.rawIndex = layerIndex
782 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:1137:17: note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
1135 | */
1136 | @discardableResult
1137 | public func addLayer(_ layer: SKTiledLayerObject, group: SKGroupLayer? = nil, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1138 |
1139 | // if a group is indicated, add it to that instead
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:781:23: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
779 | if let tilemap = parentElement as? SKTilemap {
780 | tilemap.addLayer(layer)
781 | layer.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
782 | layerIndex += 1
783 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:804:42: warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
802 | } else {
803 |
804 | guard let objectsGroup = SKObjectGroup(tilemap: self.tilemap!, attributes: attributeDict)
| `- warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
805 | else {
806 | parser.abortParsing()
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:204:12: note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
202 | - parameter attributes: `[String: String]` layer attributes.
203 | */
204 | public init?(tilemap: SKTilemap, attributes: [String: String]) {
| |- note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
205 | guard let layerName = attributes["name"] else { return nil }
206 | super.init(layerName: layerName, tilemap: tilemap, attributes: attributes)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:813:27: warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
811 |
812 | if let group = parentElement as? SKGroupLayer {
813 | group.addLayer(objectsGroup)
| `- warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
814 | objectsGroup.rawIndex = layerIndex
815 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKGroupLayer.swift:152:17: note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
150 | */
151 | @discardableResult
152 | public func addLayer(_ layer: SKTiledLayerObject, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
153 |
154 | // set the zPosition relative to the layer index ** adding multiplier - layers with difference of 1 seem to have z-fighting issues **.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:814:34: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
812 | if let group = parentElement as? SKGroupLayer {
813 | group.addLayer(objectsGroup)
814 | objectsGroup.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
815 | layerIndex += 1
816 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:819:29: warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
817 |
818 | if let tilemap = parentElement as? SKTilemap {
819 | tilemap.addLayer(objectsGroup)
| `- warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
820 | objectsGroup.rawIndex = layerIndex
821 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:1137:17: note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
1135 | */
1136 | @discardableResult
1137 | public func addLayer(_ layer: SKTiledLayerObject, group: SKGroupLayer? = nil, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1138 |
1139 | // if a group is indicated, add it to that instead
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:820:34: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
818 | if let tilemap = parentElement as? SKTilemap {
819 | tilemap.addLayer(objectsGroup)
820 | objectsGroup.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
821 | layerIndex += 1
822 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:835:36: warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
833 | }
834 |
835 | guard let imageLayer = SKImageLayer(tilemap: self.tilemap!, attributes: attributeDict)
| `- warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
836 | else {
837 | parser.abortParsing()
/Users/admin/builder/spi-builder-workspace/Sources/SKImageLayer.swift:98:12: note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
96 | - parameter attributes: `[String: String]` layer attributes.
97 | */
98 | public init?(tilemap: SKTilemap, attributes: [String: String]) {
| |- note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
99 | guard let layerName = attributes["name"] else { return nil }
100 | super.init(layerName: layerName, tilemap: tilemap, attributes: attributes)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:843:23: warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
841 | let parentElement = elementPath.last!
842 | if let group = parentElement as? SKGroupLayer {
843 | group.addLayer(imageLayer)
| `- warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
844 | imageLayer.rawIndex = layerIndex
845 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKGroupLayer.swift:152:17: note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
150 | */
151 | @discardableResult
152 | public func addLayer(_ layer: SKTiledLayerObject, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
153 |
154 | // set the zPosition relative to the layer index ** adding multiplier - layers with difference of 1 seem to have z-fighting issues **.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:844:28: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
842 | if let group = parentElement as? SKGroupLayer {
843 | group.addLayer(imageLayer)
844 | imageLayer.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
845 | layerIndex += 1
846 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:849:25: warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
847 |
848 | if let tilemap = parentElement as? SKTilemap {
849 | tilemap.addLayer(imageLayer)
| `- warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
850 | imageLayer.rawIndex = layerIndex
851 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:1137:17: note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
1135 | */
1136 | @discardableResult
1137 | public func addLayer(_ layer: SKTiledLayerObject, group: SKGroupLayer? = nil, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1138 |
1139 | // if a group is indicated, add it to that instead
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:850:28: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
848 | if let tilemap = parentElement as? SKTilemap {
849 | tilemap.addLayer(imageLayer)
850 | imageLayer.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
851 | layerIndex += 1
852 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:865:36: warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
863 | }
864 |
865 | guard let groupLayer = SKGroupLayer(tilemap: self.tilemap!, attributes: attributeDict)
| `- warning: call to main actor-isolated initializer 'init(tilemap:attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
866 | else {
867 | log("error parsing group layer.", level: .fatal)
/Users/admin/builder/spi-builder-workspace/Sources/SKGroupLayer.swift:114:12: note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
112 | - parameter attributes: `[String: String]` layer attributes.
113 | */
114 | public init?(tilemap: SKTilemap, attributes: [String: String]) {
| |- note: calls to initializer 'init(tilemap:attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
115 | guard let layerName = attributes["name"] else { return nil }
116 | super.init(layerName: layerName, tilemap: tilemap, attributes: attributes)
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:874:23: warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
872 | let parentElement = elementPath.last!
873 | if let group = parentElement as? SKGroupLayer {
874 | group.addLayer(groupLayer)
| `- warning: call to main actor-isolated instance method 'addLayer(_:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
875 | groupLayer.rawIndex = layerIndex
876 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKGroupLayer.swift:152:17: note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
150 | */
151 | @discardableResult
152 | public func addLayer(_ layer: SKTiledLayerObject, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
153 |
154 | // set the zPosition relative to the layer index ** adding multiplier - layers with difference of 1 seem to have z-fighting issues **.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:875:28: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
873 | if let group = parentElement as? SKGroupLayer {
874 | group.addLayer(groupLayer)
875 | groupLayer.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
876 | layerIndex += 1
877 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:880:25: warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
878 |
879 | if let tilemap = parentElement as? SKTilemap {
880 | tilemap.addLayer(groupLayer)
| `- warning: call to main actor-isolated instance method 'addLayer(_:group:clamped:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
881 | groupLayer.rawIndex = layerIndex
882 | layerIndex += 1
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:1137:17: note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
1135 | */
1136 | @discardableResult
1137 | public func addLayer(_ layer: SKTiledLayerObject, group: SKGroupLayer? = nil, clamped: Bool = true) -> (success: Bool, layer: SKTiledLayerObject) {
| |- note: calls to instance method 'addLayer(_:group:clamped:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
1138 |
1139 | // if a group is indicated, add it to that instead
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:881:28: warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
879 | if let tilemap = parentElement as? SKTilemap {
880 | tilemap.addLayer(groupLayer)
881 | groupLayer.rawIndex = layerIndex
| `- warning: main actor-isolated property 'rawIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
882 | layerIndex += 1
883 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:129:16: note: mutation of this property is only permitted within the actor
127 |
128 | /// Position in the render tree.
129 | public var rawIndex: Int = 0
| `- note: mutation of this property is only permitted within the actor
130 |
131 | /// Flattened layer index (internal use only).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:915:28: warning: call to main actor-isolated instance method 'setLayerImage' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
913 | if let imageLayer = lastElement as? SKImageLayer {
914 | // set the image property
915 | imageLayer.setLayerImage(sourceImagePath)
| `- warning: call to main actor-isolated instance method 'setLayerImage' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
916 | }
917 |
/Users/admin/builder/spi-builder-workspace/Sources/SKImageLayer.swift:109:17: note: calls to instance method 'setLayerImage' from outside of its actor context are implicitly asynchronous
107 | - parameter named: `String` image name.
108 | */
109 | public func setLayerImage(_ named: String) {
| |- note: calls to instance method 'setLayerImage' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
110 | self.image = named
111 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1010:35: warning: call to main actor-isolated instance method 'setObjectAttributes(attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1008 |
1009 | // set the objects initial attributes
1010 | currentObject.setObjectAttributes(attributes: attributeDict)
| `- warning: call to main actor-isolated instance method 'setObjectAttributes(attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1011 | currentObject.visible = (currentObject.gid != nil)
1012 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:414:10: note: calls to instance method 'setObjectAttributes(attributes:)' from outside of its actor context are implicitly asynchronous
412 | - parameter attributes: `[String: String]` object attributes.
413 | */
414 | func setObjectAttributes(attributes: [String: String]) {
| |- note: calls to instance method 'setObjectAttributes(attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKShapeNode'
415 | if let objectName = attributes["name"] {
416 | self.name = objectName
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1011:35: warning: main actor-isolated property 'visible' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1009 | // set the objects initial attributes
1010 | currentObject.setObjectAttributes(attributes: attributeDict)
1011 | currentObject.visible = (currentObject.gid != nil)
| `- warning: main actor-isolated property 'visible' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1012 |
1013 | // set the last object
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1094:14: note: mutation of this property is only permitted within the actor
1092 |
1093 | /// Object visibility
1094 | open var visible: Bool {
| `- note: mutation of this property is only permitted within the actor
1095 | get {
1096 | return !self.isHidden
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1011:60: warning: main actor-isolated property 'gid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1009 | // set the objects initial attributes
1010 | currentObject.setObjectAttributes(attributes: attributeDict)
1011 | currentObject.visible = (currentObject.gid != nil)
| `- warning: main actor-isolated property 'gid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1012 |
1013 | // set the last object
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:215:18: note: property declared here
213 |
214 | /// Tiled global id (for tile objects).
215 | internal var gid: Int!
| `- note: property declared here
216 |
217 | /// Object type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1017:52: warning: main actor-isolated property 'gid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1015 |
1016 | // get local id with flipped flags
1017 | if let localID = currentObject.gid {
| `- warning: main actor-isolated property 'gid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1018 | guard let templateTileset = activeTemplateTileset else {
1019 | log("no active tileset for this template.", level: .error)
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:215:18: note: property declared here
213 |
214 | /// Tiled global id (for tile objects).
215 | internal var gid: Int!
| `- note: property declared here
216 |
217 | /// Object type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1027:39: warning: main actor-isolated property 'gid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1025 | let globalId = templateTileset.getGlobalID(forLocalID: Int(flipped.gid))
1026 |
1027 | currentObject.gid = globalId
| `- warning: main actor-isolated property 'gid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1028 | currentObject.tileData?.flipHoriz = flipped.hflip
1029 | currentObject.tileData?.flipVert = flipped.vflip
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:215:18: note: mutation of this property is only permitted within the actor
213 |
214 | /// Tiled global id (for tile objects).
215 | internal var gid: Int!
| `- note: mutation of this property is only permitted within the actor
216 |
217 | /// Object type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1028:39: warning: main actor-isolated property 'tileData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1026 |
1027 | currentObject.gid = globalId
1028 | currentObject.tileData?.flipHoriz = flipped.hflip
| `- warning: main actor-isolated property 'tileData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1029 | currentObject.tileData?.flipVert = flipped.vflip
1030 | currentObject.tileData?.flipDiag = flipped.dflip
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:258:14: note: mutation of this property is only permitted within the actor
256 |
257 | /// Tile data (for tile objects).
258 | open var tileData: SKTilesetData? {
| `- note: mutation of this property is only permitted within the actor
259 | return tile?.tileData
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1029:39: warning: main actor-isolated property 'tileData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1027 | currentObject.gid = globalId
1028 | currentObject.tileData?.flipHoriz = flipped.hflip
1029 | currentObject.tileData?.flipVert = flipped.vflip
| `- warning: main actor-isolated property 'tileData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1030 | currentObject.tileData?.flipDiag = flipped.dflip
1031 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:258:14: note: mutation of this property is only permitted within the actor
256 |
257 | /// Tile data (for tile objects).
258 | open var tileData: SKTilesetData? {
| `- note: mutation of this property is only permitted within the actor
259 | return tile?.tileData
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1030:39: warning: main actor-isolated property 'tileData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1028 | currentObject.tileData?.flipHoriz = flipped.hflip
1029 | currentObject.tileData?.flipVert = flipped.vflip
1030 | currentObject.tileData?.flipDiag = flipped.dflip
| `- warning: main actor-isolated property 'tileData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1031 | }
1032 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:258:14: note: mutation of this property is only permitted within the actor
256 |
257 | /// Tile data (for tile objects).
258 | open var tileData: SKTilesetData? {
| `- note: mutation of this property is only permitted within the actor
259 | return tile?.tileData
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1041:43: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1039 | if let objectGroup = lastElement as? SKObjectGroup {
1040 |
1041 | let Object = (tilemap.delegate != nil) ? tilemap.delegate!.objectForVectorType(named: attributeDict["type"]) : SKTileObject.self
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1042 |
1043 | guard let tileObject = Object.init(attributes: attributeDict) else {
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:451:21: note: property declared here
449 |
450 | /// Reference to `SKTilemapDelegate` delegate.
451 | weak public var delegate: SKTilemapDelegate?
| `- note: property declared here
452 |
453 | /// Map frame.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1041:70: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1039 | if let objectGroup = lastElement as? SKObjectGroup {
1040 |
1041 | let Object = (tilemap.delegate != nil) ? tilemap.delegate!.objectForVectorType(named: attributeDict["type"]) : SKTileObject.self
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1042 |
1043 | guard let tileObject = Object.init(attributes: attributeDict) else {
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:451:21: note: property declared here
449 |
450 | /// Reference to `SKTilemapDelegate` delegate.
451 | weak public var delegate: SKTilemapDelegate?
| `- note: property declared here
452 |
453 | /// Map frame.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1043:51: warning: call to main actor-isolated initializer 'init(attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1041 | let Object = (tilemap.delegate != nil) ? tilemap.delegate!.objectForVectorType(named: attributeDict["type"]) : SKTileObject.self
1042 |
1043 | guard let tileObject = Object.init(attributes: attributeDict) else {
| `- warning: call to main actor-isolated initializer 'init(attributes:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1044 | log("\(parsingMode) parser: Error creating object.", level: .fatal)
1045 | parser.abortParsing()
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:393:21: note: calls to initializer 'init(attributes:)' from outside of its actor context are implicitly asynchronous
391 | - parameter attributes: `[String: String]` object attributes.
392 | */
393 | required public init?(attributes: [String: String]) {
| |- note: calls to initializer 'init(attributes:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKShapeNode'
394 | // required attributes
395 | guard let objectID = attributes["id"],
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1050:37: warning: call to main actor-isolated instance method 'addObject(_:withColor:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1048 |
1049 | // add the object to the layer
1050 | _ = objectGroup.addObject(tileObject)
| `- warning: call to main actor-isolated instance method 'addObject(_:withColor:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1051 | currentID = tileObject.id
1052 |
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:230:17: note: calls to instance method 'addObject(_:withColor:)' from outside of its actor context are implicitly asynchronous
228 | - returns: `SKTileObject?` added object.
229 | */
230 | public func addObject(_ object: SKTileObject, withColor: SKColor? = nil) -> SKTileObject? {
| |- note: calls to instance method 'addObject(_:withColor:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
231 | if objects.contains(where: { $0.hashValue == object.hashValue }) {
232 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1051:44: warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1049 | // add the object to the layer
1050 | _ = objectGroup.addObject(tileObject)
1051 | currentID = tileObject.id
| `- warning: main actor-isolated property 'id' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1052 |
1053 | // template object
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:212:14: note: property declared here
210 |
211 | /// Tiled object id.
212 | open var id: Int = 0
| `- note: property declared here
213 |
214 | /// Tiled global id (for tile objects).
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1054:54: warning: main actor-isolated property 'template' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1052 |
1053 | // template object
1054 | if let templateFile = tileObject.template {
| `- warning: main actor-isolated property 'template' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1055 | let templateURL = URL(fileURLWithPath: templateFile, relativeTo: rootPath)
1056 | //if fileManager.fileExists(atPath: templateURL.path) { fileNames.append(templateURL.path) }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:251:18: note: property declared here
249 | /// Object tile (for tile objects)
250 | internal var tile: SKTile? // optional tile
251 | internal var template: String? // optional template reference
| `- note: property declared here
252 | internal var isInitialized: Bool = true
253 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1058:36: warning: main actor-isolated property 'isInitialized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1056 | //if fileManager.fileExists(atPath: templateURL.path) { fileNames.append(templateURL.path) }
1057 | fileNames.append(templateURL.path)
1058 | tileObject.isInitialized = false
| `- warning: main actor-isolated property 'isInitialized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1059 | templateObjects.insert(tileObject, at: 0)
1060 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:252:18: note: mutation of this property is only permitted within the actor
250 | internal var tile: SKTile? // optional tile
251 | internal var template: String? // optional template reference
252 | internal var isInitialized: Bool = true
| `- note: mutation of this property is only permitted within the actor
253 |
254 | /// Proxy object.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1070:57: warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1068 | if let objectsgroup = lastElement as? SKObjectGroup {
1069 | if (currentID != nil) {
1070 | if let currentObject = objectsgroup.getObject(withID: currentID!) {
| `- warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1071 | currentObject.shapeType = .ellipse
1072 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:333:17: note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
331 | - returns: `SKTileObject?`
332 | */
333 | public func getObject(withID id: Int) -> SKTileObject? {
| |- note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
334 | if let index = objects.firstIndex(where: { $0.id == id }) {
335 | return objects[index]
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1071:39: warning: main actor-isolated property 'shapeType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1069 | if (currentID != nil) {
1070 | if let currentObject = objectsgroup.getObject(withID: currentID!) {
1071 | currentObject.shapeType = .ellipse
| `- warning: main actor-isolated property 'shapeType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1072 | }
1073 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:227:18: note: mutation of this property is only permitted within the actor
225 |
226 | internal var objectType: TiledObjectType = TiledObjectType.none // object type
227 | internal var shapeType: TiledObjectShape = TiledObjectShape.rectangle // shape type
| `- note: mutation of this property is only permitted within the actor
228 | internal var points: [CGPoint] = [] // points that describe the object's shape
229 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1095:61: warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1093 | if let objectsgroup = lastElement as? SKObjectGroup {
1094 | if (currentID != nil) {
1095 | if let currentObject = objectsgroup.getObject(withID: currentID!) {
| `- warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1096 | currentObject.addPoints(coordinates)
1097 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:333:17: note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
331 | - returns: `SKTileObject?`
332 | */
333 | public func getObject(withID id: Int) -> SKTileObject? {
| |- note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
334 | if let index = objects.firstIndex(where: { $0.id == id }) {
335 | return objects[index]
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1096:43: warning: call to main actor-isolated instance method 'addPoints(_:closed:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1094 | if (currentID != nil) {
1095 | if let currentObject = objectsgroup.getObject(withID: currentID!) {
1096 | currentObject.addPoints(coordinates)
| `- warning: call to main actor-isolated instance method 'addPoints(_:closed:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1097 | }
1098 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:768:19: note: calls to instance method 'addPoints(_:closed:)' from outside of its actor context are implicitly asynchronous
766 | - parameter closed: `Bool` close the object path.
767 | */
768 | internal func addPoints(_ coordinates: [[CGFloat]], closed: Bool = true) {
| |- note: calls to instance method 'addPoints(_:closed:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKShapeNode'
769 | self.shapeType = (closed == true) ? TiledObjectShape.polygon : TiledObjectShape.polyline
770 | // create an array of points from the given coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1117:60: warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1115 | if let objectGroup = lastElement as? SKObjectGroup {
1116 | if (currentID != nil) {
1117 | if let currentObject = objectGroup.getObject(withID: currentID!) {
| `- warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1118 | currentObject.addPoints(coordinates, closed: false)
1119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:333:17: note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
331 | - returns: `SKTileObject?`
332 | */
333 | public func getObject(withID id: Int) -> SKTileObject? {
| |- note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
334 | if let index = objects.firstIndex(where: { $0.id == id }) {
335 | return objects[index]
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1118:43: warning: call to main actor-isolated instance method 'addPoints(_:closed:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1116 | if (currentID != nil) {
1117 | if let currentObject = objectGroup.getObject(withID: currentID!) {
1118 | currentObject.addPoints(coordinates, closed: false)
| `- warning: call to main actor-isolated instance method 'addPoints(_:closed:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1119 | }
1120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:768:19: note: calls to instance method 'addPoints(_:closed:)' from outside of its actor context are implicitly asynchronous
766 | - parameter closed: `Bool` close the object path.
767 | */
768 | internal func addPoints(_ coordinates: [[CGFloat]], closed: Bool = true) {
| |- note: calls to instance method 'addPoints(_:closed:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKShapeNode'
769 | self.shapeType = (closed == true) ? TiledObjectShape.polygon : TiledObjectShape.polyline
770 | // create an array of points from the given coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1160:56: warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1158 | if let objectGroup = lastElement as? SKObjectGroup {
1159 | if (currentID != nil) {
1160 | if let currentObject = objectGroup.getObject(withID: currentID!) {
| `- warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1161 | // basic text attributes
1162 | let fontName: String = (attributeDict["fontfamily"] != nil) ? attributeDict["fontfamily"]! : "system"
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:333:17: note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
331 | - returns: `SKTileObject?`
332 | */
333 | public func getObject(withID id: Int) -> SKTileObject? {
| |- note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
334 | if let index = objects.firstIndex(where: { $0.id == id }) {
335 | return objects[index]
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1167:39: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1165 |
1166 | // create text attributes
1167 | currentObject.textAttributes = TextObjectAttributes(font: fontName, size: fontSize, color: fontColor)
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1168 | currentObject.visible = true
1169 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1168:39: warning: main actor-isolated property 'visible' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1166 | // create text attributes
1167 | currentObject.textAttributes = TextObjectAttributes(font: fontName, size: fontSize, color: fontColor)
1168 | currentObject.visible = true
| `- warning: main actor-isolated property 'visible' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1169 |
1170 | if let bold = attributeDict["bold"] {
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:1094:14: note: mutation of this property is only permitted within the actor
1092 |
1093 | /// Object visibility
1094 | open var visible: Bool {
| `- note: mutation of this property is only permitted within the actor
1095 | get {
1096 | return !self.isHidden
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1171:43: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1169 |
1170 | if let bold = attributeDict["bold"] {
1171 | currentObject.textAttributes.isBold = (bold == "1")
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1172 | }
1173 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1175:43: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1173 |
1174 | if let italic = attributeDict["italic"] {
1175 | currentObject.textAttributes.isItalic = (italic == "1")
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1176 | }
1177 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1179:43: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1177 |
1178 | if let underline = attributeDict["underline"] {
1179 | currentObject.textAttributes.isUnderline = (underline == "1")
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1180 | }
1181 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1183:43: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1181 |
1182 | if let strikeout = attributeDict["strikeout"] {
1183 | currentObject.textAttributes.isStrikeout = (strikeout == "1")
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1184 | }
1185 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1187:43: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1185 |
1186 | if let textWrap = attributeDict["wrap"] {
1187 | currentObject.textAttributes.wrap = (textWrap == "1")
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1188 | }
1189 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1193:47: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1191 | if let halign = attributeDict["halign"] {
1192 | if let halignment = TextObjectAttributes.TextAlignment.HoriztonalAlignment(rawValue: halign) {
1193 | currentObject.textAttributes.alignment.horizontal = halignment
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1194 | }
1195 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1199:47: warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
542 |
543 | // MARK: - XMLParserDelegate
544 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)' part of global actor 'MainActor'
545 | didStartElement elementName: String,
546 | namespaceURI: String?,
:
1197 | if let valign = attributeDict["valign"] {
1198 | if let valignment = TextObjectAttributes.TextAlignment.VerticalAlignment(rawValue: valign) {
1199 | currentObject.textAttributes.alignment.vertical = valignment
| `- warning: main actor-isolated property 'textAttributes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1200 | }
1201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:298:14: note: mutation of this property is only permitted within the actor
296 |
297 | /// Text formatting attributes (for text objects).
298 | open var textAttributes: TextObjectAttributes!
| `- note: mutation of this property is only permitted within the actor
299 |
300 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1238:29: warning: main actor-isolated property 'properties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1236 | if let tilemap = lastElement as? SKTilemap {
1237 | for (key, value) in properties {
1238 | tilemap.properties[key] = value
| `- warning: main actor-isolated property 'properties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1239 | }
1240 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:197:16: note: mutation of this property is only permitted within the actor
195 |
196 | /// Custom **Tiled** properties.
197 | public var properties: [String: String] = [:]
| `- note: mutation of this property is only permitted within the actor
198 |
199 | /// If enabled, custom **Tiled** properties are ignored.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1241:25: warning: call to main actor-isolated instance method 'parseProperties(completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1239 | }
1240 |
1241 | tilemap.parseProperties(completion: nil)
| `- warning: call to main actor-isolated instance method 'parseProperties(completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1242 | }
1243 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Properties.swift:39:17: note: calls to instance method 'parseProperties(completion:)' from outside of its actor context are implicitly asynchronous
37 | - parameter completion: `Void?` optional completion closure.
38 | */
39 | public func parseProperties(completion: (() -> Void)?) {
| |- note: calls to instance method 'parseProperties(completion:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
40 |
41 | if (ignoreProperties == true) { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1248:31: warning: main actor-isolated property 'properties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1246 | if (currentID == nil) {
1247 | for (key, value) in properties {
1248 | layer.properties[key] = value
| `- warning: main actor-isolated property 'properties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1249 | }
1250 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:137:16: note: mutation of this property is only permitted within the actor
135 |
136 | /// Custom layer properties.
137 | public var properties: [String: String] = [:]
| `- note: mutation of this property is only permitted within the actor
138 |
139 | /// Ignore custom properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1252:23: warning: call to main actor-isolated instance method 'parseProperties(completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1250 | }
1251 |
1252 | layer.parseProperties(completion: nil)
| `- warning: call to main actor-isolated instance method 'parseProperties(completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1253 | }
1254 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Properties.swift:217:17: note: calls to instance method 'parseProperties(completion:)' from outside of its actor context are implicitly asynchronous
215 |
216 | /// Parse the layer's properties value.
217 | public func parseProperties(completion: (() -> Void)?) {
| |- note: calls to instance method 'parseProperties(completion:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKEffectNode'
218 |
219 | if (ignoreProperties == true) { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1314:32: warning: main actor-isolated property 'uuid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1312 | // write data to buffer
1313 | if (foundData == true) {
1314 | data[tileLayer.uuid] = tileData
| `- warning: main actor-isolated property 'uuid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1315 |
1316 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledLayerObject.swift:117:16: note: property declared here
115 |
116 | /// Unique layer id.
117 | public var uuid: String = UUID().uuidString
| `- note: property declared here
118 |
119 | /// Layer type.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1365:54: warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1363 | if let objectsgroup = lastElement as? SKObjectGroup {
1364 | if (currentID != nil) {
1365 | if let lastObject = objectsgroup.getObject(withID: currentID!) {
| `- warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1366 | for (key, value) in properties {
1367 | lastObject.properties[key] = value
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:333:17: note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
331 | - returns: `SKTileObject?`
332 | */
333 | public func getObject(withID id: Int) -> SKTileObject? {
| |- note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
334 | if let index = objects.firstIndex(where: { $0.id == id }) {
335 | return objects[index]
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1367:40: warning: main actor-isolated property 'properties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1365 | if let lastObject = objectsgroup.getObject(withID: currentID!) {
1366 | for (key, value) in properties {
1367 | lastObject.properties[key] = value
| `- warning: main actor-isolated property 'properties' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1368 | }
1369 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:286:14: note: mutation of this property is only permitted within the actor
284 |
285 | /// Custom object properties.
286 | open var properties: [String: String] = [:]
| `- note: mutation of this property is only permitted within the actor
287 |
288 | /// Ignore custom properties.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1370:36: warning: call to main actor-isolated instance method 'parseProperties(completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1368 | }
1369 |
1370 | lastObject.parseProperties(completion: nil)
| `- warning: call to main actor-isolated instance method 'parseProperties(completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1371 | properties = [:]
1372 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTiled+Properties.swift:330:17: note: calls to instance method 'parseProperties(completion:)' from outside of its actor context are implicitly asynchronous
328 |
329 | /// Parse the object's properties value.
330 | public func parseProperties(completion: (() -> Void)?) {
| |- note: calls to instance method 'parseProperties(completion:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKShapeNode'
331 | if (ignoreProperties == true) { return }
332 | if (self.type == nil) { self.type = properties.removeValue(forKey: "type") }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1429:56: warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1427 | if let objectGroup = lastElement as? SKObjectGroup {
1428 | if (currentID != nil) {
1429 | if let currentObject = objectGroup.getObject(withID: currentID!) {
| `- warning: call to main actor-isolated instance method 'getObject(withID:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
1430 | // set the object's text attribute
1431 | currentObject.text = characterData.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/SKObjectGroup.swift:333:17: note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
331 | - returns: `SKTileObject?`
332 | */
333 | public func getObject(withID id: Int) -> SKTileObject? {
| |- note: calls to instance method 'getObject(withID:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'SKTiledLayerObject'
334 | if let index = objects.firstIndex(where: { $0.id == id }) {
335 | return objects[index]
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1431:39: warning: main actor-isolated property 'text' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1429 | if let currentObject = objectGroup.getObject(withID: currentID!) {
1430 | // set the object's text attribute
1431 | currentObject.text = characterData.trimmingCharacters(in: .whitespacesAndNewlines)
| `- warning: main actor-isolated property 'text' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1432 | }
1433 | }
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:321:14: note: mutation of this property is only permitted within the actor
319 |
320 | /// Text string (for text objects). Setting this attribute will redraw the object automatically.
321 | open var text: String! {
| `- note: mutation of this property is only permitted within the actor
322 | didSet {
323 | guard text != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:1463:31: warning: main actor-isolated property 'isInitialized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1225 |
1226 | // Runs when parser ends a key: </key>
1227 | internal func parser(_ parser: XMLParser,
| `- note: add '@MainActor' to make instance method 'parser(_:didEndElement:namespaceURI:qualifiedName:)' part of global actor 'MainActor'
1228 | didEndElement elementName: String,
1229 | namespaceURI: String?,
:
1461 |
1462 | if let currentObject = lastElement as? SKTileObject {
1463 | currentObject.isInitialized = true
| `- warning: main actor-isolated property 'isInitialized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1464 | }
1465 |
/Users/admin/builder/spi-builder-workspace/Sources/SKTileObject.swift:252:18: note: mutation of this property is only permitted within the actor
250 | internal var tile: SKTile? // optional tile
251 | internal var template: String? // optional template reference
252 | internal var isInitialized: Bool = true
| `- note: mutation of this property is only permitted within the actor
253 |
254 | /// Proxy object.
/Users/admin/builder/spi-builder-workspace/Sources/SKTiledSceneCamera.swift:262:9: warning: cannot access property 'delegates' with a non-sendable type '[any SKTiledSceneCameraDelegate]' from nonisolated deinit; this is an error in the Swift 6 language mode
260 | deinit {
261 | // remove delegates
262 | delegates.removeAll()
| `- warning: cannot access property 'delegates' with a non-sendable type '[any SKTiledSceneCameraDelegate]' from nonisolated deinit; this is an error in the Swift 6 language mode
263 | }
264 |
/Users/admin/builder/spi-builder-workspace/Sources/TiledSceneCameraDelegate.swift:64:23: note: protocol 'SKTiledSceneCameraDelegate' does not conform to the 'Sendable' protocol
62 |
63 | */
64 | @objc public protocol SKTiledSceneCameraDelegate: AnyObject {
| `- note: protocol 'SKTiledSceneCameraDelegate' does not conform to the 'Sendable' protocol
65 |
66 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemap.swift:988:26: warning: cannot access property 'dataStorage' with a non-sendable type 'TileDataStorage?' from nonisolated deinit; this is an error in the Swift 6 language mode
986 |
987 | deinit {
988 | self.dataStorage = nil
| `- warning: cannot access property 'dataStorage' with a non-sendable type 'TileDataStorage?' from nonisolated deinit; this is an error in the Swift 6 language mode
989 | NotificationCenter.default.removeObserver(self, name: Notification.Name.Layer.ObjectAdded, object: nil)
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/TileDataStorage.swift:50:16: note: class 'TileDataStorage' does not conform to the 'Sendable' protocol
48 | /// Data structure for storing and recalling tile data efficiently.
49 |
50 | internal class TileDataStorage: Loggable {
| `- note: class 'TileDataStorage' does not conform to the 'Sendable' protocol
51 | weak var tilemap: SKTilemap?
52 | // queues
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:680:39: warning: sending 'tileset' risks causing data races; this is an error in the Swift 6 language mode
678 |
679 | // add the tileset to the tilemap
680 | self.tilemap?.addTileset(tileset)
| |- warning: sending 'tileset' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'tileset' to main actor-isolated instance method 'addTileset' risks causing data races between main actor-isolated and local nonisolated uses
681 | lastElement = tileset
| `- note: access can happen concurrently
682 |
683 | // set this to nil, just in case we're looking for a collections tileset.
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:636:39: warning: sending 'existingTileset' risks causing data races; this is an error in the Swift 6 language mode
634 | // if we're in tilemap parsing mode, add the tileset to the map
635 | if (parsingMode == .tmx) {
636 | self.tilemap?.addTileset(existingTileset)
| |- warning: sending 'existingTileset' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'existingTileset' to main actor-isolated instance method 'addTileset' risks causing data races between main actor-isolated and local nonisolated uses
637 |
638 | // set the first gid parameter
639 | existingTileset.firstGID = firstGID
| `- note: access can happen concurrently
640 |
641 | lastElement = existingTileset
/Users/admin/builder/spi-builder-workspace/Sources/SKTilemapParser.swift:723:35: warning: sending 'tileset' risks causing data races; this is an error in the Swift 6 language mode
721 |
722 | // add the tileset to the tilemap (if it exists)
723 | self.tilemap?.addTileset(tileset)
| |- warning: sending 'tileset' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'tileset' to main actor-isolated instance method 'addTileset' risks causing data races between main actor-isolated and local nonisolated uses
724 |
725 | lastElement = tileset
| `- note: access can happen concurrently
726 |
727 | // set this to nil, just in case we're looking for a collections tileset.
Build complete! (10.18s)
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.