The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of StadiaMapsAutocompleteSearch, reference 1.2.0 (0519e4), with Swift 6.0 (beta) for macOS (SPM) on 13 Sep 2024 11:02:09 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stadiamaps/swiftui-autocomplete-search.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/stadiamaps/swiftui-autocomplete-search
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 0519e42 Polish up result display with more local context and better iconography
Cloned https://github.com/stadiamaps/swiftui-autocomplete-search.git
Revision (git rev-parse @):
0519e42fa3721f4dfc0fff406c7698ecccc5e065
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/stadiamaps/swiftui-autocomplete-search.git at 1.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/stadiamaps/swiftui-autocomplete-search.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-117DEE11B69C53C9.txt
[5/8] Compiling AnyCodable AnyCodable.swift
[6/8] Compiling AnyCodable AnyDecodable.swift
[7/8] Emitting module AnyCodable
[8/8] Compiling AnyCodable AnyEncodable.swift
[9/130] Compiling StadiaMaps PeliasGeoJSONPropertiesAddendum.swift
[10/130] Compiling StadiaMaps PeliasGeoJSONPropertiesAddendumOsm.swift
[11/130] Compiling StadiaMaps PeliasLayer.swift
[12/130] Compiling StadiaMaps PeliasResponse.swift
[13/130] Compiling StadiaMaps PeliasSource.swift
[14/130] Compiling StadiaMaps Restrictions.swift
[15/130] Compiling StadiaMaps RoadClass.swift
[16/130] Compiling StadiaMaps Route200Response.swift
[17/130] Compiling StadiaMaps RouteLeg.swift
[18/130] Compiling StadiaMaps RouteManeuver.swift
[19/130] Compiling StadiaMaps RouteRequest.swift
[20/130] Compiling StadiaMaps RouteResponse.swift
[21/130] Compiling StadiaMaps RouteResponseAlternatesInner.swift
[22/143] Compiling StadiaMaps ManeuverSignElement.swift
[23/143] Compiling StadiaMaps MapMatchCostingModel.swift
[24/143] Compiling StadiaMaps MapMatchRequest.swift
[25/143] Compiling StadiaMaps MapMatchRouteResponse.swift
[26/143] Compiling StadiaMaps MapMatchTraceOptions.swift
[27/143] Compiling StadiaMaps MapMatchWaypoint.swift
[28/143] Compiling StadiaMaps MatchedPoint.swift
[29/143] Compiling StadiaMaps MatrixCostingModel.swift
[30/143] Compiling StadiaMaps MatrixDistance.swift
[31/143] Compiling StadiaMaps MatrixRequest.swift
[32/143] Compiling StadiaMaps MatrixResponse.swift
[33/143] Compiling StadiaMaps MatrixWaypoint.swift
[34/143] Compiling StadiaMaps MotorScooterCostingOptions.swift
[35/143] Compiling StadiaMaps RouteSummary.swift
[36/143] Compiling StadiaMaps RouteTrip.swift
[37/143] Compiling StadiaMaps RoutingResponseWaypoint.swift
[38/143] Compiling StadiaMaps RoutingWaypoint.swift
[39/143] Compiling StadiaMaps RoutingWaypointAllOfSearchFilter.swift
[40/143] Compiling StadiaMaps SearchQuery.swift
[41/143] Compiling StadiaMaps SearchStructuredQuery.swift
[42/143] Compiling StadiaMaps SimpleRoutingWaypoint.swift
[43/143] Compiling StadiaMaps Speeds.swift
[44/143] Compiling StadiaMaps TraceAttributeFilterOptions.swift
[45/143] Compiling StadiaMaps TraceAttributeKey.swift
[46/143] Compiling StadiaMaps TraceAttributesBaseResponse.swift
[47/143] Compiling StadiaMaps TraceAttributesRequest.swift
[48/143] Compiling StadiaMaps AnnotationFilters.swift
[49/143] Compiling StadiaMaps AutoCostingOptions.swift
[50/143] Compiling StadiaMaps BaseCostingOptions.swift
[51/143] Compiling StadiaMaps BaseTraceRequest.swift
[52/143] Compiling StadiaMaps BicycleCostingOptions.swift
[53/143] Compiling StadiaMaps BikeNetwork.swift
[54/143] Compiling StadiaMaps BulkRequest.swift
[55/143] Compiling StadiaMaps BulkRequestQuery.swift
[56/143] Compiling StadiaMaps BulkSearchResponse.swift
[57/143] Compiling StadiaMaps Contour.swift
[58/143] Compiling StadiaMaps Coordinate.swift
[59/143] Compiling StadiaMaps CostingModel.swift
[60/143] Compiling StadiaMaps CostingOptions.swift
[61/143] Compiling StadiaMaps DirectionsOptions.swift
[62/143] Compiling StadiaMaps MotorcycleCostingOptions.swift
[63/143] Compiling StadiaMaps NearestRoadsRequest.swift
[64/143] Compiling StadiaMaps NodeId.swift
[65/143] Compiling StadiaMaps NodeType.swift
[66/143] Compiling StadiaMaps OptimizedRouteRequest.swift
[67/143] Compiling StadiaMaps OsrmAdmin.swift
[68/143] Compiling StadiaMaps OsrmAnnotation.swift
[69/143] Compiling StadiaMaps OsrmBannerComponent.swift
[70/143] Compiling StadiaMaps OsrmBannerContent.swift
[71/143] Compiling StadiaMaps OsrmBannerInstruction.swift
[72/143] Compiling StadiaMaps OsrmBaseApiResponse.swift
[73/143] Compiling StadiaMaps OsrmGuidanceModifier.swift
[74/143] Compiling StadiaMaps OsrmIntersection.swift
[75/143] Compiling StadiaMaps OsrmLane.swift
[76/143] Compiling StadiaMaps OsrmRoute.swift
[77/143] Compiling StadiaMaps OsrmRouteLeg.swift
[78/143] Compiling StadiaMaps OsrmRouteResponse.swift
[79/143] Compiling StadiaMaps OsrmRouteStep.swift
[80/143] Compiling StadiaMaps OsrmSpeedLimit.swift
[81/143] Compiling StadiaMaps OsrmStepManeuver.swift
[82/143] Compiling StadiaMaps OsrmViaWaypoint.swift
[83/143] Compiling StadiaMaps OsrmVoiceInstruction.swift
[84/143] Compiling StadiaMaps OsrmWaypoint.swift
[85/143] Compiling StadiaMaps PedestrianCostingOptions.swift
[86/143] Compiling StadiaMaps PeliasGeoJSONFeature.swift
[87/143] Compiling StadiaMaps PeliasGeoJSONProperties.swift
[88/143] Compiling StadiaMaps TraceAttributesResponse.swift
[89/143] Compiling StadiaMaps TraceEdge.swift
[90/143] Compiling StadiaMaps TravelMode.swift
[91/143] Compiling StadiaMaps Traversability.swift
[92/143] Compiling StadiaMaps TruckCostingOptions.swift
[93/143] Compiling StadiaMaps TzResponse.swift
[94/143] Compiling StadiaMaps ValhallaLanguages.swift
[95/143] Compiling StadiaMaps ValhallaLongUnits.swift
[96/143] Compiling StadiaMaps Warning.swift
[97/143] Compiling StadiaMaps OpenISO8601DateFormatter.swift
[98/143] Compiling StadiaMaps SynchronizedDictionary.swift
[99/143] Compiling StadiaMaps URLSessionImplementations.swift
[100/143] Compiling StadiaMaps Validation.swift
[101/143] Compiling StadiaMaps HighwayClassification.swift
[102/143] Compiling StadiaMaps IntersectingEdge.swift
[103/143] Compiling StadiaMaps IsochroneCostingModel.swift
[104/143] Compiling StadiaMaps IsochroneFeature.swift
[105/143] Compiling StadiaMaps IsochroneProperties.swift
[106/143] Compiling StadiaMaps IsochroneRequest.swift
[107/143] Compiling StadiaMaps IsochroneResponse.swift
[108/143] Compiling StadiaMaps LocateDetailedEdge.swift
[109/143] Compiling StadiaMaps LocateEdge.swift
[110/143] Compiling StadiaMaps LocateEdgeInfo.swift
[111/143] Compiling StadiaMaps LocateNode.swift
[112/143] Compiling StadiaMaps LocateObject.swift
[113/143] Compiling StadiaMaps LowSpeedVehicleCostingOptions.swift
[114/143] Compiling StadiaMaps ManeuverSign.swift
[115/143] Compiling StadiaMaps APIHelper.swift
[116/143] Compiling StadiaMaps APIs.swift
[117/143] Compiling StadiaMaps GeocodingAPI.swift
[118/143] Compiling StadiaMaps GeospatialAPI.swift
[119/143] Compiling StadiaMaps RoutingAPI.swift
[120/143] Compiling StadiaMaps CodableHelper.swift
[121/143] Compiling StadiaMaps Configuration.swift
[122/143] Compiling StadiaMaps Extensions.swift
[123/143] Compiling StadiaMaps JSONDataEncoding.swift
[124/143] Compiling StadiaMaps JSONEncodingHelper.swift
[125/143] Compiling StadiaMaps Models.swift
[126/143] Compiling StadiaMaps Access.swift
[127/143] Compiling StadiaMaps AdminRegion.swift
[128/143] Compiling StadiaMaps Administrative.swift
[129/143] Compiling StadiaMaps DistanceUnit.swift
[130/143] Compiling StadiaMaps EdgeSign.swift
[131/143] Compiling StadiaMaps EdgeUse.swift
[132/143] Compiling StadiaMaps EndNode.swift
[133/143] Compiling StadiaMaps ExtendedDirectionsOptions.swift
[134/143] Compiling StadiaMaps GeoAttributes.swift
[135/143] Compiling StadiaMaps GeoJSONGeometry.swift
[136/143] Compiling StadiaMaps GeoJSONGeometryBase.swift
[137/143] Compiling StadiaMaps GeoJSONLineString.swift
[138/143] Compiling StadiaMaps GeoJSONPoint.swift
[139/143] Compiling StadiaMaps GeoJSONPolygon.swift
[140/143] Compiling StadiaMaps GeocodingObject.swift
[141/143] Compiling StadiaMaps HeightRequest.swift
[142/143] Compiling StadiaMaps HeightResponse.swift
[143/143] Emitting module StadiaMaps
[144/147] Compiling StadiaMapsAutocompleteSearch Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/Extensions.swift:5:1: warning: extension declares a conformance of imported type 'PeliasGeoJSONFeature' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'StadiaMaps' introduce this conformance in the future
 3 | import SwiftUI
 4 |
 5 | extension PeliasGeoJSONFeature: Identifiable {
   | |- warning: extension declares a conformance of imported type 'PeliasGeoJSONFeature' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'StadiaMaps' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 6 |     public var id: String? {
 7 |         properties?.gid
[145/147] Compiling StadiaMapsAutocompleteSearch SearchResult.swift
[146/147] Compiling StadiaMapsAutocompleteSearch AutocompleteSearch.swift
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/AutocompleteSearch.swift:30:23: warning: reference to class property 'customHeaders' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 28 |                 })
 29 |     {
 30 |         StadiaMapsAPI.customHeaders = ["Authorization": "Stadia-Auth \(apiKey)"]
    |                       `- warning: reference to class property 'customHeaders' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 31 |         if useEUEndpoint {
 32 |             StadiaMapsAPI.basePath = "https://api-eu.stadiamaps.com"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stadiamaps-api-swift/Sources/StadiaMaps/APIs.swift:13:23: note: class property declared here
11 | open class StadiaMapsAPI {
12 |     public static var basePath = "https://api.stadiamaps.com"
13 |     public static var customHeaders: [String: String] = [:]
   |                       `- note: class property declared here
14 |     public static var credential: URLCredential?
15 |     public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/AutocompleteSearch.swift:32:27: warning: reference to class property 'basePath' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 30 |         StadiaMapsAPI.customHeaders = ["Authorization": "Stadia-Auth \(apiKey)"]
 31 |         if useEUEndpoint {
 32 |             StadiaMapsAPI.basePath = "https://api-eu.stadiamaps.com"
    |                           `- warning: reference to class property 'basePath' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 33 |         }
 34 |         self.userLocation = userLocation
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stadiamaps-api-swift/Sources/StadiaMaps/APIs.swift:12:23: note: class property declared here
10 | #endif
11 | open class StadiaMapsAPI {
12 |     public static var basePath = "https://api.stadiamaps.com"
   |                       `- note: class property declared here
13 |     public static var customHeaders: [String: String] = [:]
14 |     public static var credential: URLCredential?
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/AutocompleteSearch.swift:43:14: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
 41 |         // TODO: Min search length?
 42 |         TextField("Search", text: $searchText)
 43 |             .onChange(of: searchText) { query in
    |              `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead.
 44 |                 Task {
 45 |                     try await search(query: query, autocomplete: true)
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/AutocompleteSearch.swift:82:45: warning: non-sendable type 'PeliasResponse' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 80 |
 81 |         if autocomplete {
 82 |             result = try await GeocodingAPI.autocomplete(text: query, focusPointLat: userLocation?.coordinate.latitude, focusPointLon: userLocation?.coordinate.longitude)
    |                                             `- warning: non-sendable type 'PeliasResponse' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 83 |         } else {
 84 |             result = try await GeocodingAPI.search(text: query, focusPointLat: userLocation?.coordinate.latitude, focusPointLon: userLocation?.coordinate.longitude)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stadiamaps-api-swift/Sources/StadiaMaps/Models/PeliasResponse.swift:13:15: note: struct 'PeliasResponse' does not conform to the 'Sendable' protocol
11 | #endif
12 |
13 | public struct PeliasResponse: Codable, JSONEncodable, Hashable {
   |               `- note: struct 'PeliasResponse' does not conform to the 'Sendable' protocol
14 |     static let bboxRule = ArrayRule(minItems: 4, maxItems: 4, uniqueItems: false)
15 |     public var geocoding: GeocodingObject
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/AutocompleteSearch.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StadiaMaps'
  1 | import CoreLocation
  2 | import StadiaMaps
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StadiaMaps'
  3 | import SwiftUI
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/AutocompleteSearch.swift:84:45: warning: non-sendable type 'PeliasResponse' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 82 |             result = try await GeocodingAPI.autocomplete(text: query, focusPointLat: userLocation?.coordinate.latitude, focusPointLon: userLocation?.coordinate.longitude)
 83 |         } else {
 84 |             result = try await GeocodingAPI.search(text: query, focusPointLat: userLocation?.coordinate.latitude, focusPointLon: userLocation?.coordinate.longitude)
    |                                             `- warning: non-sendable type 'PeliasResponse' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 85 |         }
 86 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stadiamaps-api-swift/Sources/StadiaMaps/Models/PeliasResponse.swift:13:15: note: struct 'PeliasResponse' does not conform to the 'Sendable' protocol
11 | #endif
12 |
13 | public struct PeliasResponse: Codable, JSONEncodable, Hashable {
   |               `- note: struct 'PeliasResponse' does not conform to the 'Sendable' protocol
14 |     static let bboxRule = ArrayRule(minItems: 4, maxItems: 4, uniqueItems: false)
15 |     public var geocoding: GeocodingObject
[147/147] Emitting module StadiaMapsAutocompleteSearch
/Users/admin/builder/spi-builder-workspace/Sources/StadiaMapsAutocompleteSearch/Extensions.swift:5:1: warning: extension declares a conformance of imported type 'PeliasGeoJSONFeature' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'StadiaMaps' introduce this conformance in the future
 3 | import SwiftUI
 4 |
 5 | extension PeliasGeoJSONFeature: Identifiable {
   | |- warning: extension declares a conformance of imported type 'PeliasGeoJSONFeature' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'StadiaMaps' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 6 |     public var id: String? {
 7 |         properties?.gid
Build complete! (30.70s)
Fetching https://github.com/stadiamaps/stadiamaps-api-swift
Fetching https://github.com/Flight-School/AnyCodable
[1/702] Fetching stadiamaps-api-swift
[100/1484] Fetching stadiamaps-api-swift, anycodable
Fetched https://github.com/stadiamaps/stadiamaps-api-swift from cache (0.89s)
Fetched https://github.com/Flight-School/AnyCodable from cache (0.89s)
Computing version for https://github.com/stadiamaps/stadiamaps-api-swift
Computed https://github.com/stadiamaps/stadiamaps-api-swift at 4.1.0 (3.55s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.69s)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
Creating working copy for https://github.com/stadiamaps/stadiamaps-api-swift
Working copy of https://github.com/stadiamaps/stadiamaps-api-swift resolved at 4.1.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "stadiamaps-api-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.1.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/stadiamaps/stadiamaps-api-swift"
    }
  ],
  "manifest_display_name" : "StadiaMapsAutocompleteSearch",
  "name" : "StadiaMapsAutocompleteSearch",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "StadiaMapsAutocompleteSearch",
      "targets" : [
        "StadiaMapsAutocompleteSearch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StadiaMapsAutocompleteSearchTests",
      "module_type" : "SwiftTarget",
      "name" : "StadiaMapsAutocompleteSearchTests",
      "path" : "Tests/StadiaMapsAutocompleteSearchTests",
      "sources" : [
        "SwiftUIAutocompleteSearchTests.swift"
      ],
      "target_dependencies" : [
        "StadiaMapsAutocompleteSearch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StadiaMapsAutocompleteSearch",
      "module_type" : "SwiftTarget",
      "name" : "StadiaMapsAutocompleteSearch",
      "path" : "Sources/StadiaMapsAutocompleteSearch",
      "product_dependencies" : [
        "StadiaMaps"
      ],
      "product_memberships" : [
        "StadiaMapsAutocompleteSearch"
      ],
      "sources" : [
        "AutocompleteSearch.swift",
        "Extensions.swift",
        "SearchResult.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.