Build Information
Failed to build TripKit, reference 4.7.1 (1a62a5
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 19:04:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
"view model/TKUIHomeViewModel+Content.swift",
"view model/TKUIHomeViewModel+Next.swift",
"view model/TKUIHomeViewModel+Search.swift",
"view model/TKUIHomeViewModel.swift",
"view model/TKUILocationViewModel.swift",
"view model/TKUINearbyViewModel+Content.swift",
"view model/TKUINearbyViewModel+HomeCard.swift",
"view model/TKUINearbyViewModel.swift",
"view model/TKUIRoutingQueryInputViewModel+State.swift",
"view model/TKUIRoutingQueryInputViewModel.swift",
"view model/TKUIRoutingResultsViewModel+Advisory.swift",
"view model/TKUIRoutingResultsViewModel+CalculateRoutes.swift",
"view model/TKUIRoutingResultsViewModel+Content.swift",
"view model/TKUIRoutingResultsViewModel+RealTime.swift",
"view model/TKUIRoutingResultsViewModel+ToggleModes.swift",
"view model/TKUIRoutingResultsViewModel.swift",
"view model/TKUISectionedAlertViewModel.swift",
"view model/TKUISegmentDirectionsViewModel+Content.swift",
"view model/TKUISegmentDirectionsViewModel.swift",
"view model/TKUIServiceViewModel+Content.swift",
"view model/TKUIServiceViewModel+Fetch.swift",
"view model/TKUIServiceViewModel+MapContent.swift",
"view model/TKUIServiceViewModel.swift",
"view model/TKUITimetableViewModel+Content.swift",
"view model/TKUITimetableViewModel.swift",
"view model/TKUITripModeByModeViewModel.swift",
"view model/TKUITripOverviewViewModel+Content.swift",
"view model/TKUITripOverviewViewModel+Fetch.swift",
"view model/TKUITripOverviewViewModel.swift",
"views/TKUIAutocompletionResultCell.swift",
"views/TKUICardActions.swift",
"views/TKUICardActionsViewFactory.swift",
"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/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/TKUICompactAlertCell.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/TKUITripCell+Formatter.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/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",
"polygon/ASPolygonKitTests.swift",
"restoration/TKLocationRestorationTest.swift",
"routing/TKRouterTest.swift",
"routing/TKSettingsTest.swift",
"routing/TKWaypointRouterTest.swift",
"searching/TKAnnotationClusterer.swift",
"searching/TKGeoJSONTest.swift",
"searching/TKPeliasTitleTest.swift"
],
"target_dependencies" : [
"TripKit"
],
"type" : "test"
},
{
"c99name" : "TripKitObjcTests",
"module_type" : "ClangTarget",
"name" : "TripKitObjcTests",
"path" : "Tests/TripKitObjcTests",
"sources" : [
"TKAutocompletionResultTest.m"
],
"target_dependencies" : [
"TripKitObjc"
],
"type" : "test"
},
{
"c99name" : "TripKitObjc",
"module_type" : "ClangTarget",
"name" : "TripKitObjc",
"path" : "Sources/TripKitObjc",
"product_memberships" : [
"TripKit",
"TripKitUI"
],
"sources" : [
"MKOverlay+NSCoding.m",
"NSDate+Helpers.m",
"NSManagedObject+TKPersistence.m",
"NSManagedObjectContext+SimpleFetch.m",
"NSString+Sizing.m",
"NSUserDefaults+SharedDefaults.m",
"TKAutocompletionResult.m",
"TKConfig.m",
"TKConstants.m",
"TKLocationHelper.m",
"TKLocationManager.m",
"TKPermissionManager.m",
"TKServer.m",
"TKSettings.m",
"TKStyleManager+UIKit.m",
"TKStyleManager.m",
"TKTransportModes.m",
"TKTripKit.m",
"UIFont+CustomFonts.m"
],
"type" : "library"
},
{
"c99name" : "TripKit",
"module_type" : "SwiftTarget",
"name" : "TripKit",
"path" : "Sources/TripKit",
"product_memberships" : [
"TripKit",
"TripKitUI"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/TripKit.xcassets",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/TripKit/Resources/TripKitModel.xcdatamodeld",
"rule" : {
"process" : {
}
}
},
{
"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/Array+Duplicates.swift",
"categories/Codable+Helpers.swift",
"categories/Date+Helpers.swift",
"categories/MKMultiPoint+ClosestPoint.swift",
"categories/MapKit+Extensions.swift",
"categories/NSBundle+ProductName.swift",
"categories/NSDate+Formatting.swift",
"categories/NSError+customError.swift",
"categories/NSManagedObject+Safely.swift",
"categories/NSManagedObjectContext+Fetch.swift",
"categories/NSNumber+Formatter.swift",
"categories/NSUserDefaults+SharedDefaults.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.swift",
"core/TKCrossPlatform.swift",
"core/TKImage+TripKit.swift",
"core/TKLog.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/TKPermissionManager+AuthorizationAlert.swift",
"managers/TKRegionManager.swift",
"managers/TKStyleManager.swift",
"model/API/API.swift",
"model/API/AlertAPIModels.swift",
"model/API/BaseAPIModels.swift",
"model/API/DeparturesAPIModel.swift",
"model/API/EventAPIModel.swift",
"model/API/GeocodeAPIModel.swift",
"model/API/LatestAPIModel.swift",
"model/API/LocationAPIModel.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/ShareCarAPIModel.swift",
"model/API/StopAPIModel.swift",
"model/API/UserAPIModel.swift",
"model/API/VehicleAPIModel.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/TKAddressFormatter.swift",
"model/TKAnnotations.swift",
"model/TKBookingTypes.swift",
"model/TKColoredRoute.swift",
"model/TKCoordinates.swift",
"model/TKDLSTable.swift",
"model/TKGeocodable.swift",
"model/TKInfoIcon.swift",
"model/TKLocalCost.swift",
"model/TKLocationTypes.swift",
"model/TKMapTiles.swift",
"model/TKMiniInstruction.swift",
"model/TKModeInfo+Image.swift",
"model/TKModeInfo.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/TKTimetable.swift",
"model/TKTripAndSegments.swift",
"model/TKTripPattern.swift",
"model/TKTurnByTurnMode.swift",
"model/TKVehicular.swift",
"model/TKWheelchairAccessibility.swift",
"search/TKAggregateGeocoder.swift",
"search/TKAnnotationClusterer.swift",
"search/TKAppleGeocoder.swift",
"search/TKAutocompletionResult+Icon.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/TKError.swift",
"server/TKLocationProvider.swift",
"server/TKNamedCoordinate+TKRegion.swift",
"server/TKQuickBookingHelper+Fake.swift",
"server/TKQuickBookingHelper.swift",
"server/TKRealTime.swift",
"server/TKRealTimeFetcher.swift",
"server/TKRegion.swift",
"server/TKReporter.swift",
"server/TKRouter.swift",
"server/TKRoutingServer.swift",
"server/TKServer+Image.swift",
"server/TKServer+Regions.swift",
"server/TKServer+UserAccount.swift",
"server/TKServer.swift",
"server/TKSettings+Config.swift",
"server/TKSettings.swift",
"server/TKTransportModes.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",
"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"
],
"target_dependencies" : [
"TripKitObjc"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
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/117] Write sources
[1/117] Copying TKUITripTitleView.xib
[1/117] Copying TKUITripCell.xib
[1/117] Copying TKUITripBoyView.xib
[2/117] Copying TKUITimetableAccessoryView.xib
[5/117] Copying TKUIServiceVisitCell.xib
[5/117] Copying TKUIServiceTitleView.xib
[7/117] Copying TKUIServiceNumberCell.xib
[7/117] Copying TKUIServiceHeaderView.xib
[7/117] Copying TKUIServiceHeaderMiniView.xib
[7/117] Copying TKUISegmentTitleView.xib
[7/117] Copying TKUISegmentStationaryDoubleCell.xib
[7/117] Copying TKUISegmentStationaryCell.xib
[7/117] Copying TKUISegmentMovingCell.xib
[7/117] Copying TKUISegmentInstructionsView.xib
[7/117] Copying TKUISegmentImpossibleCell.xib
[7/117] Copying TKUISegmentDirectionCell.xib
[7/117] Copying TKUISegmentAlertCell.xib
[7/117] Copying TKUISectionedAlertViewController.xib
[7/117] Copying TKUISectionedAlertTableHeader.xib
[7/117] Copying TKUIRoutingSupportView.xib
[7/117] Copying TKUIRoutingQueryInputTitleView.xib
[7/117] Copying TKUIResultsTitleView.xib
[19/117] Copying TKUIResultsAccessoryView.xib
[24/117] Copying TKUIProgressCell.xib
[24/117] Copying TKUIPathFriendlinessView.xib
[24/117] Copying TKUINotificationView.xib
[27/117] Copying TKUINearbyCell.xib
[27/117] Copying TKUIModePickerCell.xib
[27/117] Copying TKUILoadingAlertView.xib
[27/117] Copying TKUIHomeCustomizerCell.xib
[27/117] Copying TKUIGroupedAlertCell.xib
[27/117] Copying TKUIEmptyAlertView.xib
[27/117] Copying TKUIDepartureCell.xib
[27/117] Copying TKUIAttributionTableViewController.xib
[30/117] Copying TKUIAttributionCell.xib
[33/117] Copying TKUIAlertCell.xib
[35/117] Copying Info.plist
[37/117] Copying TripKit.strings
[39/117] Copying Shared.strings
[39/117] Copying TripKit.strings
[39/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[42/117] Copying TripKit.strings
[42/117] Copying Shared.strings
[44/117] Copying TripKit.strings
[51/117] Copying Shared.strings
[58/117] Copying TripKit.strings
[59/117] Copying Shared.strings
[66/117] Copying TripKit.strings
[73/117] Copying Shared.strings
[74/117] Copying TripKitModel.xcdatamodeld
[75/117] Copying Info.plist
[76/117] Write swift-version-2F0A5646E1D333AE.txt
[77/117] Copying TripKitUI.xcassets
[78/117] Compiling TripKitObjc TKStyleManager+UIKit.m
[78/117] Compiling TripKitObjc UIFont+CustomFonts.m
[80/117] Copying TripKit.xcassets
[81/117] Compiling TripKitObjc TKPermissionManager.m
[82/117] Compiling TripKitObjc TKConfig.m
[83/117] Compiling TripKitObjc TKLocationHelper.m
[84/117] Compiling TripKitObjc NSUserDefaults+SharedDefaults.m
[85/117] Compiling TripKitObjc TKConstants.m
[86/117] Compiling TripKitObjc NSManagedObject+TKPersistence.m
[87/117] Compiling TripKitObjc TKTripKit.m
[88/117] Compiling TripKitObjc NSDate+Helpers.m
[89/117] Write sources
[90/117] Copying Localizable.strings
[91/117] Copying TGScrollCardView.xib
[92/117] Copying TGPlainCardView.xib
[93/117] Copying TGPageHeaderView.xib
[94/117] Copying TGPageCardView.xib
[95/117] Copying TGCardViewController.xib
[96/117] Copying TGCardDefaultTitleView.xib
[97/117] Copying Info.plist
[98/117] Write sources
[100/117] Compiling TripKitObjc NSManagedObjectContext+SimpleFetch.m
[101/117] Compiling TripKitObjc TKSettings.m
[102/117] Write sources
[106/348] Compiling TripKitObjc TKTransportModes.m
[107/351] Compiling TripKitObjc NSString+Sizing.m
[108/351] Compiling TripKitObjc TKStyleManager.m
[109/351] Compiling TripKitObjc TKServer.m
[110/351] Compiling TripKitObjc TKLocationManager.m
[111/351] Compiling TripKitObjc MKOverlay+NSCoding.m
[112/351] Compiling TripKitObjc TKAutocompletionResult.m
[114/528] Emitting module RxSwift
[115/528] Compiling TripKit TKContactsManager.swift
[116/528] Compiling TripKit TKLocationManager.swift
[117/528] Compiling TripKit TKPermissionManager+AuthorizationAlert.swift
[118/528] Compiling TripKit TKRegionManager.swift
[119/528] Compiling TripKit TKStyleManager.swift
[120/528] Compiling TripKit API.swift
[121/528] Compiling TripKit AlertAPIModels.swift
[122/528] Compiling TripKit BaseAPIModels.swift
[123/528] Compiling TripKit DeparturesAPIModel.swift
[124/528] Compiling TripKit EventAPIModel.swift
[125/528] Compiling TripKit GeocodeAPIModel.swift
[126/528] Compiling TripKit LatestAPIModel.swift
[127/528] Compiling TripKit LocationAPIModel.swift
[128/528] Compiling TripKit OpeningHoursAPIModel.swift
[129/528] Compiling TripKit PricingTableAPIModel.swift
[130/528] Compiling TripKit RegionInfoAPIModel.swift
[131/528] Compiling TripKit RegionsAPIModel.swift
[132/528] Compiling TripKit TripGroup+CoreDataProperties.swift
[133/528] Compiling TripKit TripRequest+CoreDataClass.swift
[134/528] Compiling TripKit TripRequest+CoreDataProperties.swift
[135/528] Compiling TripKit Vehicle+CoreDataClass.swift
[136/528] Compiling TripKit Vehicle+CoreDataProperties.swift
[137/528] Compiling TripKit TKAddressFormatter.swift
[138/528] Compiling TripKit TKAnnotations.swift
[139/528] Compiling TripKit TKBookingTypes.swift
[140/528] Compiling TripKit TKNamedCoordinate+Attribution.swift
[141/528] Compiling TripKit TKNamedCoordinate+BuzzData.swift
[142/528] Compiling TripKit TKPeliasGeocoder.swift
[143/528] Compiling TripKit TKRegionAutocompleter.swift
[144/528] Compiling TripKit TKRouteAutocompleter.swift
[145/528] Compiling TripKit TKTripGoGeocoder.swift
[146/528] Compiling TripKit TKBuzzInfoProvider+Routes.swift
[147/528] Compiling TripKit TKBuzzInfoProvider.swift
[148/544] Compiling TripKit DataAttachable.swift
[149/544] Compiling TripKit TKImageBuilder.swift
[150/544] Compiling TripKit TKJSONCache.swift
[151/544] Compiling TripKit TKJSONSanitizer.swift
[152/544] Compiling TripKit TKModeHelper.swift
[153/544] Compiling TripKit TKParserHelper.swift
[154/544] Compiling TripKit TKRegion+RoutingMode.swift
[155/544] Compiling TripKit TKMetricClassifier.swift
[156/544] Compiling TripKit TKTripClassifier.swift
[157/544] Compiling TripKit TripRequest+Classify.swift
[158/544] Compiling TripKit TKCalendarManager+Autocompleting.swift
[159/544] Compiling TripKit TKCalendarManager.swift
[160/544] Compiling TripKit TKContactsManager+TKAutocompleting.swift
[161/544] Compiling TripKit TKStyleManager+UIKit.swift
[162/544] Compiling TripKit UIColor+TripKit.swift
[163/544] Compiling TripKit UIColor+TripKitDefault.swift
[164/544] Compiling TripKit TKShareHelper+Parsing.swift
[165/544] Compiling TripKit TKShareHelper.swift
[166/544] Compiling TripKit TKShareURLProvider.swift
[167/544] Compiling TripKit StopLocation+Shareable.swift
[168/544] Compiling TripKit StopVisits+Shareable.swift
[169/544] Compiling TripKit ShareCarAPIModel.swift
[170/544] Compiling TripKit StopAPIModel.swift
[171/544] Compiling TripKit UserAPIModel.swift
[172/544] Compiling TripKit VehicleAPIModel.swift
[173/544] Compiling TripKit Alert+CoreDataClass.swift
[174/544] Compiling TripKit Alert+CoreDataProperties.swift
[175/544] Compiling TripKit DLSEntry+CoreDataClass.swift
[176/544] Compiling TripKit DLSEntry+CoreDataProperties.swift
[177/544] Compiling TripKit SegmentReference+CoreDataClass.swift
[178/544] Compiling TripKit SegmentReference+CoreDataProperties.swift
[179/544] Compiling TripKit SegmentReference+Data.swift
[180/544] Compiling TripKit SegmentReference+Flags.swift
[181/544] Compiling TripKit SegmentTemplate+CoreDataClass.swift
[182/544] Compiling TripKit SegmentTemplate+CoreDataProperties.swift
[183/544] Compiling TripKit SegmentTemplate+Data.swift
[184/544] Compiling TripKit SegmentTemplate+Flags.swift
[185/544] Compiling TripKit Service+CoreDataClass.swift
[186/544] Compiling TripKit Service+CoreDataProperties.swift
[187/544] Compiling TripKit Service+Visits.swift
[188/544] Compiling TripKit Shape+CoreDataClass.swift
[189/544] Compiling TripKit Loc.swift
[190/544] Compiling TripKit TKConfig.swift
[191/544] Compiling TripKit TKCrossPlatform.swift
[192/544] Compiling TripKit TKImage+TripKit.swift
[193/544] Compiling TripKit TKLog.swift
[194/544] Compiling TripKit TripKit.swift
[195/544] Compiling TripKit API+ViewHelpers.swift
[196/544] Compiling TripKit RouteAPIModel.swift
[197/544] Compiling TripKit RoutingAPIModel.swift
[198/544] Compiling TripKit ServiceAPIModel.swift
[199/544] Compiling TripKit TKRoutingServer.swift
[200/544] Compiling TripKit TKServer+Image.swift
[201/544] Compiling TripKit TKServer+Regions.swift
[202/544] Compiling TripKit TKServer+UserAccount.swift
[203/544] Compiling TripKit TKServer.swift
[204/544] Compiling TripKit TKSettings+Config.swift
[205/544] Compiling TripKit TKSettings.swift
[206/544] Compiling TripKit TKTransportModes.swift
[207/544] Compiling TripKit TKTripFetcher.swift
[208/544] Compiling TripKit TKWaypointRouter.swift
[209/544] Compiling TripKit SegmentTemplate+Parsing.swift
[210/544] Compiling TripKit TKAPIToCoreDataConverter.swift
[211/544] Compiling TripKit TKRoutingParser+Populate.swift
[212/544] Compiling TripKit TKRoutingParser.swift
[213/544] Compiling TripKit Loc+TripKitUI.swift
[214/544] Compiling TripKit TKColoredRoute.swift
[215/544] Compiling TripKit TKCoordinates.swift
[216/544] Compiling TripKit TKDLSTable.swift
[217/544] Compiling TripKit TKGeocodable.swift
[218/544] Compiling TripKit TKInfoIcon.swift
[219/544] Compiling TripKit TKLocalCost.swift
[220/544] Compiling TripKit TKLocationTypes.swift
[221/544] Compiling TripKit TKMapTiles.swift
[222/544] Compiling TripKit TKMiniInstruction.swift
[223/544] Compiling TripKit TKModeInfo+Image.swift
[224/544] Compiling TripKit TKModeInfo.swift
[225/544] Compiling TripKit TKNamedCoordinate.swift
[226/544] Compiling TripKit TKPathFriendliness.swift
[227/544] Compiling TripKit TKRoutePolyline.swift
[228/544] Compiling TripKit TKSecureTransformers.swift
[229/544] Compiling TripKit Array+Duplicates.swift
[230/544] Compiling TripKit Codable+Helpers.swift
[231/544] Compiling TripKit Date+Helpers.swift
[232/544] Compiling TripKit MKMultiPoint+ClosestPoint.swift
[233/544] Compiling TripKit MapKit+Extensions.swift
[234/544] Compiling TripKit NSBundle+ProductName.swift
[235/544] Compiling TripKit NSDate+Formatting.swift
[236/544] Compiling TripKit NSError+customError.swift
[237/544] Compiling TripKit NSManagedObject+Safely.swift
[238/544] Compiling TripKit NSManagedObjectContext+Fetch.swift
[239/544] Compiling TripKit NSNumber+Formatter.swift
[240/544] Compiling TripKit NSUserDefaults+SharedDefaults.swift
[241/544] Compiling TripKit String+NonEmpty.swift
[242/544] Compiling TripKit Loc+TripKit.swift
[243/544] Compiling TripKit Loc+TripKitBookings.swift
[244/544] Compiling TripKit Loc+TripKitInterApp.swift
[245/544] Compiling TripKit TKSegment+Alerts.swift
[246/544] Compiling TripKit TKSegment+Images.swift
[247/544] Compiling TripKit TKSegment+StationaryType.swift
[248/544] Compiling TripKit TKSegment+TKTripSegment.swift
[249/544] Compiling TripKit Shape+CoreDataProperties.swift
[250/544] Compiling TripKit Shape+Data.swift
[251/544] Compiling TripKit StopLocation+CoreDataClass.swift
[252/544] Compiling TripKit StopLocation+CoreDataProperties.swift
[253/544] Compiling TripKit StopLocation.swift
[254/544] Compiling TripKit StopVisits+CoreDataClass.swift
[255/544] Compiling TripKit StopVisits+CoreDataProperties.swift
[256/544] Compiling TripKit Trip+CoreDataClass.swift
[257/544] Compiling TripKit Trip+CoreDataProperties.swift
[258/544] Compiling TripKit Trip+Data.swift
[259/544] Compiling TripKit Trip+Flags.swift
[260/544] Compiling TripKit TripGroup+CoreDataClass.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 {
/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 {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[279/546] Compiling TGCardViewController TGKeyboardTableView.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
[280/546] Compiling TGCardViewController resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[281/546] Emitting module TGCardViewController
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[285/546] Compiling GeoMonitor PrioritizedRegion.swift
[286/546] Emitting module GeoMonitor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:79:28: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
77 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
78 |
79 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
80 |
81 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:126:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
124 |
125 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
126 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
127 |
128 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:186:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
184 | // MARK: - Location tracking
185 |
186 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
187 |
188 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:188:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
186 | @Published public var currentLocation: CLLocation?
187 |
188 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
189 | didSet {
190 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:128: error: 'authorizedWhenInUse' is unavailable in macOS
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
254 | ask(forBackground: true)
255 | } else if enableInBackground {
CoreLocation.CLAuthorizationStatus.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 | case authorizedWhenInUse}
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:250:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
248 | ///
249 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
250 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:274:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
272 | if isMonitoring {
273 | if enableVisitMonitoring {
274 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:276:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
274 | locationManager.startMonitoringVisits()
275 | } else {
276 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:21:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:542:77: error: 'CLVisit' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| | `- error: 'CLVisit' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
[287/546] Compiling GeoMonitor GeoMonitor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:79:28: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
77 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
78 |
79 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
80 |
81 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:126:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
124 |
125 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
126 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
127 |
128 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:186:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
184 | // MARK: - Location tracking
185 |
186 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
187 |
188 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:188:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
186 | @Published public var currentLocation: CLLocation?
187 |
188 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
189 | didSet {
190 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:128: error: 'authorizedWhenInUse' is unavailable in macOS
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
254 | ask(forBackground: true)
255 | } else if enableInBackground {
CoreLocation.CLAuthorizationStatus.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 | case authorizedWhenInUse}
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:250:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
248 | ///
249 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
250 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:274:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
272 | if isMonitoring {
273 | if enableVisitMonitoring {
274 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:276:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
274 | locationManager.startMonitoringVisits()
275 | } else {
276 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:21:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:542:77: error: 'CLVisit' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| | `- error: 'CLVisit' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:105:5: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
104 | locationManager = .init()
105 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | self.enabledKey = enabledKey
107 | if let enabledKey = enabledKey {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:108:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
106 | self.enabledKey = enabledKey
107 | if let enabledKey = enabledKey {
108 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | } else {
110 | enableInBackground = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:110:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
108 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
109 | } else {
110 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 |
<unknown>:0: error: cannot convert value of type 'any KeyPath<GeoMonitor, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:116:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
114 |
115 | locationManager.delegate = self
116 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 |
118 | #if !DEBUG
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:132:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
129 |
130 | /// Whether it's possible to bring up the system prompt to ask for access to the device's location
131 | public var canAsk: Bool {
| `- note: add @available attribute to enclosing property
132 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
133 | case .notDetermined:
134 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:143:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:145:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | // Note: We do NOT update `enableInBackground` here, as that's the user's
147 | // setting, i.e., they might not want to have it enabled even though the
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:145:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
146 | // Note: We do NOT update `enableInBackground` here, as that's the user's
147 | // setting, i.e., they might not want to have it enabled even though the
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:150:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
148 | // app has permissions.
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:150:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
148 | // app has permissions.
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:151:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
151 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:153:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | enableInBackground = false
155 | @unknown default:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:154:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
154 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | @unknown default:
156 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:156:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
154 | enableInBackground = false
155 | @unknown default:
156 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | enableInBackground = false
158 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:157:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
155 | @unknown default:
156 | hasAccess = false
157 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:163:26: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
164 | // Need to *first* ask for when in use, and only for always if that
165 | // is granted.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:175:25: error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
:
173 | } else {
174 | self.askHandler = handler
175 | locationManager.requestAlwaysAuthorization()
| |- error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | }
177 | } else {
<unknown>:0: error: cannot convert value of type 'any KeyPath<GeoMonitor, CLLocation?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, CLLocation?>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<GeoMonitor, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:179:23: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
:
177 | } else {
178 | self.askHandler = handler
179 | locationManager.requestWhenInUseAuthorization()
| |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
180 | }
181 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:221:21: error: 'requestLocation()' is only available in macOS 10.14 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
219 | let originalAccuracy = locationManager.desiredAccuracy
220 | locationManager.desiredAccuracy = desiredAccuracy
221 | locationManager.requestLocation()
| |- error: 'requestLocation()' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
222 |
223 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [unowned self] _ in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
225 | }
226 |
227 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:22: error: 'resume(with:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
230 | continuation.resume(with: result)
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | })
232 | }
<unknown>:0: error: cannot convert value of type 'any KeyPath<GeoMonitor, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:54: note: expanded code originates here
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
225 | }
226 |
227 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|225 |
|226 |
|227 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------------
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:286:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
285 | isMonitoring = true
286 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:287:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
285 | isMonitoring = true
286 | locationManager.allowsBackgroundLocationUpdates = true
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 |
289 | Task {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:289:5: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
289 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | // Check if in region, which will also re-monitor the current location
291 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:289:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
289 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | // Check if in region, which will also re-monitor the current location
291 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:296:23: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
294 |
295 | if enableVisitMonitoring {
296 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:304:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
303 | isMonitoring = false
304 | locationManager.allowsBackgroundLocationUpdates = false
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | locationManager.pausesLocationUpdatesAutomatically = true
306 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:305:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
303 | isMonitoring = false
304 | locationManager.allowsBackgroundLocationUpdates = false
305 | locationManager.pausesLocationUpdatesAutomatically = true
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 |
307 | stopMonitoringCurrentArea()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:308:21: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
:
306 |
307 | stopMonitoringCurrentArea()
308 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | }
310 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:402:18: error: 'cancel()' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | monitorTask = Task {
404 | if let delay {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:403:19: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:403:19: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:405:19: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | }
407 | monitorNow(regions, location: location)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:405:24: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | }
407 | monitorNow(regions, location: location)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:412:12: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
409 | }
410 |
411 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
412 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 |
414 | // Remember all the regions, if it currently too far away
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:412:17: error: 'isCancelled' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
409 | }
410 |
411 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
412 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 |
414 | // Remember all the regions, if it currently too far away
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:495:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
486 | guard isMonitoring else {
487 | eventHandler(.status("GeoMonitor exited region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
493 | }
494 |
495 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | // Make sure this is still a *current* region => update data
497 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:495:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
486 | guard isMonitoring else {
487 | eventHandler(.status("GeoMonitor exited region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
493 | }
494 |
495 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | // Make sure this is still a *current* region => update data
497 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:536:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
524 | }
525 |
526 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
527 | guard isMonitoring else {
528 | eventHandler(.status("GeoMonitor entered region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
534 | }
535 |
536 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | // 3. When leaving the current location, fetch...
538 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:536:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
524 | }
525 |
526 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
527 | guard isMonitoring else {
528 | eventHandler(.status("GeoMonitor entered region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
534 | }
535 |
536 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | // 3. When leaving the current location, fetch...
538 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:555:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
553 | }
554 |
555 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
557 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:555:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
553 | }
554 |
555 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
557 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:576:5: error: setter for 'currentLocation' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
559 | }
560 |
561 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
562 | #if DEBUG
563 | print("GeoMonitor updated locations -> \(locations)")
:
574 | }
575 |
576 | self.currentLocation = latestAccurate
| |- error: setter for 'currentLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
577 |
578 | notify(.success(latestAccurate))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:599:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
592 | }
593 |
594 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
| `- note: add @available attribute to enclosing instance method
595 | updateAccess()
596 | askHandler(hasAccess)
597 | askHandler = { _ in }
598 |
599 | switch manager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
600 | case .authorizedAlways, .authorizedWhenInUse:
601 | if isMonitoring {
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/vendor/RxCombine/LICENSE
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-2F0A5646E1D333AE.txt
[2/416] Compiling RxSwift AddRef.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 {
[3/416] Compiling RxSwift Amb.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 {
[4/416] Compiling RxSwift AnonymousDisposable.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 {
[5/418] Compiling RxSwift AnonymousObserver.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 {
[6/418] Compiling RxSwift AnyObserver.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 {
[7/418] Compiling RxSwift AsMaybe.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 {
[8/418] Compiling RxSwift ScheduledItemType.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 {
[9/418] Compiling RxSwift SchedulerServices+Emulation.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 {
[10/418] Compiling RxSwift SchedulerType.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/TGCardViewController/Sources/TGCardViewController/TGButtonPosition.swift:9:8: error: no such module 'UIKit'
7 | //
8 |
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | public enum TGButtonPosition {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/418] 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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/418] Compiling GeoMonitor PrioritizedRegion.swift
[13/418] Emitting module GeoMonitor
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:79:28: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
77 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
78 |
79 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
80 |
81 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:126:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
124 |
125 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
126 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
127 |
128 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:186:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
184 | // MARK: - Location tracking
185 |
186 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
187 |
188 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:188:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
186 | @Published public var currentLocation: CLLocation?
187 |
188 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
189 | didSet {
190 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:128: error: 'authorizedWhenInUse' is unavailable in macOS
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
254 | ask(forBackground: true)
255 | } else if enableInBackground {
CoreLocation.CLAuthorizationStatus.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 | case authorizedWhenInUse}
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:250:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
248 | ///
249 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
250 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:274:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
272 | if isMonitoring {
273 | if enableVisitMonitoring {
274 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:276:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
274 | locationManager.startMonitoringVisits()
275 | } else {
276 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:21:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:542:77: error: 'CLVisit' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| | `- error: 'CLVisit' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
[14/418] Compiling GeoMonitor GeoMonitor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:79:28: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
77 | private var recentlyReportedRegionIdentifiers: [(String, Date)] = []
78 |
79 | private var monitorTask: Task<Void, Error>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
80 |
81 | public var maxRegionsToMonitor = 20
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:126:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
124 |
125 | /// Whether user has granted any kind of access to the device's location, when-in-use or always
126 | @Published public var hasAccess: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
127 |
128 | private var askHandler: (Bool) -> Void = { _ in }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:186:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
184 | // MARK: - Location tracking
185 |
186 | @Published public var currentLocation: CLLocation?
| `- error: 'Published' is only available in macOS 10.15 or newer
187 |
188 | @Published public var isTracking: Bool = false {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:188:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
186 | @Published public var currentLocation: CLLocation?
187 |
188 | @Published public var isTracking: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
189 | didSet {
190 | if isTracking {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:47: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:104: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
254 | ask(forBackground: true)
255 | } else if enableInBackground {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:253:128: error: 'authorizedWhenInUse' is unavailable in macOS
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
253 | if enableInBackground, (locationManager.authorizationStatus == .notDetermined || locationManager.authorizationStatus == .authorizedWhenInUse) {
| `- error: 'authorizedWhenInUse' is unavailable in macOS
254 | ask(forBackground: true)
255 | } else if enableInBackground {
CoreLocation.CLAuthorizationStatus.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 | case authorizedWhenInUse}
| `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:250:4: error: 'Published' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
248 | ///
249 | /// - warning: Setting this will prompt for access to the user's location with always-on tracking.
250 | @Published public var enableInBackground: Bool = false {
| `- error: 'Published' is only available in macOS 10.15 or newer
251 | didSet {
252 | guard enableInBackground != oldValue else { return }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:274:27: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
272 | if isMonitoring {
273 | if enableVisitMonitoring {
274 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | locationManager.stopMonitoringVisits()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:276:27: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
274 | locationManager.startMonitoringVisits()
275 | } else {
276 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:21:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:542:77: error: 'CLVisit' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| | `- error: 'CLVisit' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:105:5: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
104 | locationManager = .init()
105 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | self.enabledKey = enabledKey
107 | if let enabledKey = enabledKey {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:108:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
106 | self.enabledKey = enabledKey
107 | if let enabledKey = enabledKey {
108 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | } else {
110 | enableInBackground = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:110:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
108 | enableInBackground = UserDefaults.standard.bool(forKey: enabledKey)
109 | } else {
110 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 |
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:116:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
99 | /// - dataSource: Data source that provides regions. Will be maintained strongly.
100 | /// - onEvent: Handler that's called when a relevant event is happening, including when one of the monitored regions is entered.
101 | public init(enabledKey: String? = nil, dataSource: GeoMonitorDataSource, onEvent: @escaping (Event) -> Void) {
| `- note: add @available attribute to enclosing initializer
102 | fetchSource = dataSource
103 | eventHandler = onEvent
:
114 |
115 | locationManager.delegate = self
116 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 |
118 | #if !DEBUG
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:132:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
129 |
130 | /// Whether it's possible to bring up the system prompt to ask for access to the device's location
131 | public var canAsk: Bool {
| `- note: add @available attribute to enclosing property
132 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
133 | case .notDetermined:
134 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:143:28: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:145:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | // Note: We do NOT update `enableInBackground` here, as that's the user's
147 | // setting, i.e., they might not want to have it enabled even though the
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:145:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
145 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
146 | // Note: We do NOT update `enableInBackground` here, as that's the user's
147 | // setting, i.e., they might not want to have it enabled even though the
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:150:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
148 | // app has permissions.
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:150:57: error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
148 | // app has permissions.
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
| |- error: 'accuracyAuthorization' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:151:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
149 | case .authorizedWhenInUse:
150 | hasAccess = !needsFullAccuracy || locationManager.accuracyAuthorization == .fullAccuracy
151 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:153:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
151 | enableInBackground = false
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | enableInBackground = false
155 | @unknown default:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:154:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
152 | case .denied, .notDetermined, .restricted:
153 | hasAccess = false
154 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | @unknown default:
156 | hasAccess = false
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:156:7: error: setter for 'hasAccess' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
154 | enableInBackground = false
155 | @unknown default:
156 | hasAccess = false
| |- error: setter for 'hasAccess' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | enableInBackground = false
158 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:157:7: error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
140 | }
141 |
142 | private func updateAccess() {
| `- note: add @available attribute to enclosing instance method
143 | switch locationManager.authorizationStatus {
144 | case .authorizedAlways:
:
155 | @unknown default:
156 | hasAccess = false
157 | enableInBackground = false
| |- error: setter for 'enableInBackground' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:163:26: error: 'authorizationStatus' is only available in macOS 11.0 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
164 | // Need to *first* ask for when in use, and only for always if that
165 | // is granted.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:175:25: error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
:
173 | } else {
174 | self.askHandler = handler
175 | locationManager.requestAlwaysAuthorization()
| |- error: 'requestAlwaysAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | }
177 | } else {
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, CLLocation?>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, CLLocation?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:179:23: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
159 | }
160 |
161 | public func ask(forBackground: Bool = false, _ handler: @escaping (Bool) -> Void = { _ in }) {
| `- note: add @available attribute to enclosing instance method
162 | if forBackground {
163 | if locationManager.authorizationStatus == .notDetermined {
:
177 | } else {
178 | self.askHandler = handler
179 | locationManager.requestWhenInUseAuthorization()
| |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
180 | }
181 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:221:21: error: 'requestLocation()' is only available in macOS 10.14 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
219 | let originalAccuracy = locationManager.desiredAccuracy
220 | locationManager.desiredAccuracy = desiredAccuracy
221 | locationManager.requestLocation()
| |- error: 'requestLocation()' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
222 |
223 | fetchTimer = .scheduledTimer(withTimeInterval: Constants.currentLocationFetchTimeOut, repeats: false) { [unowned self] _ in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:22: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
225 | }
226 |
227 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:230:22: error: 'resume(with:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
230 | continuation.resume(with: result)
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | })
232 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<GeoMonitor, Bool>' to expected argument type 'ReferenceWritableKeyPath<GeoMonitor, Bool>'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:55: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:227:54: note: expanded code originates here
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
204 | private var fetchTimer: Timer?
205 |
206 | private func fetchCurrentLocation() async throws -> CLLocation {
| `- note: add @available attribute to enclosing instance method
207 | guard hasAccess else {
208 | throw LocationFetchError.accessNotProvided
:
225 | }
226 |
227 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift
|225 |
|226 |
|227 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------------
228 | withNextLocation.append({ [unowned self] result in
229 | self.locationManager.desiredAccuracy = originalAccuracy
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:286:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
285 | isMonitoring = true
286 | locationManager.allowsBackgroundLocationUpdates = true
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:287:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
285 | isMonitoring = true
286 | locationManager.allowsBackgroundLocationUpdates = true
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 |
289 | Task {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:289:5: error: 'Task' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
289 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | // Check if in region, which will also re-monitor the current location
291 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:289:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
287 | locationManager.pausesLocationUpdatesAutomatically = enableInBackground // we can do that, as it implies "always on" permissions
288 |
289 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | // Check if in region, which will also re-monitor the current location
291 | // and update the regions(!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:296:23: error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
280 | }
281 |
282 | public func startMonitoring() {
| `- note: add @available attribute to enclosing instance method
283 | guard !isMonitoring, hasAccess else { return }
284 |
:
294 |
295 | if enableVisitMonitoring {
296 | locationManager.startMonitoringVisits()
| |- error: 'startMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:304:21: error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
303 | isMonitoring = false
304 | locationManager.allowsBackgroundLocationUpdates = false
| |- error: 'allowsBackgroundLocationUpdates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | locationManager.pausesLocationUpdatesAutomatically = true
306 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:305:21: error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
303 | isMonitoring = false
304 | locationManager.allowsBackgroundLocationUpdates = false
305 | locationManager.pausesLocationUpdatesAutomatically = true
| |- error: 'pausesLocationUpdatesAutomatically' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 |
307 | stopMonitoringCurrentArea()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:308:21: error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
19 | /// monitoring is limited for brief durations (e.g., "get off here" alerts for transit apps)
20 | @available(iOS 14.0, *)
21 | public class GeoMonitor: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
22 | enum Constants {
23 | static var currentLocationRegionMaximumRadius: CLLocationDistance = 2_500
:
298 | }
299 |
300 | public func stopMonitoring() {
| `- note: add @available attribute to enclosing instance method
301 | guard isMonitoring else { return }
302 |
:
306 |
307 | stopMonitoringCurrentArea()
308 | locationManager.stopMonitoringVisits()
| |- error: 'stopMonitoringVisits()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | }
310 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:402:18: error: 'cancel()' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | monitorTask = Task {
404 | if let delay {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:403:19: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:403:19: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:405:19: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | }
407 | monitorNow(regions, location: location)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:405:24: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
| `- note: add @available attribute to enclosing instance method
402 | monitorTask?.cancel()
403 | monitorTask = Task {
404 | if let delay {
405 | try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | }
407 | monitorNow(regions, location: location)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:412:12: error: 'Task' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
409 | }
410 |
411 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
412 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 |
414 | // Remember all the regions, if it currently too far away
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:412:17: error: 'isCancelled' is only available in macOS 10.15 or newer
397 |
398 | @available(iOS 14.0, *)
399 | extension GeoMonitor {
| `- note: add @available attribute to enclosing extension
400 |
401 | private func monitorDebounced(_ regions: [CLCircularRegion], location: CLLocation?, delay: TimeInterval? = nil) {
:
409 | }
410 |
411 | private func monitorNow(_ regions: [CLCircularRegion], location: CLLocation?) {
| `- note: add @available attribute to enclosing instance method
412 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 |
414 | // Remember all the regions, if it currently too far away
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:495:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
486 | guard isMonitoring else {
487 | eventHandler(.status("GeoMonitor exited region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
493 | }
494 |
495 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | // Make sure this is still a *current* region => update data
497 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:495:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
486 | guard isMonitoring else {
487 | eventHandler(.status("GeoMonitor exited region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
493 | }
494 |
495 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | // Make sure this is still a *current* region => update data
497 | await runUpdateCycle(trigger: .regionMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:536:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
524 | }
525 |
526 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
527 | guard isMonitoring else {
528 | eventHandler(.status("GeoMonitor entered region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
534 | }
535 |
536 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | // 3. When leaving the current location, fetch...
538 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:536:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
524 | }
525 |
526 | public func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {
| `- note: add @available attribute to enclosing instance method
527 | guard isMonitoring else {
528 | eventHandler(.status("GeoMonitor entered region, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
534 | }
535 |
536 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | // 3. When leaving the current location, fetch...
538 | await runUpdateCycle(trigger: .departedCurrentArea)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:555:5: error: 'Task' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
553 | }
554 |
555 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
557 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:555:5: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
540 | }
541 |
542 | public func locationManager(_ manager: CLLocationManager, didVisit visit: CLVisit) {
| `- note: add @available attribute to enclosing instance method
543 | guard isMonitoring else {
544 | eventHandler(.status("GeoMonitor detected visit change, even though we've since stopped monitoring. Ignoring...", .enteredRegion))
:
553 | }
554 |
555 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | // TODO: We could detect if it's an arrival at a new location, by checking `visit.departureTime == .distanceFuture`
557 | await runUpdateCycle(trigger: .visitMonitoring)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:576:5: error: setter for 'currentLocation' is only available in macOS 10.15 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
559 | }
560 |
561 | public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
| `- note: add @available attribute to enclosing instance method
562 | #if DEBUG
563 | print("GeoMonitor updated locations -> \(locations)")
:
574 | }
575 |
576 | self.currentLocation = latestAccurate
| |- error: setter for 'currentLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
577 |
578 | notify(.success(latestAccurate))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/GeoMonitor/Sources/GeoMonitor/GeoMonitor.swift:599:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
481 |
482 | @available(iOS 14.0, *)
483 | extension GeoMonitor: CLLocationManagerDelegate {
| `- note: add @available attribute to enclosing extension
484 |
485 | public func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
:
592 | }
593 |
594 | public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
| `- note: add @available attribute to enclosing instance method
595 | updateAccess()
596 | askHandler(hasAccess)
597 | askHandler = { _ in }
598 |
599 | switch manager.authorizationStatus {
| |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
600 | case .authorizedAlways, .authorizedWhenInUse:
601 | if isMonitoring {
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TripKitUI/vendor/RxCombine/LICENSE
BUILD FAILURE 6.1 macosSpm