Build Information
Failed to build TripKit, reference 4.7.1 (1a62a5
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 13:04:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/skedgo/tripkit-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/125] Write sources
[0/125] Copying TKUIResultsTitleView.xib
[0/125] Copying TKUITripBoyView.xib
[0/125] Copying TKUISectionedAlertViewController.xib
[0/125] Copying TKUIRoutingQueryInputTitleView.xib
[3/125] Copying TKUISectionedAlertTableHeader.xib
[3/125] Copying TKUIRoutingSupportView.xib
[7/125] Copying TKUITripTitleView.xib
[7/125] Copying TKUITimetableAccessoryView.xib
[7/125] Copying TKUIServiceTitleView.xib
[7/125] Copying TKUIServiceVisitCell.xib
[7/125] Copying TKUIServiceHeaderView.xib
[7/125] Copying TKUITripCell.xib
[7/125] Copying TKUIServiceNumberCell.xib
[14/125] Copying TKUIServiceHeaderMiniView.xib
[14/125] Copying TKUISegmentTitleView.xib
[14/125] Copying TKUISegmentStationaryCell.xib
[14/125] Copying TKUISegmentStationaryDoubleCell.xib
[17/125] Copying TKUISegmentInstructionsView.xib
[17/125] Copying TKUISegmentMovingCell.xib
[20/125] Copying TKUISegmentImpossibleCell.xib
[21/125] Copying TKUIResultsAccessoryView.xib
[21/125] Copying TKUISegmentDirectionCell.xib
[21/125] Copying TKUISegmentAlertCell.xib
[21/125] Copying TKUIPathFriendlinessView.xib
[21/125] Copying TKUIProgressCell.xib
[21/125] Copying TKUINotificationView.xib
[21/125] Copying TKUILoadingAlertView.xib
[21/125] Copying TKUIHomeCustomizerCell.xib
[21/125] Copying TKUIGroupedAlertCell.xib
[21/125] Copying TKUINearbyCell.xib
[21/125] Copying TKUIEmptyAlertView.xib
[21/125] Copying TKUIModePickerCell.xib
[21/125] Copying TKUIAttributionTableViewController.xib
[21/125] Copying TKUIDepartureCell.xib
[21/125] Copying TKUIAlertCell.xib
[21/125] Copying Info.plist
[21/125] Copying TKUIAttributionCell.xib
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Shared.strings
[21/125] Copying TripKit.strings
[21/125] Copying Info.plist
[21/125] Copying TripKit.strings
[75/125] Write swift-version-1EA4D86E10B52AF.txt
[76/125] Copying TripKitUI.xcassets
[77/125] Copying TripKitModel.xcdatamodeld
[78/125] Copying TripKit.xcassets
[79/125] Compiling TripKitObjc TKStyleManager+UIKit.m
[80/125] Compiling TripKitObjc UIFont+CustomFonts.m
[81/125] Compiling TripKitObjc TKSettings.m
[82/125] Compiling TripKitObjc TKConfig.m
[83/125] Compiling TripKitObjc TKConstants.m
[84/125] Compiling TripKitObjc TKPermissionManager.m
[85/125] Compiling TripKitObjc NSUserDefaults+SharedDefaults.m
[86/125] Compiling TripKitObjc TKLocationHelper.m
[87/125] Compiling TripKitObjc NSManagedObject+TKPersistence.m
[88/125] Compiling TripKitObjc NSDate+Helpers.m
[88/125] Write sources
[88/125] Copying Localizable.strings
[91/125] Copying TGScrollExtendedCardView.xib
[92/125] Copying TGScrollCardView.xib
[93/125] Copying TGPlainExtendedCardView.xib
[94/125] Copying TGPlainCardView.xib
[95/125] Copying TGPageHeaderView.xib
[96/125] Copying TGPageCardView.xib
[97/125] Copying TGCardViewController.xib
[98/125] Copying TGCardDefaultTitleView.xib
[99/125] Copying Info.plist
[100/125] Write sources
[101/125] Copying PrivacyInfo.xcprivacy
[102/125] Compiling TripKitObjc TKTripKit.m
[103/125] Copying PrivacyInfo.xcprivacy
[106/125] Write sources
[108/125] Compiling TripKitObjc NSManagedObjectContext+SimpleFetch.m
[109/125] Write sources
[110/125] Copying PrivacyInfo.xcprivacy
[111/125] Write sources
[113/360] Compiling TripKitObjc NSString+Sizing.m
[114/363] Compiling TripKitObjc TKTransportModes.m
[115/363] Compiling TripKitObjc TKServer.m
[116/363] Compiling TripKitObjc TKLocationManager.m
[117/363] Compiling TripKitObjc TKStyleManager.m
[118/363] Compiling TripKitObjc MKOverlay+NSCoding.m
[119/363] Compiling TripKitObjc TKAutocompletionResult.m
[121/540] Compiling TripKit TKTripClassifier.swift
[122/540] Compiling TripKit TripRequest+Classify.swift
[123/540] Compiling TripKit TKCalendarManager+Autocompleting.swift
[124/540] Compiling TripKit TKCalendarManager.swift
[125/540] Compiling TripKit TKContactsManager+TKAutocompleting.swift
[126/540] Compiling TripKit ShareCarAPIModel.swift
[127/540] Compiling TripKit StopAPIModel.swift
[128/540] Compiling TripKit UserAPIModel.swift
[129/540] Compiling TripKit VehicleAPIModel.swift
[130/540] Compiling TripKit Alert+CoreDataClass.swift
[131/540] Compiling TripKit Alert+CoreDataProperties.swift
[132/540] Compiling TripKit DLSEntry+CoreDataClass.swift
[133/540] Compiling TripKit DLSEntry+CoreDataProperties.swift
[134/540] Compiling TripKit SegmentReference+CoreDataClass.swift
[135/540] Compiling TripKit SegmentReference+CoreDataProperties.swift
[136/540] Compiling TripKit SegmentReference+Data.swift
[137/540] Compiling TripKit SegmentReference+Flags.swift
[138/540] Compiling TripKit SegmentTemplate+CoreDataClass.swift
[139/540] Compiling TripKit SegmentTemplate+CoreDataProperties.swift
[140/540] Compiling TripKit SegmentTemplate+Data.swift
[141/540] Compiling TripKit SegmentTemplate+Flags.swift
[142/540] Compiling TripKit Service+CoreDataClass.swift
[143/540] Compiling TripKit Service+CoreDataProperties.swift
[144/540] Compiling TripKit Service+Visits.swift
[145/540] Compiling TripKit Shape+CoreDataClass.swift
[146/540] Compiling TripKit TKContactsManager.swift
[147/540] Compiling TripKit TKLocationManager.swift
[148/540] Compiling TripKit TKPermissionManager+AuthorizationAlert.swift
[149/540] Compiling TripKit TKRegionManager.swift
[150/540] Compiling TripKit TKStyleManager.swift
[151/540] Compiling TripKit API.swift
[152/540] Compiling TripKit AlertAPIModels.swift
[153/540] Compiling TripKit BaseAPIModels.swift
[154/556] Compiling TripKit TKShareURLProvider.swift
[155/556] Compiling TripKit StopLocation+Shareable.swift
[156/556] Compiling TripKit StopVisits+Shareable.swift
[157/556] Compiling TripKit TKColoredRoute.swift
[158/556] Compiling TripKit TKCoordinates.swift
[159/556] Compiling TripKit TKDLSTable.swift
[160/556] Compiling TripKit TKGeocodable.swift
[161/556] Compiling TripKit TKInfoIcon.swift
[162/556] Compiling TripKit TKLocalCost.swift
[163/556] Compiling TripKit TKLocationTypes.swift
[164/556] Compiling TripKit TKMapTiles.swift
[165/556] Compiling TripKit TKMiniInstruction.swift
[166/556] Compiling TripKit TKModeInfo+Image.swift
[167/556] Compiling TripKit TKModeInfo.swift
[168/556] Compiling TripKit TKNamedCoordinate.swift
[169/556] Compiling TripKit TKPathFriendliness.swift
[170/556] Compiling TripKit DeparturesAPIModel.swift
[171/556] Compiling TripKit EventAPIModel.swift
[172/556] Compiling TripKit GeocodeAPIModel.swift
[173/556] Compiling TripKit LatestAPIModel.swift
[174/556] Compiling TripKit LocationAPIModel.swift
[175/556] Compiling TripKit OpeningHoursAPIModel.swift
[176/556] Compiling TripKit PricingTableAPIModel.swift
[177/556] Compiling TripKit RegionInfoAPIModel.swift
[178/556] Compiling TripKit RegionsAPIModel.swift
[179/556] Compiling TripKit RouteAPIModel.swift
[180/556] Compiling TripKit RoutingAPIModel.swift
[181/556] Compiling TripKit ServiceAPIModel.swift
[182/556] Compiling TripKit Shape+CoreDataProperties.swift
[183/556] Compiling TripKit Shape+Data.swift
[184/556] Compiling TripKit StopLocation+CoreDataClass.swift
[185/556] Compiling TripKit StopLocation+CoreDataProperties.swift
[186/556] Compiling TripKit StopLocation.swift
[187/556] Compiling TripKit StopVisits+CoreDataClass.swift
[188/556] Compiling TripKit StopVisits+CoreDataProperties.swift
[189/556] Compiling TripKit Trip+CoreDataClass.swift
[190/556] Compiling TripKit Trip+CoreDataProperties.swift
[191/556] Compiling TripKit Trip+Data.swift
[192/556] Compiling TripKit Trip+Flags.swift
[193/556] Compiling TripKit TripGroup+CoreDataClass.swift
[194/556] Compiling TripKit TripGroup+CoreDataProperties.swift
[195/556] Compiling TripKit TripRequest+CoreDataClass.swift
[196/556] Compiling TripKit TripRequest+CoreDataProperties.swift
[197/556] Compiling TripKit Vehicle+CoreDataClass.swift
[198/556] Compiling TripKit Vehicle+CoreDataProperties.swift
[199/556] Compiling TripKit TKAddressFormatter.swift
[200/556] Compiling TripKit TKAnnotations.swift
[201/556] Compiling TripKit TKBookingTypes.swift
[202/556] Compiling TripKit TKRoutingServer.swift
[203/556] Compiling TripKit TKServer+Image.swift
[204/556] Compiling TripKit TKServer+Regions.swift
[205/556] Compiling TripKit TKServer+UserAccount.swift
[206/556] Compiling TripKit TKServer.swift
[207/556] Compiling TripKit TKSettings+Config.swift
[208/556] Compiling TripKit TKSettings.swift
[209/556] Compiling TripKit TKTransportModes.swift
[210/556] Compiling TripKit TKTripFetcher.swift
[211/556] Compiling TripKit TKWaypointRouter.swift
[212/556] Compiling TripKit SegmentTemplate+Parsing.swift
[213/556] Compiling TripKit TKAPIToCoreDataConverter.swift
[214/556] Compiling TripKit TKRoutingParser+Populate.swift
[215/556] Compiling TripKit TKRoutingParser.swift
[216/556] Compiling TripKit TKShareHelper+Parsing.swift
[217/556] Compiling TripKit TKShareHelper.swift
[218/556] Compiling TripKit TKRoutePolyline.swift
[219/556] Compiling TripKit TKSecureTransformers.swift
[220/556] Compiling TripKit TKSegment+Alerts.swift
[221/556] Compiling TripKit TKSegment+Images.swift
[222/556] Compiling TripKit TKSegment+StationaryType.swift
[223/556] Compiling TripKit TKSegment+TKTripSegment.swift
[224/556] Compiling TripKit TKStyleManager+UIKit.swift
[225/556] Compiling TripKit UIColor+TripKit.swift
[226/556] Compiling TripKit UIColor+TripKitDefault.swift
[227/556] Compiling TripKit Array+Duplicates.swift
[228/556] Compiling TripKit Codable+Helpers.swift
[229/556] Compiling TripKit Date+Helpers.swift
[230/556] Compiling TripKit MKMultiPoint+ClosestPoint.swift
[231/556] Compiling TripKit MapKit+Extensions.swift
[232/556] Compiling TripKit NSBundle+ProductName.swift
[233/556] Compiling TripKit NSDate+Formatting.swift
[234/556] Emitting module RxSwift
[235/556] Compiling TripKit TKNamedCoordinate+Attribution.swift
[236/556] Compiling TripKit TKNamedCoordinate+BuzzData.swift
[237/556] Compiling TripKit TKPeliasGeocoder.swift
[238/556] Compiling TripKit TKRegionAutocompleter.swift
[239/556] Compiling TripKit TKRouteAutocompleter.swift
[240/556] Compiling TripKit TKTripGoGeocoder.swift
[241/556] Compiling TripKit TKBuzzInfoProvider+Routes.swift
[242/556] Compiling TripKit TKBuzzInfoProvider.swift
[243/556] Compiling TripKit TKDeparturesProvider.swift
[244/556] Compiling TripKit TKError.swift
[245/556] Compiling TripKit TKLocationProvider.swift
[246/556] Compiling TripKit TKNamedCoordinate+TKRegion.swift
[247/556] Compiling TripKit TKQuickBookingHelper+Fake.swift
[248/556] Compiling TripKit TKQuickBookingHelper.swift
[249/556] Compiling TripKit TKRealTime.swift
[250/556] Compiling TripKit TKRealTimeFetcher.swift
[251/556] Compiling TripKit TKRegion.swift
[252/556] Compiling TripKit TKReporter.swift
[253/556] Compiling TripKit TKRouter.swift
[254/556] Compiling TripKit Loc.swift
[255/556] Compiling TripKit TKConfig.swift
[256/556] Compiling TripKit TKCrossPlatform.swift
[257/556] Compiling TripKit TKImage+TripKit.swift
[258/556] Compiling TripKit TKLog.swift
[259/556] Compiling TripKit TripKit.swift
[260/556] Compiling TripKit API+ViewHelpers.swift
[261/556] Compiling TripKit DataAttachable.swift
[262/556] Compiling TripKit TKImageBuilder.swift
[263/556] Compiling TripKit TKJSONCache.swift
[264/556] Compiling TripKit TKJSONSanitizer.swift
[265/556] Compiling TripKit TKModeHelper.swift
[266/556] Compiling TripKit TKParserHelper.swift
[267/556] Compiling TripKit TKRegion+RoutingMode.swift
[268/556] 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 {
/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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[272/558] 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 {
/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 {
/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 {
[279/558] Compiling TGCardViewController TGKeyboardTableView.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 {
[280/558] Compiling TGCardViewController resource_bundle_accessor.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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[281/558] 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.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 | case authorizedWhenInUse}
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
/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))
[282/558] Compiling GeoMonitor PrioritizedRegion.swift
[283/558] 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.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 | case authorizedWhenInUse}
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
/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 |
/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
<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: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 {
/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 | }
<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: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 | }
/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
<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: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 {
Fetching https://github.com/skedgo/GeoMonitor.git
Fetching https://github.com/skedgo/TGCardViewController.git
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/onevcat/Kingfisher.git
[1/5259] Fetching tgcardviewcontroller
[212/5446] Fetching tgcardviewcontroller, geomonitor
Fetched https://github.com/skedgo/GeoMonitor.git from cache (0.68s)
[263/5259] Fetching tgcardviewcontroller
[2947/36728] Fetching tgcardviewcontroller, kingfisher
[2948/89438] Fetching tgcardviewcontroller, kingfisher, rxswift
Fetched https://github.com/ReactiveX/RxSwift.git from cache (20.61s)
Fetched https://github.com/skedgo/TGCardViewController.git from cache (20.61s)
Fetched https://github.com/onevcat/Kingfisher.git from cache (20.61s)
Computing version for https://github.com/skedgo/GeoMonitor.git
Computed https://github.com/skedgo/GeoMonitor.git at 0.1.3 (21.12s)
Computing version for https://github.com/skedgo/TGCardViewController.git
Computed https://github.com/skedgo/TGCardViewController.git at 2.3.3 (0.48s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 6.9.0 (0.40s)
Computing version for https://github.com/onevcat/Kingfisher.git
Computed https://github.com/onevcat/Kingfisher.git at 7.12.0 (0.39s)
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/skedgo/TGCardViewController.git
Working copy of https://github.com/skedgo/TGCardViewController.git resolved at 2.3.3
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 6.9.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: '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
warning: 'kingfisher': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Kingfisher/Sources/Info.plist
BUILD FAILURE 6.2 macosSpm