diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index ae73bc9..58c6662 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -1,7 +1,7 @@ name: ios env: - XCODE_VERSION: 'Xcode_16.0' + XCODE_VERSION: 'Xcode_16.3' on: pull_request: diff --git a/ios/MCGpsLayer.swift b/ios/MCGpsLayer.swift index a2c248e..25c26ca 100644 --- a/ios/MCGpsLayer.swift +++ b/ios/MCGpsLayer.swift @@ -85,7 +85,7 @@ public extension MCGpsStyleInfoInterface { } } -private class MCGpsCallbackHandler: MCGpsLayerCallbackInterface { +private class MCGpsCallbackHandler: MCGpsLayerCallbackInterface, @unchecked Sendable { var modeDidChangeCallback: ((_ mode: MCGpsMode) -> Void)? var onPointClickCallback: ((_ coordinate: MCCoord) -> Void)? diff --git a/ios/UBLocationManager+MCGpsLayer.swift b/ios/UBLocationManager+MCGpsLayer.swift index 5827051..169384e 100644 --- a/ios/UBLocationManager+MCGpsLayer.swift +++ b/ios/UBLocationManager+MCGpsLayer.swift @@ -2,7 +2,7 @@ import CoreLocation import UBLocation import UIKit -private var binders: [LocationManagerLayerBinder] = [] +nonisolated(unsafe) private var binders: [LocationManagerLayerBinder] = [] private let bindersQueue = DispatchQueue(label: "ch.layergps.ublocationbindersQueue") public extension UBLocationManager { @@ -22,7 +22,7 @@ public extension UBLocationManager { } } -public class LocationManagerLayerBinder: NSObject { +public class LocationManagerLayerBinder: NSObject, @unchecked Sendable { weak var layer: MCGpsLayer? public init(layer: MCGpsLayer) { self.layer = layer