From 4424666cdbcfed15df4645bf92de166ed0d5654c Mon Sep 17 00:00:00 2001 From: Stefan Mitterrutzner Date: Wed, 21 May 2025 07:47:30 +0200 Subject: [PATCH 1/2] use Xcode 16.3 --- .github/workflows/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From dbf02c2d933608bfefb5b65c7d11f004f74bde21 Mon Sep 17 00:00:00 2001 From: Stefan Mitterrutzner Date: Wed, 21 May 2025 08:21:47 +0200 Subject: [PATCH 2/2] fixes build --- ios/MCGpsLayer.swift | 2 +- ios/UBLocationManager+MCGpsLayer.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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