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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/microsoft/iomt-fhir-client.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/microsoft/iomt-fhir-client
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e98ee39 Merge pull request #1 from microsoft/personal/namalu/installation-documentation
Cloned https://github.com/microsoft/iomt-fhir-client.git
Revision (git rev-parse @):
e98ee39128a7acf650dcf907a77767615c0c635d
SUCCESS checkout https://github.com/microsoft/iomt-fhir-client.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/microsoft/iomt-fhir-client.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.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 EventHubsConnectionStringBuilder.swift
[5/28] Compiling IomtFhirClient EventHubsMessageError.swift
[6/28] Compiling IomtFhirClient ConnectionManager.swift
[7/28] Compiling IomtFhirClient ConnectionManagerProtocol.swift
[8/28] Compiling IomtFhirClient EventData.swift
[9/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 |
[10/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 |
[11/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 |
[12/28] Compiling IomtFhirClient TokenScope.swift
[13/28] Compiling IomtFhirClient TransportType.swift
[14/28] Compiling IomtFhirClient SecurityToken.swift
[15/28] Compiling IomtFhirClient SharedAccessSignatureToken.swift
[16/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"
[17/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"
[18/28] Compiling IomtFhirClient HttpIomtFhirClient.swift
[19/28] Compiling IomtFhirClient HttpMessage.swift
[20/28] Compiling IomtFhirClient HttpMessageConverter.swift
[21/28] Compiling IomtFhirClient IomtFhirClient.swift
[22/28] Compiling IomtFhirClient DateFactory.swift
[23/28] Compiling IomtFhirClient DateFactoryProtocol.swift
[24/28] Compiling IomtFhirClient SharedAccessSignatureTokenProvider.swift
[25/28] Compiling IomtFhirClient TokenProviderProtocol.swift
[26/28] Compiling IomtFhirClient EventDataSender.swift
[27/28] Compiling IomtFhirClient EventDataSenderProtocol.swift
[28/28] Compiling IomtFhirClient EventHubsConnection.swift
Build complete! (24.42s)
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.