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 SimpleHttpClient, reference 1.0.0 (e5b6ce), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 08:32:55 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/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at e5b6ce4 added swift 4 and swift 5 support
Cloned https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Revision (git rev-parse @):
e5b6ce424f1ff8bc78eee0fae382ac7f1f8ca843
SUCCESS checkout https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git at 1.0.0
Fetching https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Fetching https://github.com/IBM-Swift/Kitura-net.git
[1/245] Fetching bluemix-simple-logger-swift
[224/9789] Fetching bluemix-simple-logger-swift, kitura-net
Fetched https://github.com/IBM-Swift/Kitura-net.git from cache (1.78s)
Fetched https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git from cache (1.78s)
Computing version for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Computed https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git at 0.6.0 (0.76s)
Computing version for https://github.com/IBM-Swift/Kitura-net.git
Computed https://github.com/IBM-Swift/Kitura-net.git at 2.4.200 (0.68s)
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
[1/771] Fetching loggerapi
[148/2859] Fetching loggerapi, bluesslservice
[200/5801] Fetching loggerapi, bluesslservice, bluesocket
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.04s)
[4354/5030] Fetching bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSSLService.git from cache (1.17s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (1.17s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.68s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.69s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.67s)
Fetching https://github.com/apple/swift-log.git
[1/3649] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.10s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.49s)
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/IBM-Swift/Kitura-net.git
Working copy of https://github.com/IBM-Swift/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Working copy of https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git resolved at 0.6.0
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
========================================
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": "bluemix-simple-http-client-swift",
      "name": "SimpleHttpClient",
      "url": "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bluemix-simple-http-client-swift",
      "dependencies": [
        {
          "identity": "bluemix-simple-logger-swift",
          "name": "SimpleLogger",
          "url": "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git",
          "version": "0.6.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bluemix-simple-logger-swift",
          "dependencies": [
          ]
        },
        {
          "identity": "kitura-net",
          "name": "Kitura-net",
          "url": "https://github.com/IBM-Swift/Kitura-net.git",
          "version": "2.4.200",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kitura-net",
          "dependencies": [
            {
              "identity": "loggerapi",
              "name": "LoggerAPI",
              "url": "https://github.com/Kitura/LoggerAPI.git",
              "version": "1.9.200",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
              "dependencies": [
                {
                  "identity": "swift-log",
                  "name": "swift-log",
                  "url": "https://github.com/apple/swift-log.git",
                  "version": "1.6.1",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
                  "dependencies": [
                  ]
                }
              ]
            },
            {
              "identity": "bluesocket",
              "name": "Socket",
              "url": "https://github.com/Kitura/BlueSocket.git",
              "version": "1.0.200",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
              "dependencies": [
              ]
            },
            {
              "identity": "bluesslservice",
              "name": "SSLService",
              "url": "https://github.com/Kitura/BlueSSLService.git",
              "version": "1.0.200",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSSLService",
              "dependencies": [
                {
                  "identity": "bluesocket",
                  "name": "Socket",
                  "url": "https://github.com/Kitura/BlueSocket.git",
                  "version": "1.0.200",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
                  "dependencies": [
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
[9/432] Fetching bluemix-simple-http-client-swift
Fetched https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git from cache (0.81s)
Fetching https://github.com/IBM-Swift/Kitura-net.git from cache
Fetching https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git from cache
Fetched https://github.com/IBM-Swift/Kitura-net.git from cache (0.91s)
Fetched https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git from cache (0.91s)
Computing version for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Computed https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git at 0.6.0 (0.04s)
Computing version for https://github.com/IBM-Swift/Kitura-net.git
Computed https://github.com/IBM-Swift/Kitura-net.git at 2.4.200 (0.04s)
Fetching https://github.com/Kitura/BlueSocket.git from cache
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetching https://github.com/Kitura/BlueSSLService.git from cache
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.60s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.60s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.60s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.04s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.04s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.04s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.46s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.03s)
Creating working copy for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
Working copy of https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git resolved at 0.6.0
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
Working copy of https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git resolved at 1.0.0 (e5b6ce4)
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/IBM-Swift/Kitura-net.git
Working copy of https://github.com/IBM-Swift/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
warning: '.resolve-product-dependencies': dependency 'bluemix-simple-http-client-swift' is not used by any target
Found 2 product dependencies
  - SimpleLogger
  - Kitura-net
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.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/10] Write sources
[7/10] Write swift-version--7754E27361AE5C74.txt
[8/21] Compiling CHTTPParser http_parser.c
[9/21] Compiling CHTTPParser utils.c
[11/21] Compiling Logging MetadataProvider.swift
[12/21] Compiling Logging LogHandler.swift
[13/21] Compiling Logging Logging.swift
[14/21] Emitting module Logging
[15/21] Compiling Logging Locks.swift
[16/23] Compiling LoggerAPI Logger.swift
[17/23] Emitting module LoggerAPI
[18/23] Compiling Socket SocketUtils.swift
[19/23] Compiling Socket Socket.swift
[20/23] Emitting module Socket
[21/23] Compiling Socket SocketProtocols.swift
[22/23] Compiling SimpleLogger SimpleLogger.swift
[23/23] Emitting module SimpleLogger
[24/26] Compiling SSLService SSLPointerTricks.swift
[25/26] Emitting module SSLService
[26/26] Compiling SSLService SSLService.swift
[27/61] Compiling KituraNet SPIUtils.swift
[28/61] Compiling KituraNet Server.swift
[29/61] Compiling KituraNet ServerDelegate.swift
[30/64] Compiling KituraNet ServerOptions.swift
[31/64] Compiling KituraNet ServerRequest.swift
[32/64] Compiling KituraNet ServerResponse.swift
[33/64] Compiling KituraNet ConnectionUpgrader.swift
[34/64] Compiling KituraNet Error.swift
[35/64] Compiling KituraNet FastCGI.swift
[36/64] Compiling KituraNet FastCGIRecordCreate.swift
[37/64] Compiling KituraNet IncomingHTTPSocketProcessor.swift
[38/64] Compiling KituraNet KeepAliveState.swift
[39/64] Compiling KituraNet HTTPParser.swift
[40/64] Compiling KituraNet HTTPParserStatus.swift
[41/64] Emitting module KituraNet
[42/64] Compiling KituraNet BufferList.swift
[43/64] Compiling KituraNet ClientRequest.swift
[44/64] Compiling KituraNet ClientResponse.swift
[45/64] Compiling KituraNet ConnectionUpgradeFactory.swift
[46/64] Compiling KituraNet ServerLifecycleListener.swift
[47/64] Compiling KituraNet ServerMonitor.swift
[48/64] Compiling KituraNet ServerState.swift
[49/64] Compiling KituraNet HTTP.swift
[50/64] Compiling KituraNet HTTPServer.swift
[51/64] Compiling KituraNet HTTPServerRequest.swift
[52/64] Compiling KituraNet HTTPServerResponse.swift
[53/64] Compiling KituraNet ParseResults.swift
[54/64] Compiling KituraNet URLParser.swift
[55/64] Compiling KituraNet HeadersContainer.swift
[56/64] Compiling KituraNet IncomingSocketHandler.swift
[57/64] Compiling KituraNet IncomingSocketManager.swift
[58/64] Compiling KituraNet IncomingSocketProcessor.swift
[59/64] Compiling KituraNet IncomingSocketProcessorCreator.swift
[60/64] Compiling KituraNet ListenerGroup.swift
[61/64] Compiling KituraNet FastCGIRecordParser.swift
[62/64] Compiling KituraNet FastCGIServer.swift
[63/64] Compiling KituraNet FastCGIServerRequest.swift
[64/64] Compiling KituraNet FastCGIServerResponse.swift
[65/68] Compiling SimpleHttpClient HttpResource.swift
[66/68] Compiling SimpleHttpClient HttpError.swift
[67/68] Emitting module SimpleHttpClient
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:21:12: warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
 19 | public typealias NetworkRequestCompletionHandler = (_ error:HttpError?, _ status:Int?, _ headers: [String:String]?, _ data:Data?) -> Void
 20 |
 21 | public let NOOPNetworkRequestCompletionHandler:NetworkRequestCompletionHandler = {(a,b,c,d)->Void in}
    |            |- warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'NOOPNetworkRequestCompletionHandler' 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
 22 |
 23 | /// Use HttpClient to make Http requests
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:26:20: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | public class HttpClient{
 25 |
 26 | 	public static let logger = Logger(forName: "HttpClient")
    |                    `- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | 	//public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
 28 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/bluemix-simple-logger-swift/Sources/SimpleLogger.swift:17:14: note: class 'Logger' does not conform to the 'Sendable' protocol
15 |
16 | /// BluemixObjectStore internal logging infrastructure
17 | public class Logger{
   |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
18 |
19 | 	public let name:String
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
 13 |
 14 | import Foundation
 15 | import SimpleLogger
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
 16 | import KituraNet
 17 |
    :
 24 | public class HttpClient{
 25 |
 26 | 	public static let logger = Logger(forName: "HttpClient")
    |                    |- note: annotate 'logger' 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
 27 | 	//public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
 28 |
[68/68] Compiling SimpleHttpClient HttpClient.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:21:12: warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
 19 | public typealias NetworkRequestCompletionHandler = (_ error:HttpError?, _ status:Int?, _ headers: [String:String]?, _ data:Data?) -> Void
 20 |
 21 | public let NOOPNetworkRequestCompletionHandler:NetworkRequestCompletionHandler = {(a,b,c,d)->Void in}
    |            |- warning: let 'NOOPNetworkRequestCompletionHandler' is not concurrency-safe because non-'Sendable' type 'NetworkRequestCompletionHandler' (aka '(Optional<HttpError>, Optional<Int>, Optional<Dictionary<String, String>>, Optional<Data>) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'NOOPNetworkRequestCompletionHandler' 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
 22 |
 23 | /// Use HttpClient to make Http requests
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:26:20: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | public class HttpClient{
 25 |
 26 | 	public static let logger = Logger(forName: "HttpClient")
    |                    `- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | 	//public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
 28 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/bluemix-simple-logger-swift/Sources/SimpleLogger.swift:17:14: note: class 'Logger' does not conform to the 'Sendable' protocol
15 |
16 | /// BluemixObjectStore internal logging infrastructure
17 | public class Logger{
   |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
18 |
19 | 	public let name:String
/Users/admin/builder/spi-builder-workspace/Sources/SimpleHttpClient/HttpClient.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
 13 |
 14 | import Foundation
 15 | import SimpleLogger
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SimpleLogger'
 16 | import KituraNet
 17 |
    :
 24 | public class HttpClient{
 25 |
 26 | 	public static let logger = Logger(forName: "HttpClient")
    |                    |- note: annotate 'logger' 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
 27 | 	//public static let urlSession = URLSession(configuration: URLSessionConfiguration.default)
 28 |
Build complete! (13.02s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "bluemix-simple-logger-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.6.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git"
    },
    {
      "identity" : "kitura-net",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/IBM-Swift/Kitura-net.git"
    }
  ],
  "manifest_display_name" : "SimpleHttpClient",
  "name" : "SimpleHttpClient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleHttpClient",
      "targets" : [
        "SimpleHttpClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleHttpClientTests",
      "module_type" : "SwiftTarget",
      "name" : "SimpleHttpClientTests",
      "path" : "Tests/SimpleHttpClientTests",
      "sources" : [
        "HttpClientTest.swift"
      ],
      "target_dependencies" : [
        "SimpleHttpClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleHttpClient",
      "module_type" : "SwiftTarget",
      "name" : "SimpleHttpClient",
      "path" : "Sources/SimpleHttpClient",
      "product_dependencies" : [
        "KituraNet",
        "SimpleLogger"
      ],
      "product_memberships" : [
        "SimpleHttpClient"
      ],
      "sources" : [
        "HttpClient.swift",
        "HttpError.swift",
        "HttpResource.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.