This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 IomtFhirClient, reference 1.0.0 (73bca2), with Swift 6.0 for macOS (SPM) on 6 Aug 2024 22:58:41 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.4.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.48.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/microsoft/iomt-fhir-client.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/microsoft/iomt-fhir-client
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 73bca2d Initial commit
Cloned https://github.com/microsoft/iomt-fhir-client.git
Revision (git rev-parse @):
73bca2d9262a17524a162084659667cbd8f62799
SUCCESS checkout https://github.com/microsoft/iomt-fhir-client.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/microsoft/iomt-fhir-client.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.4.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--14728B76ED507284.txt
[3/26] Emitting module IomtFhirClient
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/IomtFhirClientError.swift:9:10: warning: associated value 'unsupportedTransportType(transportType:)' of 'Sendable'-conforming enum 'IomtFhirClientError' has non-sendable type 'TransportType'; this is an error in the Swift 6 language mode
 7 | {
 8 |     case invalidConnectionString(reason: String)
 9 |     case unsupportedTransportType(transportType: TransportType)
   |          `- warning: associated value 'unsupportedTransportType(transportType:)' of 'Sendable'-conforming enum 'IomtFhirClientError' has non-sendable type 'TransportType'; this is an error in the Swift 6 language mode
10 |     case eventDataEmpty
11 |     case unableToCreateRequest
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TransportType.swift:6:13: note: consider making enum 'TransportType' conform to the 'Sendable' protocol
 4 | import Foundation
 5 |
 6 | public enum TransportType : String
   |             `- note: consider making enum 'TransportType' conform to the 'Sendable' protocol
 7 | {
 8 |     case https = "https"
[4/28] Compiling IomtFhirClient EventHubsTokenError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/IomtFhirClientError.swift:9:10: warning: associated value 'unsupportedTransportType(transportType:)' of 'Sendable'-conforming enum 'IomtFhirClientError' has non-sendable type 'TransportType'; this is an error in the Swift 6 language mode
 7 | {
 8 |     case invalidConnectionString(reason: String)
 9 |     case unsupportedTransportType(transportType: TransportType)
   |          `- warning: associated value 'unsupportedTransportType(transportType:)' of 'Sendable'-conforming enum 'IomtFhirClientError' has non-sendable type 'TransportType'; this is an error in the Swift 6 language mode
10 |     case eventDataEmpty
11 |     case unableToCreateRequest
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TransportType.swift:6:13: note: consider making enum 'TransportType' conform to the 'Sendable' protocol
 4 | import Foundation
 5 |
 6 | public enum TransportType : String
   |             `- note: consider making enum 'TransportType' conform to the 'Sendable' protocol
 7 | {
 8 |     case https = "https"
[5/28] Compiling IomtFhirClient IomtFhirClientError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/IomtFhirClientError.swift:9:10: warning: associated value 'unsupportedTransportType(transportType:)' of 'Sendable'-conforming enum 'IomtFhirClientError' has non-sendable type 'TransportType'; this is an error in the Swift 6 language mode
 7 | {
 8 |     case invalidConnectionString(reason: String)
 9 |     case unsupportedTransportType(transportType: TransportType)
   |          `- warning: associated value 'unsupportedTransportType(transportType:)' of 'Sendable'-conforming enum 'IomtFhirClientError' has non-sendable type 'TransportType'; this is an error in the Swift 6 language mode
10 |     case eventDataEmpty
11 |     case unableToCreateRequest
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TransportType.swift:6:13: note: consider making enum 'TransportType' conform to the 'Sendable' protocol
 4 | import Foundation
 5 |
 6 | public enum TransportType : String
   |             `- note: consider making enum 'TransportType' conform to the 'Sendable' protocol
 7 | {
 8 |     case https = "https"
[6/28] Compiling IomtFhirClient IomtFhirClient.swift
[7/28] Compiling IomtFhirClient DateFactory.swift
[8/28] Compiling IomtFhirClient DateFactoryProtocol.swift
[9/28] Compiling IomtFhirClient TokenScope.swift
[10/28] Compiling IomtFhirClient TransportType.swift
[11/28] Compiling IomtFhirClient ConnectionManager.swift
[12/28] Compiling IomtFhirClient ConnectionManagerProtocol.swift
[13/28] Compiling IomtFhirClient EventData.swift
[14/28] Compiling IomtFhirClient HttpIomtFhirClient.swift
[15/28] Compiling IomtFhirClient HttpMessage.swift
[16/28] Compiling IomtFhirClient HttpMessageConverter.swift
[17/28] Compiling IomtFhirClient UrlExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Http/HttpEventHubsConnection.swift:33:13: warning: capture of 'completion' with non-sendable type '((Bool, (any Error)?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |         let request = try generateRequest(httpMessage: httpMessage)
32 |         let task = session.uploadTask(with: request, from: httpMessage.httpBody) { (data, response, error) in
33 |             completion?(self.isSuccessful(response: response, error: error), error)
   |             |- warning: capture of 'completion' with non-sendable type '((Bool, (any Error)?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 |         }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Http/HttpEventHubsConnection.swift:33:25: warning: capture of 'self' with non-sendable type 'HttpEventHubsConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 4 | import Foundation
 5 |
 6 | internal class HttpEventHubsConnection : EventHubsConnection
   |                `- note: class 'HttpEventHubsConnection' does not conform to the 'Sendable' protocol
 7 | {
 8 |     internal var session = URLSession.shared
   :
31 |         let request = try generateRequest(httpMessage: httpMessage)
32 |         let task = session.uploadTask(with: request, from: httpMessage.httpBody) { (data, response, error) in
33 |             completion?(self.isSuccessful(response: response, error: error), error)
   |                         `- warning: capture of 'self' with non-sendable type 'HttpEventHubsConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |         }
35 |
[18/28] Compiling IomtFhirClient HttpEventDataSender.swift
/Users/admin/builder/spi-builder-workspace/Sources/Http/HttpEventHubsConnection.swift:33:13: warning: capture of 'completion' with non-sendable type '((Bool, (any Error)?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |         let request = try generateRequest(httpMessage: httpMessage)
32 |         let task = session.uploadTask(with: request, from: httpMessage.httpBody) { (data, response, error) in
33 |             completion?(self.isSuccessful(response: response, error: error), error)
   |             |- warning: capture of 'completion' with non-sendable type '((Bool, (any Error)?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 |         }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Http/HttpEventHubsConnection.swift:33:25: warning: capture of 'self' with non-sendable type 'HttpEventHubsConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 4 | import Foundation
 5 |
 6 | internal class HttpEventHubsConnection : EventHubsConnection
   |                `- note: class 'HttpEventHubsConnection' does not conform to the 'Sendable' protocol
 7 | {
 8 |     internal var session = URLSession.shared
   :
31 |         let request = try generateRequest(httpMessage: httpMessage)
32 |         let task = session.uploadTask(with: request, from: httpMessage.httpBody) { (data, response, error) in
33 |             completion?(self.isSuccessful(response: response, error: error), error)
   |                         `- warning: capture of 'self' with non-sendable type 'HttpEventHubsConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |         }
35 |
[19/28] Compiling IomtFhirClient HttpEventHubsConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Http/HttpEventHubsConnection.swift:33:13: warning: capture of 'completion' with non-sendable type '((Bool, (any Error)?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |         let request = try generateRequest(httpMessage: httpMessage)
32 |         let task = session.uploadTask(with: request, from: httpMessage.httpBody) { (data, response, error) in
33 |             completion?(self.isSuccessful(response: response, error: error), error)
   |             |- warning: capture of 'completion' with non-sendable type '((Bool, (any Error)?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
34 |         }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Http/HttpEventHubsConnection.swift:33:25: warning: capture of 'self' with non-sendable type 'HttpEventHubsConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 4 | import Foundation
 5 |
 6 | internal class HttpEventHubsConnection : EventHubsConnection
   |                `- note: class 'HttpEventHubsConnection' does not conform to the 'Sendable' protocol
 7 | {
 8 |     internal var session = URLSession.shared
   :
31 |         let request = try generateRequest(httpMessage: httpMessage)
32 |         let task = session.uploadTask(with: request, from: httpMessage.httpBody) { (data, response, error) in
33 |             completion?(self.isSuccessful(response: response, error: error), error)
   |                         `- warning: capture of 'self' with non-sendable type 'HttpEventHubsConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |         }
35 |
[20/28] Compiling IomtFhirClient EventDataSender.swift
[21/28] Compiling IomtFhirClient EventDataSenderProtocol.swift
[22/28] Compiling IomtFhirClient EventHubsConnection.swift
[23/28] Compiling IomtFhirClient EventHubsConnectionStringBuilder.swift
[24/28] Compiling IomtFhirClient EventHubsMessageError.swift
[25/28] Compiling IomtFhirClient SecurityToken.swift
[26/28] Compiling IomtFhirClient SharedAccessSignatureToken.swift
[27/28] Compiling IomtFhirClient SharedAccessSignatureTokenProvider.swift
[28/28] Compiling IomtFhirClient TokenProviderProtocol.swift
Build complete! (15.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IomtFhirClient",
  "name" : "IomtFhirClient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "IomtFhirClient",
      "targets" : [
        "IomtFhirClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IomtFhirClient",
      "module_type" : "SwiftTarget",
      "name" : "IomtFhirClient",
      "path" : "Sources",
      "product_memberships" : [
        "IomtFhirClient"
      ],
      "sources" : [
        "ConnectionManager.swift",
        "ConnectionManagerProtocol.swift",
        "EventData.swift",
        "EventDataSender.swift",
        "EventDataSenderProtocol.swift",
        "EventHubsConnection.swift",
        "Extensions/UrlExtensions.swift",
        "Http/HttpEventDataSender.swift",
        "Http/HttpEventHubsConnection.swift",
        "Http/HttpIomtFhirClient.swift",
        "Http/HttpMessage.swift",
        "Http/HttpMessageConverter.swift",
        "IomtFhirClient.swift",
        "Primitives/DateFactory.swift",
        "Primitives/DateFactoryProtocol.swift",
        "Primitives/EventHubsConnectionStringBuilder.swift",
        "Primitives/EventHubsMessageError.swift",
        "Primitives/EventHubsTokenError.swift",
        "Primitives/IomtFhirClientError.swift",
        "Primitives/SecurityToken.swift",
        "Primitives/SharedAccessSignatureToken.swift",
        "Primitives/SharedAccessSignatureTokenProvider.swift",
        "Primitives/TokenProviderProtocol.swift",
        "Primitives/TokenScope.swift",
        "Primitives/TransportType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.