Build Information
Failed to build TripKit, reference main (3baeec
), with Swift 6.1 for macOS (SPM) on 4 Jun 2025 16:57:04 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
"views/TKUIDepartureCell.swift",
"views/TKUIHomeCardSectionHeader.swift",
"views/TKUIHomeCustomizerCell.swift",
"views/TKUIHomeHeaderView.swift",
"views/TKUIModePicker+RoutingMode.swift",
"views/TKUIModePicker+TKModeInfo.swift",
"views/TKUIModePicker.swift",
"views/TKUIModePickerCell.swift",
"views/TKUINearbyCell.swift",
"views/TKUIPolylineRenderer.swift",
"views/TKUIStyleKit.swift",
"views/TKUIStyledLabel.swift",
"views/TKUITripBoyView.swift",
"views/TKUITripModeByModeHeader.swift",
"views/TKUITripSegmentsView.swift",
"views/alerts/TKUIAlertCell.swift",
"views/alerts/TKUIEmptyAlertView.swift",
"views/alerts/TKUIGroupedAlertCell.swift",
"views/alerts/TKUILoadingAlertView.swift",
"views/alerts/TKUISectionedAlertTableHeader.swift",
"views/map annotations/MKAnnotationView+Selectable.swift",
"views/map annotations/TKUIAnnotationViewBuilder.swift",
"views/map annotations/TKUIAnnotations+TripKit.swift",
"views/map annotations/TKUIAnnotations.swift",
"views/map annotations/TKUICircleAnnotationView.swift",
"views/map annotations/TKUIImageAnnotationView.swift",
"views/map annotations/TKUIModeAnnotationView.swift",
"views/map annotations/TKUIPulsingAnnotationView.swift",
"views/map annotations/TKUIRoutingQueryAnnotation.swift",
"views/map annotations/TKUISemaphoreView.swift",
"views/map annotations/TKUIVehicleAnnotationView.swift",
"views/map annotations/TKUIVehicleView.swift",
"views/results/TKUIDateTimePickerView.swift",
"views/results/TKUIDateTimePickerViewController.swift",
"views/results/TKUIDateTimePickerViewModel.swift",
"views/results/TKUIProgressCell.swift",
"views/results/TKUIResultsAccessoryView.swift",
"views/results/TKUIResultsSectionFooterView.swift",
"views/results/TKUIResultsSectionHeaderView.swift",
"views/results/TKUIResultsTitleView.swift",
"views/results/TKUIRoutingQueryInputTitleView.swift",
"views/results/TKUIRoutingSupportView+Show.swift",
"views/results/TKUIRoutingSupportView.swift",
"views/results/TKUISheet.swift",
"views/results/TKUITimePickerSheet+Configuration.swift",
"views/results/TKUITimePickerSheet.swift",
"views/results/TKUITimePickerViewController.swift",
"views/results/TKUITripCell+Formatter.swift",
"views/results/TKUITripCell+Model.swift",
"views/results/TKUITripCell.swift",
"views/segment cards/TKUISegmentDirectionCell.swift",
"views/segment cards/TKUISegmentInstructionsView.swift",
"views/segment cards/TKUISegmentMode.swift",
"views/segment cards/TKUISegmentTitleView+TKSegment.swift",
"views/segment cards/TKUISegmentTitleView.swift",
"views/timetable/TKUICollectionViewBubbleLayout.swift",
"views/timetable/TKUIServiceHeaderMiniView.swift",
"views/timetable/TKUIServiceHeaderView.swift",
"views/timetable/TKUIServiceNumberCell.swift",
"views/timetable/TKUIServiceTitleView+Rx.swift",
"views/timetable/TKUIServiceTitleView.swift",
"views/timetable/TKUIServiceVisitCell.swift",
"views/timetable/TKUITimetableAccessoryView+Rx.swift",
"views/timetable/TKUITimetableAccessoryView.swift",
"views/trip overview/TKSegment+AccessoryViews.swift",
"views/trip overview/TKUIAttributionCell.swift",
"views/trip overview/TKUIAttributionView.swift",
"views/trip overview/TKUINotificationView.swift",
"views/trip overview/TKUIOccupancyView.swift",
"views/trip overview/TKUIPathChartView+TKSegment.swift",
"views/trip overview/TKUIPathChartView.swift",
"views/trip overview/TKUIPathChartable.swift",
"views/trip overview/TKUIPathFriendlinessView.swift",
"views/trip overview/TKUISegmentAlertCell.swift",
"views/trip overview/TKUISegmentCellHelper.swift",
"views/trip overview/TKUISegmentImpossibleCell.swift",
"views/trip overview/TKUISegmentMovingCell.swift",
"views/trip overview/TKUISegmentStationaryCell.swift",
"views/trip overview/TKUISegmentStationaryDoubleCell.swift",
"views/trip overview/TKUITrainOccupancyView.swift",
"views/trip overview/TKUITripTitleView.swift"
],
"target_dependencies" : [
"TripKit"
],
"type" : "library"
},
{
"c99name" : "TripKitTests",
"module_type" : "SwiftTarget",
"name" : "TripKitTests",
"path" : "Tests/TripKitTests",
"product_dependencies" : [
"RxCocoa"
],
"sources" : [
"TKTestCase.swift",
"parsing/RoutingAPIParserTest.swift",
"parsing/TKAPIParsingTest.swift",
"parsing/TKAlertModelTest.swift",
"parsing/TKBetterDecodingTest.swift",
"parsing/TKBookingAvailabilityTest.swift",
"parsing/TKBookingDecodingTest.swift",
"parsing/TKBuzzInfoProviderTest.swift",
"parsing/TKDeparturesModelTest.swift",
"parsing/TKJSONSanitizerTest.swift",
"parsing/TKLocationInfoTest.swift",
"parsing/TKModeHelperTest.swift",
"parsing/TKPolylineDecoderTest.swift",
"parsing/TKRegionManagerTest.swift",
"parsing/TKTripSegmentModeTitleTest.swift",
"restoration/TKLocationRestorationTest.swift",
"routing/TKRouterTest.swift",
"routing/TKSettingsTest.swift",
"routing/TKWaypointRouterTest.swift",
"searching/TKAnnotationClusterer.swift",
"searching/TKAutocompletionHighlightTest.swift",
"searching/TKAutocompletionResultTest.swift",
"searching/TKGeoJSONTest.swift",
"searching/TKPeliasTitleTest.swift"
],
"target_dependencies" : [
"TripKit"
],
"type" : "test"
},
{
"c99name" : "TripKitInterApp",
"module_type" : "SwiftTarget",
"name" : "TripKitInterApp",
"path" : "Sources/TripKitInterApp",
"product_memberships" : [
"TripKitInterApp",
"TripKitInterApp-Dynamic"
],
"sources" : [
"TKConfig+TKInterAppCommunicator.swift",
"TKInterAppCommunicator+ExternalActions.swift",
"TKInterAppCommunicator+TurnByTurn.swift",
"TKInterAppCommunicator.swift",
"TKInterAppExternalActionHandler.swift",
"handlers/TKPhoneActionHandler.swift",
"handlers/TKSMSActionHandler.swift",
"handlers/TKWebActionHandler.swift"
],
"target_dependencies" : [
"TripKit"
],
"type" : "library"
},
{
"c99name" : "TripKitAPI",
"module_type" : "SwiftTarget",
"name" : "TripKitAPI",
"path" : "Sources/TripKitAPI",
"product_memberships" : [
"TripKit",
"TripKitAPI",
"TripKitUI",
"TripKitInterApp",
"TripKit-Dynamic",
"TripKitUI-Dynamic",
"TripKitInterApp-Dynamic"
],
"sources" : [
"TKAPIConfig.swift",
"TKConfig.swift",
"TKCrossPlatform.swift",
"TKLog.swift",
"TKRegionManager.swift",
"TKRouter.swift",
"TKRoutingServer.swift",
"TKServer+Regions.swift",
"TKServer.swift",
"extensions/Array+Duplicates.swift",
"extensions/Codable+Helpers.swift",
"extensions/Date+Helpers.swift",
"extensions/NSError+customError.swift",
"extensions/UserDefaults+SharedDefaults.swift",
"model/API/AlertAPIModels.swift",
"model/API/BaseAPIModels.swift",
"model/API/DeparturesAPIModel.swift",
"model/API/EventAPIModel.swift",
"model/API/LatestAPIModel.swift",
"model/API/OpeningHoursAPIModel.swift",
"model/API/PricingTableAPIModel.swift",
"model/API/RegionInfoAPIModel.swift",
"model/API/RegionsAPIModel.swift",
"model/API/RouteAPIModel.swift",
"model/API/RoutingAPIModel.swift",
"model/API/ServiceAPIModel.swift",
"model/API/StopAPIModel.swift",
"model/API/TKAPI.swift",
"model/API/UserAPIModel.swift",
"model/API/VehicleAPIModel.swift",
"model/TKBookingData.swift",
"model/TKBookingTypes.swift",
"model/TKError.swift",
"model/TKLocalCost.swift",
"model/TKMapTiles.swift",
"model/TKMiniInstruction.swift",
"model/TKModeInfo.swift",
"model/TKRegion.swift",
"model/TKRoutingQuery.swift",
"model/TKTransportMode.swift",
"model/TKTripCostType.swift",
"model/TKTurnByTurnMode.swift",
"vendor/ASPolygonKit/CLLocationCoordinate2D+DecodePolylineString.swift",
"vendor/ASPolygonKit/CLLocationCoordinate2D+EncodePolylineString.swift",
"vendor/ASPolygonKit/Geometry.swift",
"vendor/ASPolygonKit/MKPolygon+Union.swift",
"vendor/ASPolygonKit/Polygon+GeoJSON.swift",
"vendor/ASPolygonKit/Polygon.swift",
"vendor/ASPolygonKit/QuickLookable.swift",
"vendor/BetterCodable/DefaultCodable.swift",
"vendor/BetterCodable/DefaultEmptyArray.swift",
"vendor/BetterCodable/DefaultFalse.swift",
"vendor/BetterCodable/DefaultLossyArray.swift",
"vendor/BetterCodable/DefaultNil.swift",
"vendor/BetterCodable/DefaultTrue.swift",
"vendor/BetterCodable/ISO8601OrSecondsSince1970.swift",
"vendor/BetterCodable/LossyArray.swift"
],
"type" : "library"
},
{
"c99name" : "TripKit",
"module_type" : "SwiftTarget",
"name" : "TripKit",
"path" : "Sources/TripKit",
"product_memberships" : [
"TripKit",
"TripKitUI",
"TripKitInterApp",
"TripKit-Dynamic",
"TripKitUI-Dynamic",
"TripKitInterApp-Dynamic"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/ar.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "ar"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/ar.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "ar"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/da.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "da"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/da.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "da"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/de.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/de.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/en-US.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "en-us"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/en-US.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "en-us"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/en.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/en.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/es.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "es"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/es.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "es"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/fi.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "fi"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/fi.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "fi"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/fr.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "fr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/fr.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "fr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/it.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "it"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/it.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "it"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/ja.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/ja.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/ko.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "ko"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/ko.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "ko"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/nb.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "nb"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/nb.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "nb"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/nl.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/nl.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/pt.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "pt"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/pt.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "pt"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/sv.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "sv"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/sv.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "sv"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/tr.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "tr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/tr.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "tr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/zh-Hans.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "zh-hans"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/zh-Hans.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "zh-hans"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/zh-Hant.lproj/Shared.strings",
"rule" : {
"process" : {
"localization" : "zh-hant"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/zh-Hant.lproj/TripKit.strings",
"rule" : {
"process" : {
"localization" : "zh-hant"
}
}
}
],
"sources" : [
"UIKit/TKStyleManager+UIKit.swift",
"UIKit/UIColor+TripKit.swift",
"UIKit/UIColor+TripKitDefault.swift",
"categories/MKMultiPoint+ClosestPoint.swift",
"categories/MapKit+Extensions.swift",
"categories/NSBundle+ProductName.swift",
"categories/NSDate+Formatting.swift",
"categories/NSManagedObject+Safely.swift",
"categories/NSManagedObjectContext+Async.swift",
"categories/NSManagedObjectContext+Fetch.swift",
"categories/NSNumber+Formatter.swift",
"categories/Optional+OrThrow.swift",
"categories/String+NonEmpty.swift",
"core/Loc+TripKit.swift",
"core/Loc+TripKitBookings.swift",
"core/Loc+TripKitInterApp.swift",
"core/Loc+TripKitUI.swift",
"core/Loc.swift",
"core/TKConfig+TripKit.swift",
"core/TKImage+TripKit.swift",
"core/TripKit.swift",
"helpers/API+ViewHelpers.swift",
"helpers/DataAttachable.swift",
"helpers/TKImageBuilder.swift",
"helpers/TKJSONCache.swift",
"helpers/TKJSONSanitizer.swift",
"helpers/TKModeHelper.swift",
"helpers/TKParserHelper.swift",
"helpers/TKRegion+RoutingMode.swift",
"helpers/classification/TKMetricClassifier.swift",
"helpers/classification/TKTripClassifier.swift",
"helpers/classification/TripRequest+Classify.swift",
"managers/TKCalendarManager+Autocompleting.swift",
"managers/TKCalendarManager.swift",
"managers/TKContactsManager+TKAutocompleting.swift",
"managers/TKContactsManager.swift",
"managers/TKLocationManager.swift",
"managers/TKOneOffLocationManager.swift",
"managers/TKPermissionManager+AuthorizationAlert.swift",
"managers/TKPermissionManager.swift",
"managers/TKRegionManager+TripKit.swift",
"managers/TKStyleManager.swift",
"model/API/GeocodeAPIModel.swift",
"model/API/LocationAPIModel.swift",
"model/API/ShareCarAPIModel.swift",
"model/CoreData/Alert+CoreDataClass.swift",
"model/CoreData/Alert+CoreDataProperties.swift",
"model/CoreData/DLSEntry+CoreDataClass.swift",
"model/CoreData/DLSEntry+CoreDataProperties.swift",
"model/CoreData/SegmentReference+CoreDataClass.swift",
"model/CoreData/SegmentReference+CoreDataProperties.swift",
"model/CoreData/SegmentReference+Data.swift",
"model/CoreData/SegmentReference+Flags.swift",
"model/CoreData/SegmentTemplate+CoreDataClass.swift",
"model/CoreData/SegmentTemplate+CoreDataProperties.swift",
"model/CoreData/SegmentTemplate+Data.swift",
"model/CoreData/SegmentTemplate+Flags.swift",
"model/CoreData/Service+CoreDataClass.swift",
"model/CoreData/Service+CoreDataProperties.swift",
"model/CoreData/Service+Visits.swift",
"model/CoreData/Shape+CoreDataClass.swift",
"model/CoreData/Shape+CoreDataProperties.swift",
"model/CoreData/Shape+Data.swift",
"model/CoreData/StopLocation+CoreDataClass.swift",
"model/CoreData/StopLocation+CoreDataProperties.swift",
"model/CoreData/StopLocation.swift",
"model/CoreData/StopVisits+CoreDataClass.swift",
"model/CoreData/StopVisits+CoreDataProperties.swift",
"model/CoreData/Trip+CoreDataClass.swift",
"model/CoreData/Trip+CoreDataProperties.swift",
"model/CoreData/Trip+Data.swift",
"model/CoreData/Trip+Flags.swift",
"model/CoreData/TripGroup+CoreDataClass.swift",
"model/CoreData/TripGroup+CoreDataProperties.swift",
"model/CoreData/TripRequest+CoreDataClass.swift",
"model/CoreData/TripRequest+CoreDataProperties.swift",
"model/CoreData/Vehicle+CoreDataClass.swift",
"model/CoreData/Vehicle+CoreDataProperties.swift",
"model/TKAPI+Icons.swift",
"model/TKAPI+MapKit.swift",
"model/TKAPI+TripKit.swift",
"model/TKAddressFormatter.swift",
"model/TKAnnotations.swift",
"model/TKBicycleAccessibility.swift",
"model/TKBooking+TripKit.swift",
"model/TKColoredRoute.swift",
"model/TKCoordinates.swift",
"model/TKDLSTable.swift",
"model/TKGeocodable.swift",
"model/TKInfoIcon.swift",
"model/TKLocationTypes.swift",
"model/TKModeInfo+Image.swift",
"model/TKModeInfo+TripKit.swift",
"model/TKNamedCoordinate.swift",
"model/TKPathFriendliness.swift",
"model/TKRoutePolyline.swift",
"model/TKSecureTransformers.swift",
"model/TKSegment+Alerts.swift",
"model/TKSegment+Images.swift",
"model/TKSegment+StationaryType.swift",
"model/TKSegment+TKTripSegment.swift",
"model/TKSegment+Ticket.swift",
"model/TKSegment.swift",
"model/TKSortableAnnotation.swift",
"model/TKStore.swift",
"model/TKTimeType.swift",
"model/TKTimetable.swift",
"model/TKTripAndSegments.swift",
"model/TKTripPattern.swift",
"model/TKVehicular.swift",
"model/TKWheelchairAccessibility.swift",
"search/TKAggregateGeocoder.swift",
"search/TKAnnotationClusterer.swift",
"search/TKAppleGeocoder.swift",
"search/TKAutocompletionResult+Icon.swift",
"search/TKAutocompletionResult+Score.swift",
"search/TKAutocompletionResult.swift",
"search/TKGeoJSON+NamedCoordinate.swift",
"search/TKGeoJSON.swift",
"search/TKGeocoderHelper.swift",
"search/TKGeocoding.swift",
"search/TKGeocodingResultScorer.swift",
"search/TKModeImageBuilder.swift",
"search/TKNamedCoordinate+Attribution.swift",
"search/TKNamedCoordinate+BuzzData.swift",
"search/TKPeliasGeocoder.swift",
"search/TKRegionAutocompleter.swift",
"search/TKRouteAutocompleter.swift",
"search/TKTripGoGeocoder.swift",
"server/TKBuzzInfoProvider+Routes.swift",
"server/TKBuzzInfoProvider.swift",
"server/TKDeparturesProvider.swift",
"server/TKLocationProvider.swift",
"server/TKNamedCoordinate+TKRegion.swift",
"server/TKQuickBookingHelper+Fake.swift",
"server/TKQuickBookingHelper.swift",
"server/TKRealTime.swift",
"server/TKRealTimeFetcher.swift",
"server/TKRegion+MapKit.swift",
"server/TKReporter.swift",
"server/TKRouter.swift",
"server/TKServer+ImageUpload.swift",
"server/TKServer+ModeImage.swift",
"server/TKServer+UserAccount.swift",
"server/TKSettings.swift",
"server/TKTransportMode+TripKit.swift",
"server/TKTripFetcher.swift",
"server/TKWaypointRouter.swift",
"server/parsing/SegmentTemplate+Parsing.swift",
"server/parsing/TKAPIToCoreDataConverter.swift",
"server/parsing/TKRoutingParser+Populate.swift",
"server/parsing/TKRoutingParser.swift",
"sharing/TKShareHelper+Parsing.swift",
"sharing/TKShareHelper.swift",
"sharing/TKShareURLProvider.swift",
"sharing/categories/StopLocation+Shareable.swift",
"sharing/categories/StopVisits+Shareable.swift",
"sharing/categories/TKSegment+Shareable.swift",
"sharing/categories/Trip+Shareable.swift",
"sharing/categories/TripRequest+Shareable.swift"
],
"target_dependencies" : [
"TripKitAPI"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/74] Write sources
[2/74] Copying TripKit.strings
[5/74] Copying Shared.strings
[10/74] Copying TripKit.strings
[10/74] Copying Shared.strings
[10/74] Copying TripKit.strings
[10/74] Copying Shared.strings
[21/74] Copying TripKit.strings
[21/74] Copying Shared.strings
[29/74] Copying TripKit.strings
[29/74] Copying Info.plist
[29/74] Copying TripKit.strings
[35/74] Write sources
[39/74] Copying Shared.strings
[40/74] Write sources
[40/74] Copying TGPlainExtendedCardView.xib
[40/74] Copying Localizable.strings
[40/74] Copying TGPageCardView.xib
[40/74] Copying TGCardViewController.xib
[40/74] Copying TGPlainCardView.xib
[41/74] Copying Info.plist
[42/74] Copying TGCardDefaultTitleView.xib
[44/74] Write sources
[47/74] Copying TGScrollExtendedCardView.xib
[47/74] Copying PrivacyInfo.xcprivacy
[47/74] Copying TGPageHeaderView.xib
[49/74] Copying TGScrollCardView.xib
[51/74] Copying PrivacyInfo.xcprivacy
[55/74] Write sources
[57/74] Copying PrivacyInfo.xcprivacy
[58/74] Write sources
[62/74] Write swift-version-2F0A5646E1D333AE.txt
[64/365] Emitting module RxSwift
[65/381] Compiling RxSwift AddRef.swift
[66/381] Compiling RxSwift Amb.swift
[67/381] Compiling RxSwift AnonymousDisposable.swift
[68/381] Compiling RxSwift AnonymousObserver.swift
[69/381] Compiling RxSwift AnyObserver.swift
[70/381] Compiling RxSwift AsMaybe.swift
[71/381] Compiling RxSwift AsSingle.swift
[72/381] Compiling RxSwift AsyncLock.swift
[73/381] Compiling RxSwift AsyncSubject.swift
[74/381] Compiling RxSwift AtomicInt.swift
[75/381] Compiling RxSwift Bag+Rx.swift
[76/381] Compiling RxSwift Bag.swift
[77/381] Compiling RxSwift BehaviorSubject.swift
[78/381] Compiling RxSwift BinaryDisposable.swift
[79/381] Compiling RxSwift Binder.swift
[80/381] Compiling RxSwift BooleanDisposable.swift
[81/381] Compiling Kingfisher Resource.swift
[82/381] Compiling Kingfisher Source.swift
[83/381] Compiling Kingfisher KF.swift
[84/381] Compiling Kingfisher KFOptionsSetter.swift
[85/381] Compiling Kingfisher Kingfisher.swift
[86/381] Compiling Kingfisher KingfisherError.swift
[87/381] Compiling Kingfisher KingfisherManager.swift
[88/381] Compiling Kingfisher KingfisherOptionsInfo.swift
[89/381] Compiling Kingfisher Filter.swift
[90/381] Compiling Kingfisher GIFAnimatedImage.swift
[91/381] Compiling Kingfisher GraphicsContext.swift
[92/381] Compiling Kingfisher Image.swift
[93/381] Compiling Kingfisher AuthenticationChallengeResponsable.swift
[94/381] Compiling Kingfisher ImageDataProcessor.swift
[95/381] Compiling Kingfisher ImageDownloader.swift
[96/381] Compiling Kingfisher ImageDownloaderDelegate.swift
[97/381] Compiling Kingfisher ImageModifier.swift
[98/381] Compiling Kingfisher ImagePrefetcher.swift
[99/381] Compiling Kingfisher ImageDrawing.swift
[100/381] Compiling Kingfisher ImageFormat.swift
[101/381] Compiling Kingfisher ImageProcessor.swift
[102/381] Compiling Kingfisher ImageProgressive.swift
[103/381] Compiling Kingfisher ImageTransition.swift
[104/381] Compiling Kingfisher Placeholder.swift
[105/381] Compiling Kingfisher RedirectHandler.swift
[106/381] Compiling Kingfisher RequestModifier.swift
[107/381] Compiling Kingfisher RetryStrategy.swift
[108/381] Compiling Kingfisher SessionDataTask.swift
[109/381] Compiling Kingfisher SessionDelegate.swift
[110/381] Compiling Kingfisher ImageBinder.swift
[111/381] Compiling Kingfisher ImageContext.swift
[112/381] Compiling Kingfisher KFAnimatedImage.swift
[113/381] Compiling Kingfisher KFImage.swift
[114/381] Compiling Kingfisher KFImageOptions.swift
[115/381] Compiling Kingfisher KFImageProtocol.swift
[116/381] Compiling Kingfisher KFImageRenderer.swift
[117/381] Compiling Kingfisher Box.swift
[118/381] Compiling Kingfisher CallbackQueue.swift
[119/381] Compiling Kingfisher Delegate.swift
[120/381] Compiling Kingfisher DisplayLink.swift
[121/381] Compiling Kingfisher ExtensionHelpers.swift
[122/381] Compiling Kingfisher Result.swift
[123/381] Compiling RxSwift GroupBy.swift
[124/381] Compiling RxSwift GroupedObservable.swift
[125/381] Compiling RxSwift HistoricalScheduler.swift
[126/381] Compiling RxSwift HistoricalSchedulerTimeConverter.swift
[127/381] Compiling RxSwift ImmediateSchedulerType.swift
[128/381] Compiling RxSwift Infallible+CombineLatest+Collection.swift
[129/381] Compiling RxSwift Infallible+CombineLatest+arity.swift
[130/381] Compiling RxSwift Infallible+Concurrency.swift
[131/381] Compiling RxSwift Infallible+Create.swift
[132/381] Compiling RxSwift Infallible+Debug.swift
[133/381] Compiling RxSwift Infallible+Operators.swift
[134/381] Compiling RxSwift Infallible+Zip+arity.swift
[135/381] Compiling RxSwift Infallible.swift
[136/381] Compiling RxSwift InfiniteSequence.swift
[137/381] Compiling RxSwift InvocableScheduledItem.swift
[138/381] Compiling RxSwift InvocableType.swift
[139/381] Compiling RxSwift Just.swift
[140/381] Compiling RxSwift Lock.swift
[141/381] Compiling RxSwift LockOwnerType.swift
[142/381] Compiling RxSwift MainScheduler.swift
[143/381] Compiling RxSwift Map.swift
[144/381] Compiling RxSwift Materialize.swift
[145/381] Compiling RxSwift Maybe.swift
[146/381] Compiling RxSwift Merge.swift
[147/381] Compiling RxSwift Multicast.swift
[148/381] Compiling RxSwift Rx.swift
[149/381] Compiling RxSwift RxMutableBox.swift
[150/381] Compiling RxSwift Sample.swift
[151/381] Compiling RxSwift Scan.swift
[152/381] Compiling RxSwift ScheduledDisposable.swift
[153/381] Compiling RxSwift ScheduledItem.swift
[154/381] Compiling RxSwift ScheduledItemType.swift
[155/381] Compiling RxSwift SchedulerServices+Emulation.swift
[156/381] Compiling RxSwift SchedulerType.swift
[157/381] Compiling RxSwift Sequence.swift
[158/381] Compiling RxSwift SerialDispatchQueueScheduler.swift
[159/381] Compiling RxSwift SerialDisposable.swift
[160/381] Compiling RxSwift ShareReplayScope.swift
[161/381] Compiling RxSwift Single.swift
[162/381] Compiling RxSwift SingleAssignmentDisposable.swift
[163/381] Compiling RxSwift SingleAsync.swift
[164/381] Compiling RxSwift Sink.swift
[165/381] Compiling RxSwift Skip.swift
[166/381] Compiling RxSwift SkipUntil.swift
[167/381] Compiling RxSwift SkipWhile.swift
[168/381] Compiling RxSwift StartWith.swift
[169/381] Compiling RxSwift SubjectType.swift
[170/381] Compiling RxSwift SubscribeOn.swift
[171/381] Compiling RxSwift SubscriptionDisposable.swift
[172/381] Compiling RxSwift SwiftSupport.swift
[173/381] Compiling RxSwift Switch.swift
[174/381] Compiling RxSwift SwitchIfEmpty.swift
[175/381] Compiling RxSwift SynchronizedDisposeType.swift
[176/381] Compiling RxSwift SynchronizedOnType.swift
[177/381] Compiling RxSwift SynchronizedUnsubscribeType.swift
[178/381] Compiling RxSwift TailRecursiveSink.swift
[179/381] Compiling RxSwift Take.swift
[180/381] Compiling RxSwift PrimitiveSequence+Concurrency.swift
[181/381] Compiling RxSwift PrimitiveSequence+Zip+arity.swift
[182/381] Compiling RxSwift PrimitiveSequence.swift
[183/381] Compiling RxSwift PriorityQueue.swift
[184/381] Compiling RxSwift Producer.swift
[185/381] Compiling RxSwift PublishSubject.swift
[186/381] Compiling RxSwift Queue.swift
[187/381] Compiling RxSwift Range.swift
[188/381] Compiling RxSwift Reactive.swift
[189/381] Compiling RxSwift RecursiveLock.swift
[190/381] Compiling RxSwift RecursiveScheduler.swift
[191/381] Compiling RxSwift Reduce.swift
[192/381] Compiling RxSwift RefCountDisposable.swift
[193/381] Compiling RxSwift Repeat.swift
[194/381] Compiling RxSwift ReplaySubject.swift
[195/381] Compiling RxSwift RetryWhen.swift
[196/381] Compiling RxSwift Never.swift
[197/381] Compiling RxSwift NopDisposable.swift
[198/381] Compiling RxSwift Observable+Concurrency.swift
[199/381] Compiling RxSwift Observable.swift
[200/381] Compiling RxSwift ObservableConvertibleType+Infallible.swift
[201/381] Compiling RxSwift ObservableConvertibleType.swift
[202/381] Compiling RxSwift ObservableType+Extensions.swift
[203/381] Compiling RxSwift ObservableType+PrimitiveSequence.swift
[204/381] Compiling RxSwift ObservableType.swift
[205/381] Compiling RxSwift ObserveOn.swift
[206/381] Compiling RxSwift ObserverBase.swift
[207/381] Compiling RxSwift ObserverType.swift
[208/381] Compiling RxSwift OperationQueueScheduler.swift
[209/381] Compiling RxSwift Optional.swift
[210/381] Compiling RxSwift Platform.Darwin.swift
[211/381] Compiling RxSwift Platform.Linux.swift
[212/381] Compiling GeoMonitor PrioritizedRegion.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)
[216/383] 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 {
[217/383] 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 {
[218/383] 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 {
/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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[225/383] Emitting module GeoMonitor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:80:28: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
78 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
79 |
80 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
81 |
82 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:127:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
125 |
126 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
127 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
128 |
129 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:187:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
185 | // MARK: - Location tracking
186 |
187 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
188 |
189 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:189:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
187 | @Published public var currentLocation: CLLocation?
188 |
189 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
190 | didSet {
191 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:128: error: 'authorizedWhenInUse' is unavailable in macOS
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
257 | ask(forBackground: true)
258 | } 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:253:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | ///
252 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
253 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:277:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
275 | if isMonitoring {
276 | if enableVisitMonitoring {
277 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | } else {
279 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:279:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
277 | locationManager.startMonitoringVisits()
278 | } else {
279 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:22:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:567:77: error: 'CLVisit' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | 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
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
[226/383] Compiling GeoMonitor GeoMonitor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:80:28: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
78 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
79 |
80 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
81 |
82 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:127:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
125 |
126 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
127 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
128 |
129 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:187:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
185 | // MARK: - Location tracking
186 |
187 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
188 |
189 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:189:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
187 | @Published public var currentLocation: CLLocation?
188 |
189 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
190 | didSet {
191 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:128: error: 'authorizedWhenInUse' is unavailable in macOS
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
257 | ask(forBackground: true)
258 | } 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:253:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | ///
252 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
253 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:277:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
275 | if isMonitoring {
276 | if enableVisitMonitoring {
277 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | } else {
279 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:279:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
277 | locationManager.startMonitoringVisits()
278 | } else {
279 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:22:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:567:77: error: 'CLVisit' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | 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
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:106:5: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
105 | locationManager = .init()
106 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | self.enabledKey = enabledKey
108 | if let enabledKey = enabledKey {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:109:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
:
107 | self.enabledKey = enabledKey
108 | if let enabledKey = enabledKey {
109 | 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
110 | } else {
111 | enableInBackground = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:111:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
:
109 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
110 | } else {
111 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 |
<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:117:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
:
115 |
116 | locationManager.delegate = self
117 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 |
119 | #if !DEBUG
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:133:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
130 |
131 | /// Whether it's possible to bring up the system prompt to ask for access to the device's location
132 | public var canAsk: Bool {
| `- note: add @available attribute to enclosing property
133 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
134 | case .notDetermined:
135 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:144:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
145 | case .authorizedAlways:
146 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:146:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
146 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | // Note: We do NOT update `enableInBackground` here, as that's the user's
148 | // 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:146:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
146 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
147 | // Note: We do NOT update `enableInBackground` here, as that's the user's
148 | // 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:151:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
149 | // app has permissions.
150 | case .authorizedWhenInUse:
151 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | enableInBackground = false
153 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:151:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
149 | // app has permissions.
150 | case .authorizedWhenInUse:
151 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
152 | enableInBackground = false
153 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:152:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
150 | case .authorizedWhenInUse:
151 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
152 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | case .denied, .notDetermined, .restricted:
154 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:154:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
152 | enableInBackground = false
153 | case .denied, .notDetermined, .restricted:
154 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | enableInBackground = false
156 | @unknown default:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:155:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
153 | case .denied, .notDetermined, .restricted:
154 | hasAccess = false
155 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | @unknown default:
157 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:157:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
155 | enableInBackground = false
156 | @unknown default:
157 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | enableInBackground = false
159 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:158:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
156 | @unknown default:
157 | hasAccess = false
158 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:164:26: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
160 | }
161 |
162 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
163 | if forBackground {
164 | if locationManager.authorizationStatus == .notDetermined {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | // Need to *first* ask for when in use, and only for always if that
166 | // is granted.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:176:25: error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
160 | }
161 |
162 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
163 | if forBackground {
164 | if locationManager.authorizationStatus == .notDetermined {
:
174 | } else {
175 | self.askHandler = handler
176 | locationManager.requestAlwaysAuthorization()
| |- error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
177 | }
178 | } 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:180:23: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
160 | }
161 |
162 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
163 | if forBackground {
164 | if locationManager.authorizationStatus == .notDetermined {
:
178 | } else {
179 | self.askHandler = handler
180 | locationManager.requestWhenInUseAuthorization()
| |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:222:21: error: 'requestLocation()' is only available in macOS 10.14 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
220 | let originalAccuracy = locationManager.desiredAccuracy
221 | locationManager.desiredAccuracy = desiredAccuracy
222 | locationManager.requestLocation()
| |- error: 'requestLocation()' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
223 |
224 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:225:7: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
223 |
224 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [weak self] _ in
225 | Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | await self?.notify(.failure(LocationFetchError.noLocationFetchedInTime))
227 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:225:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
223 |
224 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [weak self] _ in
225 | Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | await self?.notify(.failure(LocationFetchError.noLocationFetchedInTime))
227 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
228 | }
229 |
230 | 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
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:233:22: error: 'resume(with:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
233 | continuation.resume(with: result)
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
234 | })
235 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230: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:230:54: note: expanded code originates here
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
228 | }
229 |
230 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|228 |
|229 |
|230 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------------
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
macro expansion #isolation:1:1: error: 'MainActor' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:54: note: expanded code originates here
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
228 | }
229 |
230 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|228 |
|229 |
|230 | #isolation
| +--- macro expansion #isolation -------------------------------
| |1 | nil
| | | `- error: 'MainActor' is only available in macOS 10.15 or newer
| +--------------------------------------------------------------
+---------------------------------------------------------------------------------------------------------------
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:291:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
289 |
290 | isMonitoring = true
291 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
292 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
293 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:292:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
290 | isMonitoring = true
291 | locationManager.allowsBackgroundLocationUpdates = true
292 | 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
293 |
294 | Task {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:294:5: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
292 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
293 |
294 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | // Check if in region, which will also re-monitor the current location
296 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:294:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
292 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
293 |
294 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | // Check if in region, which will also re-monitor the current location
296 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:301:23: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
299 |
300 | if enableVisitMonitoring {
301 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | }
303 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:311:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
303 | }
304 |
305 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
306 | dispatchPrecondition(condition: .onQueue(.main))
307 |
:
309 |
310 | isMonitoring = false
311 | locationManager.allowsBackgroundLocationUpdates = false
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | locationManager.pausesLocationUpdatesAutomatically = true
313 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:312:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
303 | }
304 |
305 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
306 | dispatchPrecondition(condition: .onQueue(.main))
307 |
:
310 | isMonitoring = false
311 | locationManager.allowsBackgroundLocationUpdates = false
312 | locationManager.pausesLocationUpdatesAutomatically = true
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
313 |
314 | stopMonitoringCurrentArea()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:315:21: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
303 | }
304 |
305 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
306 | dispatchPrecondition(condition: .onQueue(.main))
307 |
:
313 |
314 | stopMonitoringCurrentArea()
315 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
316 | }
317 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:417:18: error: 'cancel()' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
415 | // When this fires in the background we end up with many of these somehow
416 |
417 | monitorTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | monitorTask = Task {
419 | if let delay {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:418:19: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
416 |
417 | monitorTask?.cancel()
418 | monitorTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:418:19: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
416 |
417 | monitorTask?.cancel()
418 | monitorTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:420:19: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
418 | monitorTask = Task {
419 | if let delay {
420 | 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
421 | try Task.checkCancellation()
422 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:420:24: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
418 | monitorTask = Task {
419 | if let delay {
420 | 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
421 | try Task.checkCancellation()
422 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:421:13: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
421 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
422 | }
423 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:421:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
421 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
422 | }
423 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:429:12: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
426 | }
427 |
428 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
429 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
430 |
431 | dispatchPrecondition(condition: .onQueue(.main))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:429:17: error: 'isCancelled' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
426 | }
427 |
428 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
429 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
430 |
431 | dispatchPrecondition(condition: .onQueue(.main))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:518:5: error: 'Task' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
507 | dispatchPrecondition(condition: .onQueue(.main))
508 |
:
516 | }
517 |
518 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | // Make sure this is still a *current* region => update data
520 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:518:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
507 | dispatchPrecondition(condition: .onQueue(.main))
508 |
:
516 | }
517 |
518 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | // Make sure this is still a *current* region => update data
520 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:561:5: error: 'Task' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
547 | }
548 |
549 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
550 | dispatchPrecondition(condition: .onQueue(.main))
551 |
:
559 | }
560 |
561 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | // 3. When leaving the current location, fetch...
563 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:561:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
547 | }
548 |
549 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
550 | dispatchPrecondition(condition: .onQueue(.main))
551 |
:
559 | }
560 |
561 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | // 3. When leaving the current location, fetch...
563 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:582:5: error: 'Task' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
:
580 | }
581 |
582 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
583 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
584 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:582:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
:
580 | }
581 |
582 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
583 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
584 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:605:5: error: setter for 'currentLocation' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
586 | }
587 |
588 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
589 | #if DEBUG
590 | print("GeoMonitor updated locations -> \(locations)")
:
603 | }
604 |
605 | self.currentLocation = latestAccurate
| |- error: setter for 'currentLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
606 |
607 | notify(.success(latestAccurate))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:630:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
621 | }
622 |
623 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
| `- note: add @available attribute to enclosing instance method
624 | dispatchPrecondition(condition: .onQueue(.main))
625 |
:
628 | askHandler = { _ in }
629 |
630 | switch manager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
631 | case .authorizedAlways, .authorizedWhenInUse:
632 | if isMonitoring {
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/TripKit.xcassets
/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/TripKitModel.xcdatamodeld
warning: 'spi-builder-workspace': found 38 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUINotificationView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/controller/TKUISectionedAlertViewController.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentAlertCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceNumberCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceVisitCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIProgressCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUIAttributionCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceHeaderView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUITripModeByModeHeader.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/controller/TKUIAttributionTableViewController.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUILoadingAlertView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIRoutingSupportView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUINearbyCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUIAlertCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIResultsAccessoryView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIResultsTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIRoutingQueryInputTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUITripCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/Resources/TripKitUI.xcassets
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUIGroupedAlertCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUISectionedAlertTableHeader.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceHeaderMiniView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/segment cards/TKUISegmentDirectionCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/segment cards/TKUISegmentTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentMovingCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentStationaryDoubleCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUITripTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUITimetableAccessoryView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUIPathFriendlinessView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUIDepartureCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUIModePickerCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentStationaryCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUIHomeCustomizerCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUITripBoyView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/segment cards/TKUISegmentInstructionsView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentImpossibleCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUIEmptyAlertView.xib
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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/12] Write swift-version-2F0A5646E1D333AE.txt
[2/303] Compiling GeoMonitor PrioritizedRegion.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/303] Emitting module GeoMonitor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:80:28: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
78 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
79 |
80 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
81 |
82 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:127:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
125 |
126 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
127 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
128 |
129 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:187:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
185 | // MARK: - Location tracking
186 |
187 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
188 |
189 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:189:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
187 | @Published public var currentLocation: CLLocation?
188 |
189 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
190 | didSet {
191 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:128: error: 'authorizedWhenInUse' is unavailable in macOS
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
257 | ask(forBackground: true)
258 | } 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:253:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | ///
252 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
253 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:277:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
275 | if isMonitoring {
276 | if enableVisitMonitoring {
277 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | } else {
279 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:279:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
277 | locationManager.startMonitoringVisits()
278 | } else {
279 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:22:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:567:77: error: 'CLVisit' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | 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
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
[4/303] Compiling GeoMonitor GeoMonitor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:80:28: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
78 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
79 |
80 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
81 |
82 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:127:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
125 |
126 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
127 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
128 |
129 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:187:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
185 | // MARK: - Location tracking
186 |
187 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
188 |
189 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:189:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
187 | @Published public var currentLocation: CLLocation?
188 |
189 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
190 | didSet {
191 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | 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
257 | ask(forBackground: true)
258 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:256:128: error: 'authorizedWhenInUse' is unavailable in macOS
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
256 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
257 | ask(forBackground: true)
258 | } 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:253:4: error: 'Published' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | ///
252 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
253 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
254 | didSet {
255 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:277:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
275 | if isMonitoring {
276 | if enableVisitMonitoring {
277 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | } else {
279 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:279:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
277 | locationManager.startMonitoringVisits()
278 | } else {
279 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:22:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:567:77: error: 'CLVisit' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | 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
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:106:5: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
105 | locationManager = .init()
106 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | self.enabledKey = enabledKey
108 | if let enabledKey = enabledKey {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:109:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
:
107 | self.enabledKey = enabledKey
108 | if let enabledKey = enabledKey {
109 | 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
110 | } else {
111 | enableInBackground = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:111:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
:
109 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
110 | } else {
111 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 |
<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:117:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
100 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
101 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
102 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
103 | fetchSource = dataSource
104 | eventHandler = onEvent
:
115 |
116 | locationManager.delegate = self
117 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 |
119 | #if !DEBUG
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:133:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
130 |
131 | /// Whether it's possible to bring up the system prompt to ask for access to the device's location
132 | public var canAsk: Bool {
| `- note: add @available attribute to enclosing property
133 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
134 | case .notDetermined:
135 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:144:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
145 | case .authorizedAlways:
146 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:146:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
146 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | // Note: We do NOT update `enableInBackground` here, as that's the user's
148 | // 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:146:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
146 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
147 | // Note: We do NOT update `enableInBackground` here, as that's the user's
148 | // 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:151:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
149 | // app has permissions.
150 | case .authorizedWhenInUse:
151 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | enableInBackground = false
153 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:151:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
149 | // app has permissions.
150 | case .authorizedWhenInUse:
151 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
152 | enableInBackground = false
153 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:152:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
150 | case .authorizedWhenInUse:
151 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
152 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | case .denied, .notDetermined, .restricted:
154 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:154:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
152 | enableInBackground = false
153 | case .denied, .notDetermined, .restricted:
154 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | enableInBackground = false
156 | @unknown default:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:155:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
153 | case .denied, .notDetermined, .restricted:
154 | hasAccess = false
155 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | @unknown default:
157 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:157:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
155 | enableInBackground = false
156 | @unknown default:
157 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | enableInBackground = false
159 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:158:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
141 | }
142 |
143 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
144 | switch locationManager.authorizationStatus {
145 | case .authorizedAlways:
:
156 | @unknown default:
157 | hasAccess = false
158 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:164:26: error: 'authorizationStatus' is only available in macOS 11.0 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
160 | }
161 |
162 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
163 | if forBackground {
164 | if locationManager.authorizationStatus == .notDetermined {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | // Need to *first* ask for when in use, and only for always if that
166 | // is granted.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:176:25: error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
160 | }
161 |
162 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
163 | if forBackground {
164 | if locationManager.authorizationStatus == .notDetermined {
:
174 | } else {
175 | self.askHandler = handler
176 | locationManager.requestAlwaysAuthorization()
| |- error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
177 | }
178 | } 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:180:23: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
160 | }
161 |
162 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
163 | if forBackground {
164 | if locationManager.authorizationStatus == .notDetermined {
:
178 | } else {
179 | self.askHandler = handler
180 | locationManager.requestWhenInUseAuthorization()
| |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
181 | }
182 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:222:21: error: 'requestLocation()' is only available in macOS 10.14 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
220 | let originalAccuracy = locationManager.desiredAccuracy
221 | locationManager.desiredAccuracy = desiredAccuracy
222 | locationManager.requestLocation()
| |- error: 'requestLocation()' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
223 |
224 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:225:7: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
223 |
224 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [weak self] _ in
225 | Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | await self?.notify(.failure(LocationFetchError.noLocationFetchedInTime))
227 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:225:7: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
223 |
224 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [weak self] _ in
225 | Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | await self?.notify(.failure(LocationFetchError.noLocationFetchedInTime))
227 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
228 | }
229 |
230 | 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
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:233:22: error: 'resume(with:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
233 | continuation.resume(with: result)
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
234 | })
235 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230: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:230:54: note: expanded code originates here
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
228 | }
229 |
230 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|228 |
|229 |
|230 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------------
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
macro expansion #isolation:1:1: error: 'MainActor' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:54: note: expanded code originates here
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
205 | private var fetchTimer: Timer?
206 |
207 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
208 | guard hasAccess else {
209 | throw LocationFetchError.accessNotProvided
:
228 | }
229 |
230 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|228 |
|229 |
|230 | #isolation
| +--- macro expansion #isolation -------------------------------
| |1 | nil
| | | `- error: 'MainActor' is only available in macOS 10.15 or newer
| +--------------------------------------------------------------
+---------------------------------------------------------------------------------------------------------------
231 | withNextLocation.append({ [unowned self] result in
232 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:291:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
289 |
290 | isMonitoring = true
291 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
292 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
293 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:292:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
290 | isMonitoring = true
291 | locationManager.allowsBackgroundLocationUpdates = true
292 | 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
293 |
294 | Task {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:294:5: error: 'Task' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
292 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
293 |
294 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | // Check if in region, which will also re-monitor the current location
296 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:294:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
292 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
293 |
294 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | // Check if in region, which will also re-monitor the current location
296 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:301:23: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
283 | }
284 |
285 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
286 | dispatchPrecondition(condition: .onQueue(.main))
287 |
:
299 |
300 | if enableVisitMonitoring {
301 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | }
303 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:311:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
303 | }
304 |
305 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
306 | dispatchPrecondition(condition: .onQueue(.main))
307 |
:
309 |
310 | isMonitoring = false
311 | locationManager.allowsBackgroundLocationUpdates = false
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | locationManager.pausesLocationUpdatesAutomatically = true
313 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:312:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
303 | }
304 |
305 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
306 | dispatchPrecondition(condition: .onQueue(.main))
307 |
:
310 | isMonitoring = false
311 | locationManager.allowsBackgroundLocationUpdates = false
312 | locationManager.pausesLocationUpdatesAutomatically = true
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
313 |
314 | stopMonitoringCurrentArea()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:315:21: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
20 | @available(iOS 14.0, *)
21 | @MainActor
22 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
23 | enum Constants {
24 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
303 | }
304 |
305 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
306 | dispatchPrecondition(condition: .onQueue(.main))
307 |
:
313 |
314 | stopMonitoringCurrentArea()
315 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
316 | }
317 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:417:18: error: 'cancel()' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
415 | // When this fires in the background we end up with many of these somehow
416 |
417 | monitorTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | monitorTask = Task {
419 | if let delay {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:418:19: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
416 |
417 | monitorTask?.cancel()
418 | monitorTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:418:19: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
416 |
417 | monitorTask?.cancel()
418 | monitorTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:420:19: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
418 | monitorTask = Task {
419 | if let delay {
420 | 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
421 | try Task.checkCancellation()
422 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:420:24: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
418 | monitorTask = Task {
419 | if let delay {
420 | 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
421 | try Task.checkCancellation()
422 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:421:13: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
421 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
422 | }
423 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:421:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
413 | dispatchPrecondition(condition: .onQueue(.main))
414 |
:
419 | if let delay {
420 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
421 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
422 | }
423 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:429:12: error: 'Task' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
426 | }
427 |
428 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
429 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
430 |
431 | dispatchPrecondition(condition: .onQueue(.main))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:429:17: error: 'isCancelled' is only available in macOS 10.15 or newer
408 |
409 | @available(iOS 14.0, *)
410 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
411 |
412 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
426 | }
427 |
428 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
429 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
430 |
431 | dispatchPrecondition(condition: .onQueue(.main))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:518:5: error: 'Task' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
507 | dispatchPrecondition(condition: .onQueue(.main))
508 |
:
516 | }
517 |
518 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | // Make sure this is still a *current* region => update data
520 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:518:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
507 | dispatchPrecondition(condition: .onQueue(.main))
508 |
:
516 | }
517 |
518 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | // Make sure this is still a *current* region => update data
520 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:561:5: error: 'Task' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
547 | }
548 |
549 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
550 | dispatchPrecondition(condition: .onQueue(.main))
551 |
:
559 | }
560 |
561 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | // 3. When leaving the current location, fetch...
563 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:561:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
547 | }
548 |
549 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
550 | dispatchPrecondition(condition: .onQueue(.main))
551 |
:
559 | }
560 |
561 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | // 3. When leaving the current location, fetch...
563 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:582:5: error: 'Task' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
:
580 | }
581 |
582 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
583 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
584 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:582:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
565 | }
566 |
567 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
568 | dispatchPrecondition(condition: .onQueue(.main))
569 |
:
580 | }
581 |
582 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
583 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
584 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:605:5: error: setter for 'currentLocation' is only available in macOS 10.15 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
586 | }
587 |
588 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
589 | #if DEBUG
590 | print("GeoMonitor updated locations -> \(locations)")
:
603 | }
604 |
605 | self.currentLocation = latestAccurate
| |- error: setter for 'currentLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
606 |
607 | notify(.success(latestAccurate))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:630:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
502 |
503 | @available(iOS 14.0, *)
504 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
505 |
506 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
621 | }
622 |
623 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
| `- note: add @available attribute to enclosing instance method
624 | dispatchPrecondition(condition: .onQueue(.main))
625 |
:
628 | askHandler = { _ in }
629 |
630 | switch manager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
631 | case .authorizedAlways, .authorizedWhenInUse:
632 | if isMonitoring {
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/TripKitModel.xcdatamodeld
/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/TripKit.xcassets
warning: 'spi-builder-workspace': found 38 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIProgressCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIRoutingQueryInputTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIRoutingSupportView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceHeaderView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceVisitCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUIAttributionCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUIGroupedAlertCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentImpossibleCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUIEmptyAlertView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUIModePickerCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/controller/TKUIAttributionTableViewController.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/segment cards/TKUISegmentInstructionsView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentStationaryCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUILoadingAlertView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/segment cards/TKUISegmentTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUIDepartureCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUINearbyCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUITripBoyView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/segment cards/TKUISegmentDirectionCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/Resources/TripKitUI.xcassets
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUINotificationView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUITripModeByModeHeader.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUITripCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUIPathFriendlinessView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUISectionedAlertTableHeader.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentAlertCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentStationaryDoubleCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIResultsAccessoryView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUITripTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/results/TKUIResultsTitleView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceHeaderMiniView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/controller/TKUISectionedAlertViewController.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/alerts/TKUIAlertCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUIServiceNumberCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/timetable/TKUITimetableAccessoryView.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/TKUIHomeCustomizerCell.xib
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/views/trip overview/TKUISegmentMovingCell.xib
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.1 macosSpm