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 Mocker, reference 3.0.2 (95fa78), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 07:02:26 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/WeTransfer/Mocker.git
Reference: 3.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/WeTransfer/Mocker
 * tag               3.0.2      -> FETCH_HEAD
HEAD is now at 95fa785 Merge pull request #151 from WeTransfer/feature/update-ci
Submodule path 'Submodules/WeTransfer-iOS-CI': checked out '41b37067e599cdbc23dfd1cc86848f015b35a7dc'
Submodule 'Submodules/WeTransfer-iOS-CI' (https://github.com/WeTransfer/WeTransfer-iOS-CI.git) registered for path 'Submodules/WeTransfer-iOS-CI'
Cloning into '/Users/admin/builder/spi-builder-workspace/Submodules/WeTransfer-iOS-CI'...
Cloned https://github.com/WeTransfer/Mocker.git
Revision (git rev-parse @):
95fa785c751f6bc40c49e112d433c3acf8417a97
SUCCESS checkout https://github.com/WeTransfer/Mocker.git at 3.0.2
========================================
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": "mocker",
      "name": "Mocker",
      "url": "https://github.com/WeTransfer/Mocker.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Mocker",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/WeTransfer/Mocker.git
[1/1891] Fetching mocker
Fetched https://github.com/WeTransfer/Mocker.git from cache (1.33s)
Creating working copy for https://github.com/WeTransfer/Mocker.git
Working copy of https://github.com/WeTransfer/Mocker.git resolved at 3.0.2 (95fa785)
warning: '.resolve-product-dependencies': dependency 'mocker' 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/WeTransfer/Mocker.git
https://github.com/WeTransfer/Mocker.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Mocker",
  "name" : "Mocker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Mocker",
      "targets" : [
        "Mocker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "MockerTests",
      "module_type" : "SwiftTarget",
      "name" : "MockerTests",
      "path" : "Tests/MockerTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/MockerTests/Resources/JSON Files/example.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/MockerTests/Resources/sample-redirect-get.data",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/MockerTests/Resources/wetransfer_bot_avatar.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "MockTests.swift",
        "MockedData.swift",
        "MockerTests.swift"
      ],
      "target_dependencies" : [
        "Mocker"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Mocker",
      "module_type" : "SwiftTarget",
      "name" : "Mocker",
      "path" : "Sources/Mocker",
      "product_memberships" : [
        "Mocker"
      ],
      "sources" : [
        "Mock+DataType.swift",
        "Mock.swift",
        "Mocker.swift",
        "MockingURLProtocol.swift",
        "OnRequestHandler.swift",
        "XCTest+Mocker.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/9] Compiling Mocker OnRequestHandler.swift
[4/9] Compiling Mocker XCTest+Mocker.swift
[5/9] Compiling Mocker MockingURLProtocol.swift
[6/9] Compiling Mocker Mocker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:56:23: warning: static property 'mode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 |     /// The mode defines how unknown URLs are handled. Defaults to `optout` which means requests without a mock will fail.
 56 |     public static var mode: Mode = .optout
    |                       |- warning: static property 'mode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mode' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// The shared instance of the Mocker, can be used to register and return mocks.
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:59:25: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 |
 58 |     /// The shared instance of the Mocker, can be used to register and return mocks.
 59 |     internal static var shared = Mocker()
    |                         |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// The HTTP Version to use in the mocked response.
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:62:23: warning: static property 'httpVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// The HTTP Version to use in the mocked response.
 62 |     public static var httpVersion: HTTPVersion = HTTPVersion.http1_1
    |                       |- warning: static property 'httpVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'httpVersion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'httpVersion' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /// The registrated mocks.
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:88:51: warning: capture of 'mock' with non-sendable type 'Mock' in a '@Sendable' closure
 86 |         shared.queue.async(flags: .barrier) {
 87 |             /// Delete the Mock if it was already registered.
 88 |             shared.mocks.removeAll(where: { $0 == mock })
    |                                                   `- warning: capture of 'mock' with non-sendable type 'Mock' in a '@Sendable' closure
 89 |             shared.mocks.append(mock)
 90 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mock.swift:18:15: note: consider making struct 'Mock' conform to the 'Sendable' protocol
 16 |
 17 | /// A Mock which can be used for mocking data requests with the `Mocker` by calling `Mocker.register(...)`.
 18 | public struct Mock: Equatable {
    |               `- note: consider making struct 'Mock' conform to the 'Sendable' protocol
 19 |
 20 |     /// HTTP method definitions.
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:88:51: warning: capture of 'mock' with non-sendable type 'Mock' in an isolated closure; this is an error in the Swift 6 language mode
 86 |         shared.queue.async(flags: .barrier) {
 87 |             /// Delete the Mock if it was already registered.
 88 |             shared.mocks.removeAll(where: { $0 == mock })
    |                                                   `- warning: capture of 'mock' with non-sendable type 'Mock' in an isolated closure; this is an error in the Swift 6 language mode
 89 |             shared.mocks.append(mock)
 90 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mock.swift:18:15: note: consider making struct 'Mock' conform to the 'Sendable' protocol
 16 |
 17 | /// A Mock which can be used for mocking data requests with the `Mocker` by calling `Mocker.register(...)`.
 18 | public struct Mock: Equatable {
    |               `- note: consider making struct 'Mock' conform to the 'Sendable' protocol
 19 |
 20 |     /// HTTP method definitions.
[7/9] Compiling Mocker Mock+DataType.swift
[8/9] Compiling Mocker Mock.swift
[9/9] Emitting module Mocker
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:56:23: warning: static property 'mode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 |     /// The mode defines how unknown URLs are handled. Defaults to `optout` which means requests without a mock will fail.
 56 |     public static var mode: Mode = .optout
    |                       |- warning: static property 'mode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mode' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// The shared instance of the Mocker, can be used to register and return mocks.
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:59:25: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 |
 58 |     /// The shared instance of the Mocker, can be used to register and return mocks.
 59 |     internal static var shared = Mocker()
    |                         |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// The HTTP Version to use in the mocked response.
/Users/admin/builder/spi-builder-workspace/Sources/Mocker/Mocker.swift:62:23: warning: static property 'httpVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// The HTTP Version to use in the mocked response.
 62 |     public static var httpVersion: HTTPVersion = HTTPVersion.http1_1
    |                       |- warning: static property 'httpVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'httpVersion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'httpVersion' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /// The registrated mocks.
Build complete! (11.17s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Mocker",
  "name" : "Mocker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Mocker",
      "targets" : [
        "Mocker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "MockerTests",
      "module_type" : "SwiftTarget",
      "name" : "MockerTests",
      "path" : "Tests/MockerTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/MockerTests/Resources/JSON Files/example.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/MockerTests/Resources/sample-redirect-get.data",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/MockerTests/Resources/wetransfer_bot_avatar.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "MockTests.swift",
        "MockedData.swift",
        "MockerTests.swift"
      ],
      "target_dependencies" : [
        "Mocker"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Mocker",
      "module_type" : "SwiftTarget",
      "name" : "Mocker",
      "path" : "Sources/Mocker",
      "product_memberships" : [
        "Mocker"
      ],
      "sources" : [
        "Mock+DataType.swift",
        "Mock.swift",
        "Mocker.swift",
        "MockingURLProtocol.swift",
        "OnRequestHandler.swift",
        "XCTest+Mocker.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.