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 OpenParking, reference master (4aef2c), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 20:23:48 UTC.

Swift 6 data race errors: 2

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OpenParkingApp/OpenParking.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OpenParkingApp/OpenParking
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4aef2cb silence warnings for now
Cloned https://github.com/OpenParkingApp/OpenParking.git
Revision (git rev-parse @):
4aef2cb70a4bc5746d1d2b8168d2c2f639c95598
SUCCESS checkout https://github.com/OpenParkingApp/OpenParking.git at master
Fetching https://github.com/kiliankoe/GeoJSON
Fetching https://github.com/alexaubry/HTMLString
Fetching https://github.com/flight-school/AnyCodable.git
Fetching https://github.com/sharplet/Regex
[1/1254] Fetching regex
[2/1694] Fetching regex, geojson
[210/3325] Fetching regex, geojson, htmlstring
[583/4107] Fetching regex, geojson, htmlstring, anycodable
Fetched https://github.com/sharplet/Regex from cache (1.23s)
Fetched https://github.com/alexaubry/HTMLString from cache (1.23s)
Fetched https://github.com/flight-school/AnyCodable.git from cache (1.23s)
Fetched https://github.com/kiliankoe/GeoJSON from cache (1.23s)
Computing version for https://github.com/sharplet/Regex
Computed https://github.com/sharplet/Regex at 2.1.1 (4.18s)
Computing version for https://github.com/alexaubry/HTMLString
Computed https://github.com/alexaubry/HTMLString at 5.0.0 (0.67s)
Computing version for https://github.com/kiliankoe/GeoJSON
Computed https://github.com/kiliankoe/GeoJSON at 0.4.1 (0.57s)
Computing version for https://github.com/flight-school/AnyCodable.git
Computed https://github.com/flight-school/AnyCodable.git at 0.2.3 (0.59s)
Creating working copy for https://github.com/kiliankoe/GeoJSON
Working copy of https://github.com/kiliankoe/GeoJSON resolved at 0.4.1
Creating working copy for https://github.com/flight-school/AnyCodable.git
Working copy of https://github.com/flight-school/AnyCodable.git resolved at 0.2.3
Creating working copy for https://github.com/alexaubry/HTMLString
Working copy of https://github.com/alexaubry/HTMLString resolved at 5.0.0
Creating working copy for https://github.com/sharplet/Regex
Working copy of https://github.com/sharplet/Regex resolved at 2.1.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "openparking",
      "name": "OpenParking",
      "url": "https://github.com/OpenParkingApp/OpenParking.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenParking",
      "dependencies": [
        {
          "identity": "geojson",
          "name": "GeoJSON",
          "url": "https://github.com/kiliankoe/GeoJSON",
          "version": "0.6.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GeoJSON",
          "dependencies": [
            {
              "identity": "anycodable",
              "name": "AnyCodable",
              "url": "https://github.com/flight-school/AnyCodable.git",
              "version": "0.6.7",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AnyCodable",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "htmlstring",
          "name": "HTMLString",
          "url": "https://github.com/alexaubry/HTMLString",
          "version": "5.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HTMLString",
          "dependencies": [
          ]
        },
        {
          "identity": "regex",
          "name": "Regex",
          "url": "https://github.com/sharplet/Regex",
          "version": "2.1.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Regex",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/OpenParkingApp/OpenParking.git
[1/914] Fetching openparking
Fetched https://github.com/OpenParkingApp/OpenParking.git from cache (0.81s)
Fetching https://github.com/kiliankoe/GeoJSON from cache
Fetching https://github.com/sharplet/Regex from cache
Fetching https://github.com/alexaubry/HTMLString from cache
Fetched https://github.com/alexaubry/HTMLString from cache (0.41s)
Fetched https://github.com/sharplet/Regex from cache (0.45s)
Fetched https://github.com/kiliankoe/GeoJSON from cache (0.45s)
Computing version for https://github.com/alexaubry/HTMLString
Computed https://github.com/alexaubry/HTMLString at 5.0.0 (0.50s)
Computing version for https://github.com/sharplet/Regex
Computed https://github.com/sharplet/Regex at 2.1.1 (0.03s)
Computing version for https://github.com/kiliankoe/GeoJSON
Computed https://github.com/kiliankoe/GeoJSON at 0.6.2 (0.03s)
Fetching https://github.com/flight-school/AnyCodable.git from cache
Fetched https://github.com/flight-school/AnyCodable.git from cache (0.45s)
Computing version for https://github.com/flight-school/AnyCodable.git
Computed https://github.com/flight-school/AnyCodable.git at 0.6.7 (1.03s)
Creating working copy for https://github.com/flight-school/AnyCodable.git
Working copy of https://github.com/flight-school/AnyCodable.git resolved at 0.6.7
Creating working copy for https://github.com/kiliankoe/GeoJSON
Working copy of https://github.com/kiliankoe/GeoJSON resolved at 0.6.2
Creating working copy for https://github.com/alexaubry/HTMLString
Working copy of https://github.com/alexaubry/HTMLString resolved at 5.0.0
Creating working copy for https://github.com/sharplet/Regex
Working copy of https://github.com/sharplet/Regex resolved at 2.1.1
Creating working copy for https://github.com/OpenParkingApp/OpenParking.git
Working copy of https://github.com/OpenParkingApp/OpenParking.git resolved at master (4aef2cb)
warning: '.resolve-product-dependencies': dependency 'openparking' is not used by any target
Found 3 product dependencies
  - GeoJSON
  - HTMLString
  - Regex
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/OpenParkingApp/OpenParking.git
https://github.com/OpenParkingApp/OpenParking.git
{
  "dependencies" : [
    {
      "identity" : "geojson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kiliankoe/GeoJSON"
    },
    {
      "identity" : "htmlstring",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexaubry/HTMLString"
    },
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex"
    }
  ],
  "manifest_display_name" : "OpenParking",
  "name" : "OpenParking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenParking",
      "targets" : [
        "OpenParking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "OpenParkingTestSupport",
      "targets" : [
        "OpenParkingTestSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenParkingTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTests",
      "path" : "Tests/OpenParkingTests",
      "sources" : [
        "OpenParkingTests.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenParkingTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTestSupport",
      "path" : "Sources/OpenParkingTestSupport",
      "product_memberships" : [
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Validate.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OpenParking",
      "module_type" : "SwiftTarget",
      "name" : "OpenParking",
      "path" : "Sources/OpenParking",
      "product_dependencies" : [
        "GeoJSON",
        "HTMLString",
        "Regex"
      ],
      "product_memberships" : [
        "OpenParking",
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Coordinates.swift",
        "DataPoint.swift",
        "Datasource.swift",
        "Date.swift",
        "Error.swift",
        "GeoJson.swift",
        "HTMLString.swift",
        "Lot.swift",
        "Network.swift",
        "Regex.swift",
        "Warning.swift"
      ],
      "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/7] Write sources
[6/7] Write swift-version-2F0A5646E1D333AE.txt
[8/22] Compiling Regex ThreadLocal.swift
[9/22] Compiling HTMLString NSString+HTMLString.swift
[10/22] Compiling AnyCodable AnyDecodable.swift
[11/22] Compiling AnyCodable AnyCodable.swift
[12/22] Compiling AnyCodable AnyEncodable.swift
[13/22] Emitting module AnyCodable
[14/22] Emitting module HTMLString
[15/22] Compiling HTMLString HTMLString.swift
[16/22] Compiling HTMLString Mappings.swift
[17/22] Compiling Regex Regex.swift
[18/22] Compiling Regex Options.swift
[19/22] Compiling Regex MatchResult.swift
[20/22] Compiling Regex Foundation+Ranges.swift
[21/22] Emitting module Regex
[22/22] Compiling Regex String+ReplaceMatching.swift
[23/34] Compiling GeoJSON MultiLineString.swift
[24/34] Compiling GeoJSON MultiPoint.swift
[25/34] Compiling GeoJSON GeometryCollection.swift
[26/34] Compiling GeoJSON MultiPolygon.swift
[27/35] Compiling GeoJSON Point.swift
[28/35] Compiling GeoJSON Polygon.swift
[29/35] Compiling GeoJSON LineString.swift
[30/35] Compiling GeoJSON FeatureCollection.swift
[31/35] Compiling GeoJSON Geometry.swift
[32/35] Emitting module GeoJSON
[33/35] Compiling GeoJSON BoundingBox.swift
[34/35] Compiling GeoJSON Feature.swift
[35/35] Compiling GeoJSON Position.swift
[36/46] Compiling OpenParking Regex.swift
[37/47] Emitting module OpenParking
/Users/admin/builder/spi-builder-workspace/Sources/OpenParking/Date.swift:3:13: warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var dateFormatter = DateFormatter()
   |             |- warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'dateFormatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | /// Pre-defined date format values for use with `String.date(withFormat:)`.
/Users/admin/builder/spi-builder-workspace/Sources/OpenParking/Warning.swift:14:16: warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     }
13 |
14 |     static var warnings: [Warning] = []
   |                |- warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'warnings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'warnings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     public static func flush() -> [Warning] {
[38/47] Compiling OpenParking Network.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenParking/Network.swift:87:17: warning: capture of 'completion' with non-sendable type '(Result<(Data, HTTPURLResponse), OpenParkingError>) -> Void' in a '@Sendable' closure
 85 |             let response = response as? HTTPURLResponse,
 86 |             error == nil else {
 87 |                 completion(.failure(.network(error!)))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<(Data, HTTPURLResponse), OpenParkingError>) -> Void' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 88 |                 return
 89 |         }
[39/47] Compiling OpenParking HTMLString.swift
[40/47] Compiling OpenParking Datasource.swift
[41/47] Compiling OpenParking Coordinates.swift
[42/47] Compiling OpenParking DataPoint.swift
[43/47] Compiling OpenParking Date.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenParking/Date.swift:3:13: warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var dateFormatter = DateFormatter()
   |             |- warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'dateFormatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | /// Pre-defined date format values for use with `String.date(withFormat:)`.
[44/47] Compiling OpenParking Error.swift
[45/47] Compiling OpenParking Lot.swift
[46/47] Compiling OpenParking GeoJson.swift
[47/47] Compiling OpenParking Warning.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenParking/Warning.swift:14:16: warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     }
13 |
14 |     static var warnings: [Warning] = []
   |                |- warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'warnings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'warnings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     public static func flush() -> [Warning] {
[48/49] Compiling OpenParkingTestSupport Validate.swift
[49/49] Emitting module OpenParkingTestSupport
Build complete! (17.10s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "geojson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kiliankoe/GeoJSON"
    },
    {
      "identity" : "htmlstring",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexaubry/HTMLString"
    },
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex"
    }
  ],
  "manifest_display_name" : "OpenParking",
  "name" : "OpenParking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenParking",
      "targets" : [
        "OpenParking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "OpenParkingTestSupport",
      "targets" : [
        "OpenParkingTestSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenParkingTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTests",
      "path" : "Tests/OpenParkingTests",
      "sources" : [
        "OpenParkingTests.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenParkingTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTestSupport",
      "path" : "Sources/OpenParkingTestSupport",
      "product_memberships" : [
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Validate.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OpenParking",
      "module_type" : "SwiftTarget",
      "name" : "OpenParking",
      "path" : "Sources/OpenParking",
      "product_dependencies" : [
        "GeoJSON",
        "HTMLString",
        "Regex"
      ],
      "product_memberships" : [
        "OpenParking",
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Coordinates.swift",
        "DataPoint.swift",
        "Datasource.swift",
        "Date.swift",
        "Error.swift",
        "GeoJson.swift",
        "HTMLString.swift",
        "Lot.swift",
        "Network.swift",
        "Regex.swift",
        "Warning.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.