Build Information
Failed to build TripKit, reference 4.7.1 (1a62a5
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 23:56:31 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skedgo/tripkit-ios.git
Reference: 4.7.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/skedgo/tripkit-ios
* tag 4.7.1 -> FETCH_HEAD
HEAD is now at 1a62a55 CocoaPods update (#353)
Cloned https://github.com/skedgo/tripkit-ios.git
Revision (git rev-parse @):
1a62a55fc3b1b59fef4804f0b0fd0279162c0fc5
SUCCESS checkout https://github.com/skedgo/tripkit-ios.git at 4.7.1
Fetching https://github.com/onevcat/Kingfisher.git
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/skedgo/TGCardViewController.git
Fetching https://github.com/skedgo/GeoMonitor.git
[2/187] Fetching geomonitor
[188/5446] Fetching geomonitor, tgcardviewcontroller
[3081/36445] Fetching geomonitor, tgcardviewcontroller, kingfisher
[3135/88814] Fetching geomonitor, tgcardviewcontroller, kingfisher, rxswift
Fetched https://github.com/skedgo/TGCardViewController.git from cache (8.22s)
Fetched https://github.com/onevcat/Kingfisher.git from cache (8.22s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (8.22s)
Fetched https://github.com/skedgo/GeoMonitor.git from cache (8.22s)
Computing version for https://github.com/skedgo/TGCardViewController.git
Computed https://github.com/skedgo/TGCardViewController.git at 2.2.10 (0.99s)
Computing version for https://github.com/skedgo/GeoMonitor.git
Computed https://github.com/skedgo/GeoMonitor.git at 0.1.3 (0.91s)
Computing version for https://github.com/onevcat/Kingfisher.git
Computed https://github.com/onevcat/Kingfisher.git at 7.8.1 (0.92s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 6.6.0 (0.77s)
Creating working copy for https://github.com/onevcat/Kingfisher.git
Working copy of https://github.com/onevcat/Kingfisher.git resolved at 7.8.1
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 6.6.0
Creating working copy for https://github.com/skedgo/TGCardViewController.git
Working copy of https://github.com/skedgo/TGCardViewController.git resolved at 2.2.10
Creating working copy for https://github.com/skedgo/GeoMonitor.git
Working copy of https://github.com/skedgo/GeoMonitor.git resolved at 0.1.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "tripkit-ios",
"name": "TripKit",
"url": "https://github.com/skedgo/tripkit-ios.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/tripkit-ios",
"dependencies": [
{
"identity": "rxswift",
"name": "RxSwift",
"url": "https://github.com/ReactiveX/RxSwift.git",
"version": "6.8.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RxSwift",
"dependencies": [
]
},
{
"identity": "kingfisher",
"name": "Kingfisher",
"url": "https://github.com/onevcat/Kingfisher.git",
"version": "7.12.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kingfisher",
"dependencies": [
]
},
{
"identity": "geomonitor",
"name": "GeoMonitor",
"url": "https://github.com/skedgo/GeoMonitor.git",
"version": "0.1.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GeoMonitor",
"dependencies": [
]
},
{
"identity": "tgcardviewcontroller",
"name": "TGCardViewController",
"url": "https://github.com/skedgo/TGCardViewController.git",
"version": "2.3.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TGCardViewController",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/skedgo/tripkit-ios.git
[1/106904] Fetching tripkit-ios
Fetched https://github.com/skedgo/tripkit-ios.git from cache (24.61s)
Fetching https://github.com/onevcat/Kingfisher.git from cache
Fetching https://github.com/ReactiveX/RxSwift.git from cache
Fetching https://github.com/skedgo/GeoMonitor.git from cache
Fetching https://github.com/skedgo/TGCardViewController.git from cache
Fetched https://github.com/onevcat/Kingfisher.git from cache (0.74s)
Fetched https://github.com/skedgo/TGCardViewController.git from cache (0.74s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (0.74s)
Fetched https://github.com/skedgo/GeoMonitor.git from cache (0.74s)
Computing version for https://github.com/skedgo/GeoMonitor.git
Computed https://github.com/skedgo/GeoMonitor.git at 0.1.3 (0.02s)
Computing version for https://github.com/skedgo/TGCardViewController.git
Computed https://github.com/skedgo/TGCardViewController.git at 2.3.3 (0.63s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 6.8.0 (0.51s)
Computing version for https://github.com/onevcat/Kingfisher.git
Computed https://github.com/onevcat/Kingfisher.git at 7.12.0 (0.49s)
Creating working copy for https://github.com/skedgo/TGCardViewController.git
Working copy of https://github.com/skedgo/TGCardViewController.git resolved at 2.3.3
Creating working copy for https://github.com/skedgo/tripkit-ios.git
Working copy of https://github.com/skedgo/tripkit-ios.git resolved at 4.7.1 (1a62a55)
Creating working copy for https://github.com/skedgo/GeoMonitor.git
Working copy of https://github.com/skedgo/GeoMonitor.git resolved at 0.1.3
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 6.8.0
Creating working copy for https://github.com/onevcat/Kingfisher.git
Working copy of https://github.com/onevcat/Kingfisher.git resolved at 7.12.0
warning: '.resolve-product-dependencies': dependency 'tripkit-ios' is not used by any target
Found 4 product dependencies
- RxSwift
- Kingfisher
- GeoMonitor
- TGCardViewController
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/skedgo/tripkit-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/117] Write swift-version--7754E27361AE5C74.txt
[1/117] Copying TripKitUI.xcassets
[2/117] Copying TKUITripTitleView.xib
[3/117] Copying TKUITripCell.xib
[4/117] Copying TKUITripBoyView.xib
[5/117] Copying TKUITimetableAccessoryView.xib
[5/117] Copying TKUIServiceVisitCell.xib
[5/117] Copying TKUIServiceTitleView.xib
[5/117] Copying TKUIServiceNumberCell.xib
[9/117] Copying TKUIServiceHeaderView.xib
[9/117] Copying TKUIServiceHeaderMiniView.xib
[11/117] Copying TKUISegmentTitleView.xib
[11/117] Copying TKUISegmentStationaryDoubleCell.xib
[12/117] Copying TKUISegmentStationaryCell.xib
[14/117] Copying TKUISegmentMovingCell.xib
[14/117] Copying TKUISegmentInstructionsView.xib
[16/117] Copying TKUISegmentImpossibleCell.xib
[16/117] Copying TKUISegmentDirectionCell.xib
[16/117] Copying TKUISegmentAlertCell.xib
[16/117] Copying TKUISectionedAlertViewController.xib
[16/117] Copying TKUISectionedAlertTableHeader.xib
[16/117] Copying TKUIRoutingSupportView.xib
[16/117] Copying TKUIRoutingQueryInputTitleView.xib
[16/117] Copying TKUIResultsTitleView.xib
[16/117] Copying TKUIResultsAccessoryView.xib
[16/117] Copying TKUIProgressCell.xib
[17/117] Copying TKUIPathFriendlinessView.xib
[21/117] Copying TKUINotificationView.xib
[24/117] Copying TKUINearbyCell.xib
[29/117] Copying TKUIModePickerCell.xib
[29/117] Copying TKUILoadingAlertView.xib
[29/117] Copying TKUIHomeCustomizerCell.xib
[29/117] Copying TKUIGroupedAlertCell.xib
[29/117] Copying TKUIEmptyAlertView.xib
[34/117] Copying TKUIDepartureCell.xib
[34/117] Copying TKUIAttributionTableViewController.xib
[34/117] Copying TKUIAttributionCell.xib
[34/117] Copying TKUIAlertCell.xib
[35/117] Copying Info.plist
[37/117] Copying TripKit.strings
[39/117] Copying Shared.strings
[41/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[43/117] Copying TripKit.strings
[44/117] Copying Shared.strings
[45/117] Copying TripKit.strings
[46/117] Copying Shared.strings
[47/117] Copying TripKit.strings
[48/117] Copying Shared.strings
[49/117] Copying TripKit.strings
[50/117] Copying Shared.strings
[51/117] Copying TripKit.strings
[52/117] Copying Shared.strings
[53/117] Copying TripKit.strings
[54/117] Copying Shared.strings
[55/117] Copying TripKit.strings
[56/117] Copying Shared.strings
[57/117] Copying TripKit.strings
[58/117] Copying Shared.strings
[59/117] Copying TripKit.strings
[60/117] Copying Shared.strings
[61/117] Copying TripKit.strings
[62/117] Copying Shared.strings
[63/117] Copying TripKit.strings
[64/117] Copying Shared.strings
[65/117] Copying TripKit.strings
[66/117] Copying Shared.strings
[67/117] Copying TripKit.strings
[68/117] Copying Shared.strings
[69/117] Copying TripKit.strings
[70/117] Copying Shared.strings
[71/117] Copying TripKit.strings
[72/117] Copying Shared.strings
[73/117] Copying TripKit.strings
[74/117] Copying Shared.strings
[75/117] Copying TripKitModel.xcdatamodeld
[76/117] Compiling TripKitObjc TKStyleManager+UIKit.m
[77/117] Copying Info.plist
[78/117] Write sources
[79/117] Copying TripKit.xcassets
[80/117] Compiling TripKitObjc UIFont+CustomFonts.m
[81/117] Compiling TripKitObjc TKConfig.m
[82/117] Compiling TripKitObjc NSDate+Helpers.m
[83/117] Compiling TripKitObjc NSUserDefaults+SharedDefaults.m
[84/117] Compiling TripKitObjc TKSettings.m
[85/117] Compiling TripKitObjc NSManagedObjectContext+SimpleFetch.m
[86/117] Compiling TripKitObjc TKPermissionManager.m
[87/117] Compiling TripKitObjc NSManagedObject+TKPersistence.m
[88/117] Compiling TripKitObjc TKLocationHelper.m
[89/117] Write sources
[90/117] Copying Localizable.strings
[91/117] Copying TGScrollCardView.xib
[92/117] Copying TGPlainCardView.xib
[93/117] Copying TGPageHeaderView.xib
[94/117] Copying TGPageCardView.xib
[95/117] Copying TGCardViewController.xib
[96/117] Copying TGCardDefaultTitleView.xib
[97/117] Copying Info.plist
[98/117] Write sources
[100/117] Compiling TripKitObjc TKConstants.m
[101/117] Compiling TripKitObjc TKTripKit.m
[102/117] Write sources
[106/348] Compiling TripKitObjc TKStyleManager.m
[107/348] Compiling TripKitObjc NSString+Sizing.m
[108/351] Compiling TripKitObjc TKTransportModes.m
[109/351] Compiling TripKitObjc MKOverlay+NSCoding.m
[110/351] Compiling TripKitObjc TKServer.m
[111/351] Compiling TripKitObjc TKLocationManager.m
[112/351] Compiling TripKitObjc TKAutocompletionResult.m
error: emit-module command failed with exit code 1 (use -v to see invocation)
[114/528] Emitting module TGCardViewController
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[115/530] Emitting module Kingfisher
[116/536] Compiling TripKit API+ViewHelpers.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[117/536] Compiling TripKit DataAttachable.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[118/536] Compiling TripKit TKImageBuilder.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[119/536] Compiling TripKit TKSegment.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[120/536] Compiling TripKit TKSortableAnnotation.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[121/536] Compiling TripKit TKTimetable.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[122/536] Compiling TripKit TKTripAndSegments.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[123/536] Compiling TripKit TKTripPattern.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[124/536] Compiling TripKit TKTurnByTurnMode.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[125/536] Compiling TripKit TKParserHelper.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[126/536] Compiling TripKit TKRegion+RoutingMode.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[127/536] Compiling TripKit TKMetricClassifier.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[128/536] Compiling TripKit TripRequest+Classify.swift
[129/536] Compiling TripKit TKCalendarManager+Autocompleting.swift
[130/536] Compiling TripKit TKCalendarManager.swift
[131/536] Compiling TripKit TKContactsManager+TKAutocompleting.swift
[132/536] Compiling TripKit TKSegment+Ticket.swift
[139/536] Compiling TGCardViewController TGKeyboardTableView.swift
[140/536] Compiling TGCardViewController resource_bundle_accessor.swift
[141/536] Compiling TripKit TKAggregateGeocoder.swift
[142/536] Compiling TripKit TKAnnotationClusterer.swift
[143/536] Compiling TripKit TKAppleGeocoder.swift
[144/536] Compiling TripKit TKAutocompletionResult+Icon.swift
[145/536] Compiling TripKit TKGeoJSON+NamedCoordinate.swift
[146/536] Compiling TripKit TKGeoJSON.swift
[147/536] Compiling TripKit TKGeocoderHelper.swift
[148/536] Compiling TripKit TKGeocoding.swift
[149/536] Compiling TripKit TKGeocodingResultScorer.swift
[150/536] Compiling TripKit TKModeImageBuilder.swift
[151/536] Compiling TripKit TKColoredRoute.swift
[152/536] Compiling TripKit TKCoordinates.swift
[153/536] Compiling TripKit TKDLSTable.swift
[154/536] Compiling TripKit TKGeocodable.swift
[155/536] Compiling TripKit TKInfoIcon.swift
[156/536] Compiling TripKit TKLocalCost.swift
[157/536] Compiling TripKit TKLocationTypes.swift
[158/536] Compiling TripKit TKMapTiles.swift
[159/536] Compiling TripKit TKMiniInstruction.swift
[160/536] Compiling TripKit TKModeInfo+Image.swift
[161/536] Compiling TripKit TKModeInfo.swift
[162/536] Compiling TripKit TKNamedCoordinate.swift
[163/536] Compiling TripKit TKPathFriendliness.swift
[164/536] Compiling TripKit TKRoutePolyline.swift
[165/536] Compiling TripKit TKSecureTransformers.swift
[166/536] Compiling TripKit TKSegment+Alerts.swift
[167/536] Compiling Kingfisher Result.swift
[168/536] Compiling Kingfisher Runtime.swift
[169/536] Compiling Kingfisher SizeExtensions.swift
[170/536] Compiling Kingfisher String+MD5.swift
[171/536] Compiling Kingfisher AnimatedImageView.swift
[172/536] Compiling Kingfisher Indicator.swift
[173/536] Compiling TripKit VehicleAPIModel.swift
[174/536] Compiling TripKit Alert+CoreDataClass.swift
[175/536] Compiling TripKit Alert+CoreDataProperties.swift
[176/536] Compiling TripKit DLSEntry+CoreDataClass.swift
[177/552] Compiling TripKit Loc.swift
[178/552] Compiling TripKit TKConfig.swift
[179/552] Compiling TripKit TKCrossPlatform.swift
[180/552] Compiling TripKit TKImage+TripKit.swift
[181/552] Compiling TripKit TKLog.swift
[182/552] Compiling TripKit TripKit.swift
[186/552] Compiling TripKit TKJSONCache.swift
[187/552] Compiling TripKit TKJSONSanitizer.swift
[188/552] Compiling TripKit TKModeHelper.swift
[192/552] Compiling TripKit TKTripClassifier.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[193/552] Emitting module GeoMonitor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:79:28: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
77 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
78 |
79 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
80 |
81 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:126:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
124 |
125 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
126 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
127 |
128 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:186:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
184 | // MARK: - Location tracking
185 |
186 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
187 |
188 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:188:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
186 | @Published public var currentLocation: CLLocation?
187 |
188 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
189 | didSet {
190 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:128: error: 'authorizedWhenInUse' is unavailable in macOS
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
254 | ask(forBackground: true)
255 | } else if enableInBackground {
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
18 | public static var AuthorizedAlways: CLAuthorizationStatus { get }
19 | @available(macOS, unavailable)
20 | case authorizedWhenInUse
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
21 | @available(macOS 10.6, *)
22 | public static var authorized: CLAuthorizationStatus { get }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:250:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
248 | ///
249 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
250 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:274:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
272 | if isMonitoring {
273 | if enableVisitMonitoring {
274 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:276:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
274 | locationManager.startMonitoringVisits()
275 | } else {
276 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:21:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:542:77: error: 'CLVisit' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| | `- error: 'CLVisit' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
[194/552] Emitting module RxSwift
[195/552] Compiling TripKit OpeningHoursAPIModel.swift
[196/552] Compiling TripKit PricingTableAPIModel.swift
[197/552] Compiling TripKit RegionInfoAPIModel.swift
[198/552] Compiling TripKit RegionsAPIModel.swift
[199/552] Compiling TripKit RouteAPIModel.swift
[200/552] Compiling TripKit RoutingAPIModel.swift
[201/552] Compiling TripKit ServiceAPIModel.swift
[202/552] Compiling TripKit Shape+CoreDataProperties.swift
[203/552] Compiling TripKit Shape+Data.swift
[204/552] Compiling TripKit StopLocation+CoreDataClass.swift
[205/552] Compiling TripKit StopLocation+CoreDataProperties.swift
[206/552] Compiling TripKit StopLocation.swift
[207/552] Compiling TripKit StopVisits+CoreDataClass.swift
[208/552] Compiling TripKit StopVisits+CoreDataProperties.swift
[209/552] Compiling TripKit Trip+CoreDataClass.swift
[210/552] Compiling TripKit Trip+CoreDataProperties.swift
[211/552] Compiling TripKit UIColor+TripKit.swift
[212/552] Compiling TripKit UIColor+TripKitDefault.swift
[213/552] Compiling TripKit Array+Duplicates.swift
[214/552] Compiling TripKit Codable+Helpers.swift
[215/552] Compiling TripKit Date+Helpers.swift
[216/552] Compiling TripKit MKMultiPoint+ClosestPoint.swift
[217/552] Compiling TripKit MapKit+Extensions.swift
[218/552] Compiling TripKit NSBundle+ProductName.swift
[219/552] Compiling TripKit NSDate+Formatting.swift
[220/552] Compiling TripKit NSError+customError.swift
[221/552] Compiling TripKit NSManagedObject+Safely.swift
[222/552] Compiling TripKit NSManagedObjectContext+Fetch.swift
[223/552] Compiling TripKit NSNumber+Formatter.swift
[224/552] Compiling TripKit NSUserDefaults+SharedDefaults.swift
[225/552] Compiling TripKit String+NonEmpty.swift
[226/552] Compiling TripKit Loc+TripKit.swift
[227/552] Compiling TripKit Loc+TripKitBookings.swift
[228/552] Compiling TripKit Loc+TripKitInterApp.swift
[229/552] Compiling TripKit Loc+TripKitUI.swift
[230/552] Compiling TripKit TKContactsManager.swift
[231/552] Compiling TripKit TKLocationManager.swift
[232/552] Compiling TripKit TKPermissionManager+AuthorizationAlert.swift
[233/552] Compiling TripKit TKRegionManager.swift
[234/552] Compiling TripKit TKStyleManager.swift
[235/552] Compiling TripKit API.swift
[236/552] Compiling TripKit AlertAPIModels.swift
[237/552] Compiling TripKit BaseAPIModels.swift
[238/552] Compiling TripKit DeparturesAPIModel.swift
[239/552] Compiling TripKit EventAPIModel.swift
[240/552] Compiling TripKit GeocodeAPIModel.swift
[241/552] Compiling TripKit LatestAPIModel.swift
[242/552] Compiling TripKit LocationAPIModel.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[248/552] Compiling GeoMonitor PrioritizedRegion.swift
[249/552] Compiling GeoMonitor GeoMonitor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:79:28: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
77 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
78 |
79 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
80 |
81 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:126:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
124 |
125 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
126 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
127 |
128 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:186:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
184 | // MARK: - Location tracking
185 |
186 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
187 |
188 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:188:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
186 | @Published public var currentLocation: CLLocation?
187 |
188 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
189 | didSet {
190 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:128: error: 'authorizedWhenInUse' is unavailable in macOS
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
254 | ask(forBackground: true)
255 | } else if enableInBackground {
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
18 | public static var AuthorizedAlways: CLAuthorizationStatus { get }
19 | @available(macOS, unavailable)
20 | case authorizedWhenInUse
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
21 | @available(macOS 10.6, *)
22 | public static var authorized: CLAuthorizationStatus { get }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:250:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
248 | ///
249 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
250 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:274:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
272 | if isMonitoring {
273 | if enableVisitMonitoring {
274 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:276:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
274 | locationManager.startMonitoringVisits()
275 | } else {
276 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:21:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:542:77: error: 'CLVisit' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| | `- error: 'CLVisit' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:105:5: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
104 | locationManager = .init()
105 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | self.enabledKey = enabledKey
107 | if let enabledKey = enabledKey {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:108:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
106 | self.enabledKey = enabledKey
107 | if let enabledKey = enabledKey {
108 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | } else {
110 | enableInBackground = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:110:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
108 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
109 | } else {
110 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 |
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:116:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
114 |
115 | locationManager.delegate = self
116 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 |
118 | #if !DEBUG
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:132:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
129 |
130 | /// Whether it's possible to bring up the system prompt to ask for access to the device's location
131 | public var canAsk: Bool {
| `- note: add @available attribute to enclosing property
132 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
133 | case .notDetermined:
134 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:143:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:145:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | // Note: We do NOT update `enableInBackground` here, as that's the user's
147 | // setting, i.e., they might not want to have it enabled even though the
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:145:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
146 | // Note: We do NOT update `enableInBackground` here, as that's the user's
147 | // setting, i.e., they might not want to have it enabled even though the
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:150:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
148 | // app has permissions.
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:150:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
148 | // app has permissions.
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:151:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
151 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:153:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | enableInBackground = false
155 | @unknown default:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:154:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
154 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | @unknown default:
156 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:156:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
154 | enableInBackground = false
155 | @unknown default:
156 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | enableInBackground = false
158 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:157:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
155 | @unknown default:
156 | hasAccess = false
157 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:163:26: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
164 | // Need to *first* ask for when in use, and only for always if that
165 | // is granted.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:175:25: error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
:
173 | } else {
174 | self.askHandler = handler
175 | locationManager.requestAlwaysAuthorization()
| |- error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | }
177 | } else {
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, CLLocation?>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, CLLocation?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:179:23: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
:
177 | } else {
178 | self.askHandler = handler
179 | locationManager.requestWhenInUseAuthorization()
| |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
180 | }
181 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:221:21: error: 'requestLocation()' is only available in macOS 10.14 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
219 | let originalAccuracy = locationManager.desiredAccuracy
220 | locationManager.desiredAccuracy = desiredAccuracy
221 | locationManager.requestLocation()
| |- error: 'requestLocation()' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
222 |
223 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [unowned self] _ in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
225 | }
226 |
227 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:22: error: 'resume(with:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
230 | continuation.resume(with: result)
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | })
232 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:54: note: expanded code originates here
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
225 | }
226 |
227 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|225 |
|226 |
|227 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------------
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:286:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
285 | isMonitoring = true
286 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:287:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
285 | isMonitoring = true
286 | locationManager.allowsBackgroundLocationUpdates = true
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 |
289 | Task {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:289:5: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
289 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | // Check if in region, which will also re-monitor the current location
291 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:289:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
289 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | // Check if in region, which will also re-monitor the current location
291 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:296:23: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
294 |
295 | if enableVisitMonitoring {
296 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:304:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
303 | isMonitoring = false
304 | locationManager.allowsBackgroundLocationUpdates = false
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | locationManager.pausesLocationUpdatesAutomatically = true
306 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:305:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
303 | isMonitoring = false
304 | locationManager.allowsBackgroundLocationUpdates = false
305 | locationManager.pausesLocationUpdatesAutomatically = true
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 |
307 | stopMonitoringCurrentArea()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:308:21: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
:
306 |
307 | stopMonitoringCurrentArea()
308 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | }
310 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:402:18: error: 'cancel()' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | monitorTask = Task {
404 | if let delay {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:403:19: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:403:19: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:405:19: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | }
407 | monitorNow(regions, location: location)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:405:24: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | }
407 | monitorNow(regions, location: location)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:412:12: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
409 | }
410 |
411 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
412 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 |
414 | // Remember all the regions, if it currently too far away
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:412:17: error: 'isCancelled' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
409 | }
410 |
411 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
412 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 |
414 | // Remember all the regions, if it currently too far away
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:495:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
486 | guard isMonitoring else {
487 | eventHandler(.status("GeoMonitor exited region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
493 | }
494 |
495 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | // Make sure this is still a *current* region => update data
497 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:495:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
486 | guard isMonitoring else {
487 | eventHandler(.status("GeoMonitor exited region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
493 | }
494 |
495 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | // Make sure this is still a *current* region => update data
497 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:536:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
524 | }
525 |
526 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
527 | guard isMonitoring else {
528 | eventHandler(.status("GeoMonitor entered region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
534 | }
535 |
536 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | // 3. When leaving the current location, fetch...
538 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:536:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
524 | }
525 |
526 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
527 | guard isMonitoring else {
528 | eventHandler(.status("GeoMonitor entered region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
534 | }
535 |
536 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | // 3. When leaving the current location, fetch...
538 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:555:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
553 | }
554 |
555 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
557 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:555:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
553 | }
554 |
555 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
557 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:576:5: error: setter for 'currentLocation' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
559 | }
560 |
561 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
562 | #if DEBUG
563 | print("GeoMonitor updated locations -> \(locations)")
:
574 | }
575 |
576 | self.currentLocation = latestAccurate
| |- error: setter for 'currentLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
577 |
578 | notify(.success(latestAccurate))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:599:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
592 | }
593 |
594 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
| `- note: add @available attribute to enclosing instance method
595 | updateAccess()
596 | askHandler(hasAccess)
597 | askHandler = { _ in }
598 |
599 | switch manager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
600 | case .authorizedAlways, .authorizedWhenInUse:
601 | if isMonitoring {
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/vendor/RxCombine/LICENSE
BUILD FAILURE 6.0 macosSpm