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 TriforkSwiftNetworking, reference main (4ff071), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 14:24:39 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/trifork/TriforkSwiftNetworking.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/trifork/TriforkSwiftNetworking
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4ff0711 Merge pull request #5 from trifork/tkc/mock-helpers
Cloned https://github.com/trifork/TriforkSwiftNetworking.git
Revision (git rev-parse @):
4ff071159447d6f4fe6c4454d4538aabe112029e
SUCCESS checkout https://github.com/trifork/TriforkSwiftNetworking.git at main
========================================
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": "triforkswiftnetworking",
      "name": "TriforkSwiftNetworking",
      "url": "https://github.com/trifork/TriforkSwiftNetworking.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TriforkSwiftNetworking",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/trifork/TriforkSwiftNetworking.git
[1/185] Fetching triforkswiftnetworking
Fetched https://github.com/trifork/TriforkSwiftNetworking.git from cache (0.65s)
Creating working copy for https://github.com/trifork/TriforkSwiftNetworking.git
Working copy of https://github.com/trifork/TriforkSwiftNetworking.git resolved at main (4ff0711)
warning: '.resolve-product-dependencies': dependency 'triforkswiftnetworking' 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/trifork/TriforkSwiftNetworking.git
https://github.com/trifork/TriforkSwiftNetworking.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TriforkSwiftNetworking",
  "name" : "TriforkSwiftNetworking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TriforkSwiftNetworking",
      "targets" : [
        "TriforkSwiftNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TSNMockHelpers",
      "targets" : [
        "TSNMockHelpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TriforkSwiftNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftNetworkingTests",
      "path" : "Tests/TriforkSwiftNetworkingTests",
      "sources" : [
        "Helpers/MockNetworkSession.swift",
        "Helpers/TestRequest.swift",
        "HttpRequestTests.swift",
        "NetworkSessionTests.swift",
        "RequestBuilderTests.swift"
      ],
      "target_dependencies" : [
        "TriforkSwiftNetworking",
        "TSNMockHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TriforkSwiftNetworking",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftNetworking",
      "path" : "Sources/TriforkSwiftNetworking",
      "product_memberships" : [
        "TriforkSwiftNetworking"
      ],
      "sources" : [
        "Config/Logger.swift",
        "Config/TriforkSwiftNetworkingConfig.swift",
        "Extensions/URL+URLComponents.swift",
        "NetworkSession.swift",
        "Request/HTTPRequest.swift",
        "Response/CollectionResponse.swift",
        "Response/EntityResponse.swift",
        "Response/Response.swift",
        "URLSession+NetworkSession.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TSNMockHelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "TSNMockHelpersTests",
      "path" : "Tests/TSNMockHelpersTests",
      "sources" : [
        "URLSessionMockTests.swift"
      ],
      "target_dependencies" : [
        "TSNMockHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TSNMockHelpers",
      "module_type" : "SwiftTarget",
      "name" : "TSNMockHelpers",
      "path" : "Sources/TSNMockHelpers",
      "product_memberships" : [
        "TSNMockHelpers"
      ],
      "sources" : [
        "URLSession+Extensions.swift",
        "URLSessionMockProtocol.swift",
        "URLSessionMockResult.swift",
        "URLSessionStubResponses.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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/18] Compiling TriforkSwiftNetworking URLSession+NetworkSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftNetworking/URLSession+NetworkSession.swift:11:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'NetworkSession'; this is an error in the Swift 6 language mode
 9 |
10 | /// Default implementaion
11 | extension URLSession: NetworkSession { }
   | `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'NetworkSession'; this is an error in the Swift 6 language mode
12 |
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftNetworking/NetworkSession.swift:30:10: note: expected sendability to match requirement here
 28 |     ///      - `error`: An error object that indicates why the request failed, or nil if the request was successful.
 29 |     /// - Returns: The new session data task.
 30 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
    |          `- note: expected sendability to match requirement here
 31 |
 32 |     #if canImport(Combine)
[5/18] Compiling TriforkSwiftNetworking CollectionResponse.swift
[6/18] Compiling TriforkSwiftNetworking URL+URLComponents.swift
[7/18] Compiling TriforkSwiftNetworking EntityResponse.swift
[8/18] Compiling TriforkSwiftNetworking Response.swift
[9/18] Compiling TSNMockHelpers URLSessionMockResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:6:23: warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public struct URLSessionStubResults {
 5 |     /// Contains stub results for specific URLs, which will be used when mocking `URLSession` via `URLSessionMockProtocol`
 6 |     public static var resultsForUrls: [URL?: URLSessionStubResult] = [:]
   |                       |- warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'resultsForUrls' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'resultsForUrls' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 |     /// Resets the stub storage
[10/18] Compiling TSNMockHelpers URLSessionStubResponses.swift
[11/18] Compiling TSNMockHelpers URLSession+Extensions.swift
[12/18] Emitting module TSNMockHelpers
/Users/admin/builder/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:6:23: warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public struct URLSessionStubResults {
 5 |     /// Contains stub results for specific URLs, which will be used when mocking `URLSession` via `URLSessionMockProtocol`
 6 |     public static var resultsForUrls: [URL?: URLSessionStubResult] = [:]
   |                       |- warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'resultsForUrls' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'resultsForUrls' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 |     /// Resets the stub storage
[13/18] Compiling TSNMockHelpers URLSessionMockProtocol.swift
[14/18] Compiling TriforkSwiftNetworking Logger.swift
[15/18] Compiling TriforkSwiftNetworking NetworkSession.swift
[16/18] Emitting module TriforkSwiftNetworking
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/TriforkSwiftNetworkingConfig.swift:7:23: warning: static property 'isDebugPrintingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 |     /// All requests will be printed if set to `true`. Default value is `false`
 7 |     public static var isDebugPrintingEnabled: Bool = false
   |                       |- warning: static property 'isDebugPrintingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'isDebugPrintingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'isDebugPrintingEnabled' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 | }
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftNetworking/URLSession+NetworkSession.swift:11:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'NetworkSession'; this is an error in the Swift 6 language mode
 9 |
10 | /// Default implementaion
11 | extension URLSession: NetworkSession { }
   | `- warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'NetworkSession'; this is an error in the Swift 6 language mode
12 |
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftNetworking/NetworkSession.swift:30:10: note: expected sendability to match requirement here
 28 |     ///      - `error`: An error object that indicates why the request failed, or nil if the request was successful.
 29 |     /// - Returns: The new session data task.
 30 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
    |          `- note: expected sendability to match requirement here
 31 |
 32 |     #if canImport(Combine)
[17/18] Compiling TriforkSwiftNetworking TriforkSwiftNetworkingConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/TriforkSwiftNetworkingConfig.swift:7:23: warning: static property 'isDebugPrintingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 |     /// All requests will be printed if set to `true`. Default value is `false`
 7 |     public static var isDebugPrintingEnabled: Bool = false
   |                       |- warning: static property 'isDebugPrintingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'isDebugPrintingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'isDebugPrintingEnabled' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 | }
 9 |
[18/18] Compiling TriforkSwiftNetworking HTTPRequest.swift
Build complete! (6.17s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TriforkSwiftNetworking",
  "name" : "TriforkSwiftNetworking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TriforkSwiftNetworking",
      "targets" : [
        "TriforkSwiftNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TSNMockHelpers",
      "targets" : [
        "TSNMockHelpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TriforkSwiftNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftNetworkingTests",
      "path" : "Tests/TriforkSwiftNetworkingTests",
      "sources" : [
        "Helpers/MockNetworkSession.swift",
        "Helpers/TestRequest.swift",
        "HttpRequestTests.swift",
        "NetworkSessionTests.swift",
        "RequestBuilderTests.swift"
      ],
      "target_dependencies" : [
        "TriforkSwiftNetworking",
        "TSNMockHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TriforkSwiftNetworking",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftNetworking",
      "path" : "Sources/TriforkSwiftNetworking",
      "product_memberships" : [
        "TriforkSwiftNetworking"
      ],
      "sources" : [
        "Config/Logger.swift",
        "Config/TriforkSwiftNetworkingConfig.swift",
        "Extensions/URL+URLComponents.swift",
        "NetworkSession.swift",
        "Request/HTTPRequest.swift",
        "Response/CollectionResponse.swift",
        "Response/EntityResponse.swift",
        "Response/Response.swift",
        "URLSession+NetworkSession.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TSNMockHelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "TSNMockHelpersTests",
      "path" : "Tests/TSNMockHelpersTests",
      "sources" : [
        "URLSessionMockTests.swift"
      ],
      "target_dependencies" : [
        "TSNMockHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TSNMockHelpers",
      "module_type" : "SwiftTarget",
      "name" : "TSNMockHelpers",
      "path" : "Sources/TSNMockHelpers",
      "product_memberships" : [
        "TSNMockHelpers"
      ],
      "sources" : [
        "URLSession+Extensions.swift",
        "URLSessionMockProtocol.swift",
        "URLSessionMockResult.swift",
        "URLSessionStubResponses.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.