The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of URLEncodedForm, reference main (cd690e), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 19:22:16 UTC.

Swift 6 data race errors: 3

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/forXifLess/URLEncodedForm.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/forXifLess/URLEncodedForm
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
Fetching https://github.com/airbnb/swift
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.66s)
[1/4076] Fetching swift
Fetched https://github.com/airbnb/swift from cache (2.19s)
Computing version for https://github.com/airbnb/swift
Computed https://github.com/airbnb/swift at 1.0.7 (3.23s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.1 (0.53s)
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
Creating working copy for https://github.com/airbnb/swift
Working copy of https://github.com/airbnb/swift resolved at 1.0.7
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip
Downloading binary artifact https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip
[2747/2134651] Downloading https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip
[1132564/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
Downloaded https://github.com/calda/SwiftFormat/releases/download/0.54-beta-5/SwiftFormat.artifactbundle.zip (1.24s)
[8929527/10025266] Downloading https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip (1.73s)
========================================
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/106] Fetching urlencodedform
Fetched https://github.com/forXifLess/URLEncodedForm.git from cache (0.59s)
Creating working copy for https://github.com/forXifLess/URLEncodedForm.git
Working copy of https://github.com/forXifLess/URLEncodedForm.git resolved at main (cd690e9)
warning: '.resolve-product-dependencies': dependency 'urlencodedform' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/forXifLess/URLEncodedForm.git
https://github.com/forXifLess/URLEncodedForm.git
{
  "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"
}
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
[1/1] Compiling plugin FormatSwift
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/20] Compiling URLEncodedForm Bytes.swift
[6/21] Compiling URLEncodedForm BasicKey.swift
[7/21] Compiling URLEncodedForm URLEncodedFormData.swift
[8/21] Compiling URLEncodedForm URLEncodedFormDataContext.swift
[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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |              `- 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: add '@MainActor' to make var '_allowedCharacters' part of global actor 'MainActor'
   |             `- 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |              `- 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: add '@MainActor' to make var '_allowedCharacters' part of global actor 'MainActor'
   |             `- 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |   /// Parses the data.
[13/21] Compiling URLEncodedForm Byte+Control.swift
[14/21] Compiling URLEncodedForm NestedData.swift
[15/21] Compiling URLEncodedForm URLEncodedFormError.swift
[16/21] Compiling URLEncodedForm DataDecoder.swift
[17/21] Compiling URLEncodedForm DataEncoder.swift
[18/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |              `- 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |              `- 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: add '@MainActor' to make var '_allowedCharacters' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |   var allowed = CharacterSet.urlQueryAllowed
89 |   allowed.remove(charactersIn: "?&=[];+")
[19/21] Compiling URLEncodedForm URLEncodedFormDecoder.swift
[20/21] Compiling URLEncodedForm URLEncodedFormEncoder.swift
[21/21] Compiling URLEncodedForm LosslessDataConvertible.swift
Build complete! (8.84s)
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.