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 1.0.9 (cd690e), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 01:58:34 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 -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.58.1
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/airbnb/swift
Fetching https://github.com/apple/swift-argument-parser
[1/4012] Fetching swift
[724/16407] Fetching swift, swift-argument-parser
Fetched https://github.com/airbnb/swift from cache (4.38s)
Fetched https://github.com/apple/swift-argument-parser from cache (4.38s)
Computing version for https://github.com/airbnb/swift
Computed https://github.com/airbnb/swift at 1.0.7 (2.89s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.1 (0.46s)
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
[16375/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.12s)
Downloaded https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLintBinary-macos.artifactbundle.zip (1.35s)
========================================
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.74s)
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
{
  "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.1.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--7754E27361AE5C74.txt
[5/20] Compiling URLEncodedForm BasicKey.swift
[6/21] Compiling URLEncodedForm LosslessDataConvertible.swift
[7/21] Compiling URLEncodedForm Bytes.swift
[8/21] Compiling URLEncodedForm URLEncodedFormData.swift
[9/21] Compiling URLEncodedForm URLEncodedFormDataContext.swift
[10/21] Compiling URLEncodedForm NestedData.swift
[11/21] Compiling URLEncodedForm URLEncodedFormError.swift
[12/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.
[13/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.
[14/21] Compiling URLEncodedForm DataDecoder.swift
[15/21] Compiling URLEncodedForm DataEncoder.swift
[16/21] Compiling URLEncodedForm URLEncodedFormDecoder.swift
[17/21] Compiling URLEncodedForm URLEncodedFormEncoder.swift
[18/21] Compiling URLEncodedForm Byte+Control.swift
[19/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: "?&=[];+")
[20/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: "?&=[];+")
[21/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: "?&=[];+")
Build complete! (19.38s)
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.