Build Information
Failed to build IzziLocationKit, reference main (ecf5d3
), with Swift 6.0 for macOS (SPM) on 6 Jun 2025 07:39:45 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Desp0o/IzziLocationKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Desp0o/IzziLocationKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ecf5d39 Create LICENSE
Cloned https://github.com/Desp0o/IzziLocationKit.git
Revision (git rev-parse @):
ecf5d39fd75373173489eecec81fd8844de88e28
SUCCESS checkout https://github.com/Desp0o/IzziLocationKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Desp0o/IzziLocationKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling IzziLocationKit IzziLocationError.swift
[4/8] Compiling IzziLocationKit FullLocationInfoModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/Models/FullLocationInfoModel.swift:38:21: error: 'CLFloor' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public struct LocationInfoModel {
| `- note: add @available attribute to enclosing struct
30 | public let latitude: Double?
31 | public let longitude: Double?
:
36 | public let course: Double?
37 | public let ellipsoidalAltitude: Double?
38 | public let floor: CLFloor?
| `- error: 'CLFloor' is only available in macOS 10.15 or newer
39 | public let speedAccuracy: Double?
40 | }
[5/8] Compiling IzziLocationKit RouteModel.swift
[6/8] Compiling IzziLocationKit IzziLocationMode.swift
[7/8] Emitting module IzziLocationKit
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:10:2: error: 'Observable()' is only available in macOS 14.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:15:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
13 |
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:10:2: error: 'Observable()' is only available in macOS 14.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| | `- note: add @available attribute to enclosing class
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:16:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:17:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:18:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:19:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | public var errorMessage: String = ""
21 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:20:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 |
22 | //MARK: - computed
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:27:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
25 | }
26 |
27 | public var desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest {
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 | didSet {
29 | manager.desiredAccuracy = desiredAccuracy
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:33:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
31 | }
32 |
33 | public var distanceFilter: CLLocationDistance = 10 {
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
34 | didSet {
35 | manager.distanceFilter = distanceFilter
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:39:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
37 | }
38 |
39 | public var activityType: CLActivityType = .other {
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
40 | didSet {
41 | manager.activityType = activityType
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:222:1: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
220 | return (locationA, locationB)
221 | }
222 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<Member>(
+-------------------------------------------------------------------
223 |
224 | @available(iOS 17, *)
macro expansion @ObservationTracked:2:7: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:15:48: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
13 |
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
+--- macro expansion @ObservationTracked ---------------------------
|1 | //MARK: - public properties
|2 | @ObservationIgnored private var _currentLocation: CLLocation? = nil
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:16:63: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _currentCoordinates: CLLocationCoordinate2D? = nil
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:17:74: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _locationAccessStatus: CLAuthorizationStatus = .notDetermined
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:18:55: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _locationMode: IzziLocationMode = .oneTime
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:19:35: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _isError: Bool = false
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | public var errorMessage: String = ""
21 |
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:20:39: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _errorMessage: String = ""
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 |
22 | //MARK: - computed
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:31:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
29 | manager.desiredAccuracy = desiredAccuracy
30 | }
31 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest {
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | didSet {
|3 | manager.desiredAccuracy = desiredAccuracy
+-------------------------------------------------------------------
32 |
33 | public var distanceFilter: CLLocationDistance = 10 {
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:37:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
35 | manager.distanceFilter = distanceFilter
36 | }
37 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _distanceFilter: CLLocationDistance = 10 {
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | didSet {
|3 | manager.distanceFilter = distanceFilter
+-------------------------------------------------------------------
38 |
39 | public var activityType: CLActivityType = .other {
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:43:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
41 | manager.activityType = activityType
42 | }
43 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _activityType: CLActivityType = .other {
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | didSet {
|3 | manager.activityType = activityType
+-------------------------------------------------------------------
44 |
45 | //MARK: - Initialization
macro expansion @ObservationTracked:3:15: error: 'activityType' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:43:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
41 | manager.activityType = activityType
42 | }
43 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _activityType: CLActivityType = .other {
|2 | didSet {
|3 | manager.activityType = activityType
| | |- error: 'activityType' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
|4 | }
|5 | }
+-------------------------------------------------------------------
44 |
45 | //MARK: - Initialization
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:222:1: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
220 | return (locationA, locationB)
221 | }
222 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<Member>(
+-------------------------------------------------------------------
223 |
224 | @available(iOS 17, *)
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:10:2: error: 'Observable()' is only available in macOS 14.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| | `- note: add @available attribute to enclosing class
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/Models/FullLocationInfoModel.swift:38:21: error: 'CLFloor' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public struct LocationInfoModel {
| `- note: add @available attribute to enclosing struct
30 | public let latitude: Double?
31 | public let longitude: Double?
:
36 | public let course: Double?
37 | public let ellipsoidalAltitude: Double?
38 | public let floor: CLFloor?
| `- error: 'CLFloor' is only available in macOS 10.15 or newer
39 | public let speedAccuracy: Double?
40 | }
[8/8] Compiling IzziLocationKit IzziLocationKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:10:2: error: 'Observable()' is only available in macOS 14.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:15:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
13 |
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:10:2: error: 'Observable()' is only available in macOS 14.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| | `- note: add @available attribute to enclosing class
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:16:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:17:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:18:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:19:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | public var errorMessage: String = ""
21 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:20:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 |
22 | //MARK: - computed
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:27:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
25 | }
26 |
27 | public var desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest {
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 | didSet {
29 | manager.desiredAccuracy = desiredAccuracy
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:33:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
31 | }
32 |
33 | public var distanceFilter: CLLocationDistance = 10 {
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
34 | didSet {
35 | manager.distanceFilter = distanceFilter
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:39:3: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
37 | }
38 |
39 | public var activityType: CLActivityType = .other {
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
40 | didSet {
41 | manager.activityType = activityType
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:222:1: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
220 | return (locationA, locationB)
221 | }
222 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<Member>(
+-------------------------------------------------------------------
223 |
224 | @available(iOS 17, *)
macro expansion @ObservationTracked:2:7: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:15:48: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
13 |
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
+--- macro expansion @ObservationTracked ---------------------------
|1 | //MARK: - public properties
|2 | @ObservationIgnored private var _currentLocation: CLLocation? = nil
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:16:63: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
14 | //MARK: - public properties
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _currentCoordinates: CLLocationCoordinate2D? = nil
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:17:74: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
15 | public var currentLocation: CLLocation? = nil
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _locationAccessStatus: CLAuthorizationStatus = .notDetermined
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:18:55: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
16 | public var currentCoordinates: CLLocationCoordinate2D? = nil
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _locationMode: IzziLocationMode = .oneTime
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:19:35: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
17 | public var locationAccessStatus: CLAuthorizationStatus = .notDetermined
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _isError: Bool = false
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | public var errorMessage: String = ""
21 |
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:20:39: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
18 | public var locationMode: IzziLocationMode = .oneTime
19 | public var isError: Bool = false
20 | public var errorMessage: String = ""
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _errorMessage: String = ""
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 |
22 | //MARK: - computed
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:31:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
29 | manager.desiredAccuracy = desiredAccuracy
30 | }
31 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest {
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | didSet {
|3 | manager.desiredAccuracy = desiredAccuracy
+-------------------------------------------------------------------
32 |
33 | public var distanceFilter: CLLocationDistance = 10 {
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:37:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
35 | manager.distanceFilter = distanceFilter
36 | }
37 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _distanceFilter: CLLocationDistance = 10 {
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | didSet {
|3 | manager.distanceFilter = distanceFilter
+-------------------------------------------------------------------
38 |
39 | public var activityType: CLActivityType = .other {
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:43:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
41 | manager.activityType = activityType
42 | }
43 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _activityType: CLActivityType = .other {
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | didSet {
|3 | manager.activityType = activityType
+-------------------------------------------------------------------
44 |
45 | //MARK: - Initialization
macro expansion @ObservationTracked:3:15: error: 'activityType' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:43:4: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
41 | manager.activityType = activityType
42 | }
43 | }
+--- macro expansion @ObservationTracked ---------------------------
|1 | @ObservationIgnored private var _activityType: CLActivityType = .other {
|2 | didSet {
|3 | manager.activityType = activityType
| | |- error: 'activityType' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
|4 | }
|5 | }
+-------------------------------------------------------------------
44 |
45 | //MARK: - Initialization
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:222:1: note: expanded code originates here
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
220 | return (locationA, locationB)
221 | }
222 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<Member>(
+-------------------------------------------------------------------
223 |
224 | @available(iOS 17, *)
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:10:2: error: 'Observable()' is only available in macOS 14.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| | `- note: add @available attribute to enclosing class
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:51:13: error: 'activityType' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
44 |
45 | //MARK: - Initialization
46 | public override init() {
| `- note: add @available attribute to enclosing initializer
47 | super.init()
48 | manager.delegate = self
49 | manager.desiredAccuracy = desiredAccuracy
50 | manager.distanceFilter = distanceFilter
51 | manager.activityType = activityType
| |- error: 'activityType' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 |
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:61:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
58 |
59 | //MARK: - Methods
60 | public func getLocation() {
| `- note: add @available attribute to enclosing instance method
61 | switch manager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
62 | case .notDetermined:
63 | manager.requestWhenInUseAuthorization()
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:63:15: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
58 |
59 | //MARK: - Methods
60 | public func getLocation() {
| `- note: add @available attribute to enclosing instance method
61 | switch manager.authorizationStatus {
62 | case .notDetermined:
63 | manager.requestWhenInUseAuthorization()
| |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | case .authorizedAlways, .authorizedWhenInUse:
65 | switch locationMode {
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:67:17: error: 'requestLocation()' is only available in macOS 10.14 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
58 |
59 | //MARK: - Methods
60 | public func getLocation() {
| `- note: add @available attribute to enclosing instance method
61 | switch manager.authorizationStatus {
62 | case .notDetermined:
:
65 | switch locationMode {
66 | case .oneTime:
67 | manager.requestLocation()
| |- error: 'requestLocation()' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
68 | case .continuous:
69 | manager.startUpdatingLocation()
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:73:7: error: 'Task' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
58 |
59 | //MARK: - Methods
60 | public func getLocation() {
| `- note: add @available attribute to enclosing instance method
61 | switch manager.authorizationStatus {
62 | case .notDetermined:
:
71 | case .denied, .restricted:
72 | manager.stopUpdatingLocation()
73 | Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | errorMessage = "Location access has been denied. Please enable it in Settings."
75 | isError = true
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:73:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
58 |
59 | //MARK: - Methods
60 | public func getLocation() {
| `- note: add @available attribute to enclosing instance method
61 | switch manager.authorizationStatus {
62 | case .notDetermined:
:
71 | case .denied, .restricted:
72 | manager.stopUpdatingLocation()
73 | Task { @MainActor in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | errorMessage = "Location access has been denied. Please enable it in Settings."
75 | isError = true
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:115:52: error: 'ellipsoidalAltitude' is only available in macOS 12 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
80 | }
81 |
82 | public func getFullLocationInfo(with location: CLLocation) async throws -> FullLocationInfoModel {
| `- note: add @available attribute to enclosing instance method
83 | let geoDecoder = CLGeocoder()
84 |
:
113 | verticalAccuracy: placemark.location?.verticalAccuracy,
114 | course: placemark.location?.course,
115 | ellipsoidalAltitude: placemark.location?.ellipsoidalAltitude,
| |- error: 'ellipsoidalAltitude' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
116 | floor: placemark.location?.floor,
117 | speedAccuracy: placemark.location?.speedAccuracy
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:116:38: error: 'floor' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
80 | }
81 |
82 | public func getFullLocationInfo(with location: CLLocation) async throws -> FullLocationInfoModel {
| `- note: add @available attribute to enclosing instance method
83 | let geoDecoder = CLGeocoder()
84 |
:
114 | course: placemark.location?.course,
115 | ellipsoidalAltitude: placemark.location?.ellipsoidalAltitude,
116 | floor: placemark.location?.floor,
| |- error: 'floor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | speedAccuracy: placemark.location?.speedAccuracy
118 | )
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:117:46: error: 'speedAccuracy' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
80 | }
81 |
82 | public func getFullLocationInfo(with location: CLLocation) async throws -> FullLocationInfoModel {
| `- note: add @available attribute to enclosing instance method
83 | let geoDecoder = CLGeocoder()
84 |
:
115 | ellipsoidalAltitude: placemark.location?.ellipsoidalAltitude,
116 | floor: placemark.location?.floor,
117 | speedAccuracy: placemark.location?.speedAccuracy
| |- error: 'speedAccuracy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | )
119 | )
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:203:26: error: 'hasHighways' is only available in macOS 13.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
181 | }
182 |
183 | private func calculateRouteWithMapKit(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D, with: MKDirectionsTransportType) async throws -> RouteModel {
| `- note: add @available attribute to enclosing instance method
184 | let sourcePlacemark = MKPlacemark(coordinate: from)
185 | let destinationPlacemark = MKPlacemark(coordinate: to)
:
201 | distanceInMeters: route.distance,
202 | expectedTravelTime: route.expectedTravelTime,
203 | hasHighways: route.hasHighways,
| |- error: 'hasHighways' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
204 | hasTolls: route.hasTolls,
205 | routeName: route.name,
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:204:23: error: 'hasTolls' is only available in macOS 13.0 or newer
8 |
9 | @available(iOS 17, *)
10 | @Observable public class IzziLocationKit: NSObject {
| `- note: add @available attribute to enclosing class
11 | //MARK: - private properties
12 | private let manager = CLLocationManager()
:
181 | }
182 |
183 | private func calculateRouteWithMapKit(from: CLLocationCoordinate2D, to: CLLocationCoordinate2D, with: MKDirectionsTransportType) async throws -> RouteModel {
| `- note: add @available attribute to enclosing instance method
184 | let sourcePlacemark = MKPlacemark(coordinate: from)
185 | let destinationPlacemark = MKPlacemark(coordinate: to)
:
202 | expectedTravelTime: route.expectedTravelTime,
203 | hasHighways: route.hasHighways,
204 | hasTolls: route.hasTolls,
| |- error: 'hasTolls' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
205 | routeName: route.name,
206 | steps: route.steps.compactMap{ $0.instructions },
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:227:36: error: 'authorizationStatus' is only available in macOS 11.0 or newer
223 |
224 | @available(iOS 17, *)
225 | extension IzziLocationKit: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
226 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
| `- note: add @available attribute to enclosing instance method
227 | locationAccessStatus = manager.authorizationStatus
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
228 |
229 | getLocation()
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:235:5: error: 'Task' is only available in macOS 10.15 or newer
223 |
224 | @available(iOS 17, *)
225 | extension IzziLocationKit: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
226 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
227 | locationAccessStatus = manager.authorizationStatus
:
230 | }
231 |
232 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
233 | guard let location = locations.first else { return }
234 |
235 | Task {@MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | currentLocation = location
237 | currentCoordinates = location.coordinate
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:235:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
223 |
224 | @available(iOS 17, *)
225 | extension IzziLocationKit: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
226 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
227 | locationAccessStatus = manager.authorizationStatus
:
230 | }
231 |
232 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
233 | guard let location = locations.first else { return }
234 |
235 | Task {@MainActor in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | currentLocation = location
237 | currentCoordinates = location.coordinate
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:259:7: error: 'Task' is only available in macOS 10.15 or newer
223 |
224 | @available(iOS 17, *)
225 | extension IzziLocationKit: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
226 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
227 | locationAccessStatus = manager.authorizationStatus
:
243 | }
244 |
245 | public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
| `- note: add @available attribute to enclosing instance method
246 | let message: String
247 | if let clError = error as? CLError {
:
257 | }
258 |
259 | Task {@MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 | errorMessage = message
261 | isError = true
/Users/admin/builder/spi-builder-workspace/Sources/IzziLocationKit/IzziLocationKit.swift:259:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
223 |
224 | @available(iOS 17, *)
225 | extension IzziLocationKit: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
226 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
227 | locationAccessStatus = manager.authorizationStatus
:
243 | }
244 |
245 | public func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
| `- note: add @available attribute to enclosing instance method
246 | let message: String
247 | if let clError = error as? CLError {
:
257 | }
258 |
259 | Task {@MainActor in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 | errorMessage = message
261 | isError = true
BUILD FAILURE 6.0 macosSpm