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 URLEncodedForm, reference 1.0.9 (cd690e), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 00:30:23 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/forXifLess/URLEncodedForm.git
Reference: 1.0.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/forXifLess/URLEncodedForm
 * tag               1.0.9      -> FETCH_HEAD
HEAD is now at cd690e9 fix: Delete Extension Methods
Cloned https://github.com/forXifLess/URLEncodedForm.git
Revision (git rev-parse @):
cd690e95f0df333293ec3f9fa9c2c7322ef54bbf
SUCCESS checkout https://github.com/forXifLess/URLEncodedForm.git at 1.0.9
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/airbnb/swift
[1/4012] Fetching swift
[403/16365] Fetching swift, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (2.52s)
Fetched https://github.com/airbnb/swift from cache (2.52s)
Computing version for https://github.com/airbnb/swift
Computed https://github.com/airbnb/swift at 1.0.7 (3.32s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.1 (0.51s)
Creating working copy for https://github.com/airbnb/swift
Working copy of https://github.com/airbnb/swift resolved at 1.0.7
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.3.1
[11015/2134651] Downloading https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip
Downloading binary artifact https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip
[2167401/12159917] Downloading https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip, https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip
Downloaded https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip (1.14s)
Downloaded https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip (1.38s)
========================================
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": "urlencodedform",
      "name": "URLEncodedForm",
      "url": "https://github.com/forXifLess/URLEncodedForm.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/URLEncodedForm",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/forXifLess/URLEncodedForm.git
[1/102] Fetching urlencodedform
Fetched https://github.com/forXifLess/URLEncodedForm.git from cache (0.66s)
Creating working copy for https://github.com/forXifLess/URLEncodedForm.git
Working copy of https://github.com/forXifLess/URLEncodedForm.git resolved at 1.0.9 (cd690e9)
warning: '.resolve-product-dependencies': dependency 'urlencodedform' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/forXifLess/URLEncodedForm.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin FormatSwift
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/20] Compiling URLEncodedForm Byte+Control.swift
[6/21] Compiling URLEncodedForm Bytes.swift
[7/21] Compiling URLEncodedForm BasicKey.swift
[8/21] Emitting module URLEncodedForm
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift:16:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormParser' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// Converts `Data` to `[String: URLEncodedFormData]`.
  6 | final class URLEncodedFormParser {
    |             `- note: class 'URLEncodedFormParser' does not conform to the 'Sendable' protocol
  7 |
  8 |   // MARK: Lifecycle
    :
 14 |
 15 |   /// Default form url encoded parser.
 16 |   static let `default` = URLEncodedFormParser()
    |              |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |   /// Parses the data.
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift:16:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormSerializer' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |
 5 | /// Converts `[String: URLEncodedFormData]` structs to `Data`.
 6 | final class URLEncodedFormSerializer {
   |             `- note: class 'URLEncodedFormSerializer' does not conform to the 'Sendable' protocol
 7 |
 8 |   // MARK: Lifecycle
   :
14 |
15 |   /// Default form url encoded serializer.
16 |   static let `default` = URLEncodedFormSerializer()
   |              |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormSerializer' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |   /// Serializes the data.
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift:87:13: warning: var '_allowedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 |
86 | /// Characters allowed in form-urlencoded data.
87 | private var _allowedCharacters: CharacterSet = {
   |             |- warning: var '_allowedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_allowedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_allowedCharacters' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |   var allowed = CharacterSet.urlQueryAllowed
89 |   allowed.remove(charactersIn: "?&=[];+")
[9/21] Compiling URLEncodedForm URLEncodedFormSerializer.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift:16:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormSerializer' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |
 5 | /// Converts `[String: URLEncodedFormData]` structs to `Data`.
 6 | final class URLEncodedFormSerializer {
   |             `- note: class 'URLEncodedFormSerializer' does not conform to the 'Sendable' protocol
 7 |
 8 |   // MARK: Lifecycle
   :
14 |
15 |   /// Default form url encoded serializer.
16 |   static let `default` = URLEncodedFormSerializer()
   |              |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormSerializer' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |   /// Serializes the data.
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift:87:13: warning: var '_allowedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 |
86 | /// Characters allowed in form-urlencoded data.
87 | private var _allowedCharacters: CharacterSet = {
   |             |- warning: var '_allowedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_allowedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_allowedCharacters' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |   var allowed = CharacterSet.urlQueryAllowed
89 |   allowed.remove(charactersIn: "?&=[];+")
[10/21] Compiling URLEncodedForm URLEncodedForm.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift:16:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormSerializer' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |
 5 | /// Converts `[String: URLEncodedFormData]` structs to `Data`.
 6 | final class URLEncodedFormSerializer {
   |             `- note: class 'URLEncodedFormSerializer' does not conform to the 'Sendable' protocol
 7 |
 8 |   // MARK: Lifecycle
   :
14 |
15 |   /// Default form url encoded serializer.
16 |   static let `default` = URLEncodedFormSerializer()
   |              |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormSerializer' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |   /// Serializes the data.
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormSerializer.swift:87:13: warning: var '_allowedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 |
86 | /// Characters allowed in form-urlencoded data.
87 | private var _allowedCharacters: CharacterSet = {
   |             |- warning: var '_allowedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_allowedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_allowedCharacters' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |   var allowed = CharacterSet.urlQueryAllowed
89 |   allowed.remove(charactersIn: "?&=[];+")
[11/21] Compiling URLEncodedForm URLEncodedFormDataConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift:16:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormParser' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// Converts `Data` to `[String: URLEncodedFormData]`.
  6 | final class URLEncodedFormParser {
    |             `- note: class 'URLEncodedFormParser' does not conform to the 'Sendable' protocol
  7 |
  8 |   // MARK: Lifecycle
    :
 14 |
 15 |   /// Default form url encoded parser.
 16 |   static let `default` = URLEncodedFormParser()
    |              |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |   /// Parses the data.
[12/21] Compiling URLEncodedForm URLEncodedFormParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLEncodedForm/Data/URLEncodedFormParser.swift:16:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormParser' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// Converts `Data` to `[String: URLEncodedFormData]`.
  6 | final class URLEncodedFormParser {
    |             `- note: class 'URLEncodedFormParser' does not conform to the 'Sendable' protocol
  7 |
  8 |   // MARK: Lifecycle
    :
 14 |
 15 |   /// Default form url encoded parser.
 16 |   static let `default` = URLEncodedFormParser()
    |              |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncodedFormParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |   /// Parses the data.
[13/21] Compiling URLEncodedForm URLEncodedFormDecoder.swift
[14/21] Compiling URLEncodedForm URLEncodedFormEncoder.swift
[15/21] Compiling URLEncodedForm URLEncodedFormData.swift
[16/21] Compiling URLEncodedForm URLEncodedFormDataContext.swift
[17/21] Compiling URLEncodedForm NestedData.swift
[18/21] Compiling URLEncodedForm URLEncodedFormError.swift
[19/21] Compiling URLEncodedForm DataDecoder.swift
[20/21] Compiling URLEncodedForm DataEncoder.swift
[21/21] Compiling URLEncodedForm LosslessDataConvertible.swift
Build complete! (20.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.5",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/airbnb/swift"
    }
  ],
  "manifest_display_name" : "URLEncodedForm",
  "name" : "URLEncodedForm",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "URLEncodedForm",
      "targets" : [
        "URLEncodedForm"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "URLEncodedFormTests",
      "module_type" : "SwiftTarget",
      "name" : "URLEncodedFormTests",
      "path" : "Tests/URLEncodedFormTests",
      "sources" : [
        "URLEncodedFormTests.swift"
      ],
      "target_dependencies" : [
        "URLEncodedForm"
      ],
      "type" : "test"
    },
    {
      "c99name" : "URLEncodedForm",
      "module_type" : "SwiftTarget",
      "name" : "URLEncodedForm",
      "path" : "Sources/URLEncodedForm",
      "product_memberships" : [
        "URLEncodedForm"
      ],
      "sources" : [
        "Codable/URLEncodedFormDecoder.swift",
        "Codable/URLEncodedFormEncoder.swift",
        "Core/DataDecoder.swift",
        "Core/DataEncoder.swift",
        "Core/NestedData.swift",
        "Core/URLEncodedFormError.swift",
        "Data/URLEncodedFormData.swift",
        "Data/URLEncodedFormDataContext.swift",
        "Data/URLEncodedFormDataConvertible.swift",
        "Data/URLEncodedFormParser.swift",
        "Data/URLEncodedFormSerializer.swift",
        "URLEncodedForm.swift",
        "Util/Bytes/Byte+Control.swift",
        "Util/Bytes/Bytes.swift",
        "Util/CodingKey/BasicKey.swift",
        "Util/LosslessDataConvertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.