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 TriforkSwiftNetworking, reference 1.3.0 (3339bc), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 20:05:48 UTC.

Swift 6 data race errors: 2

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/trifork/TriforkSwiftNetworking.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/trifork/TriforkSwiftNetworking
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 3339bc4 Merge pull request #4 from trifork/kimdv/add-cache-policy
Cloned https://github.com/trifork/TriforkSwiftNetworking.git
Revision (git rev-parse @):
3339bc40f9f793df79357442c55977f4e8a170ce
SUCCESS checkout https://github.com/trifork/TriforkSwiftNetworking.git at 1.3.0
========================================
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.69s)
Creating working copy for https://github.com/trifork/TriforkSwiftNetworking.git
Working copy of https://github.com/trifork/TriforkSwiftNetworking.git resolved at 1.3.0 (3339bc4)
warning: '.resolve-product-dependencies': dependency 'triforkswiftnetworking' 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/trifork/TriforkSwiftNetworking.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling TriforkSwiftNetworking Response.swift
[4/12] 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: annotate 'isDebugPrintingEnabled' 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
 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)
[5/12] 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: annotate 'isDebugPrintingEnabled' 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
 8 | }
 9 |
[6/12] Compiling TriforkSwiftNetworking NetworkSession.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: annotate 'isDebugPrintingEnabled' 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
 8 | }
 9 |
[7/12] Compiling TriforkSwiftNetworking HTTPRequest.swift
[8/12] Compiling TriforkSwiftNetworking EntityResponse.swift
[9/12] Compiling TriforkSwiftNetworking CollectionResponse.swift
[10/12] 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)
[11/12] Compiling TriforkSwiftNetworking URL+URLComponents.swift
[12/12] Compiling TriforkSwiftNetworking Logger.swift
Build complete! (14.56s)
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"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TriforkSwiftNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftNetworkingTests",
      "path" : "Tests/TriforkSwiftNetworkingTests",
      "sources" : [
        "Helpers/MockNetworkSession.swift",
        "Helpers/TestRequst.swift",
        "HttpRequestTests.swift",
        "RequestBuilderTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TriforkSwiftNetworking"
      ],
      "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"
    }
  ],
  "tools_version" : "5.3"
}
Done.