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 IomtFhirClient, reference 1.0.0 (73bca2), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 11:55:11 UTC.

Swift 6 data race errors: 1

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 -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.58.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
========================================
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": "iomt-fhir-client",
      "name": "IomtFhirClient",
      "url": "https://github.com/microsoft/iomt-fhir-client.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/iomt-fhir-client",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/microsoft/iomt-fhir-client.git
[1/82] Fetching iomt-fhir-client
Fetched https://github.com/microsoft/iomt-fhir-client.git from cache (0.65s)
Creating working copy for https://github.com/microsoft/iomt-fhir-client.git
Working copy of https://github.com/microsoft/iomt-fhir-client.git resolved at 1.0.0 (73bca2d)
warning: '.resolve-product-dependencies': dependency 'iomt-fhir-client' 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/microsoft/iomt-fhir-client.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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.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 HttpIomtFhirClient.swift
[5/28] Compiling IomtFhirClient HttpMessage.swift
[6/28] Compiling IomtFhirClient HttpMessageConverter.swift
[7/28] Compiling IomtFhirClient TokenScope.swift
[8/28] Compiling IomtFhirClient TransportType.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 IomtFhirClient.swift
[13/28] Compiling IomtFhirClient DateFactory.swift
[14/28] Compiling IomtFhirClient DateFactoryProtocol.swift
[15/28] Compiling IomtFhirClient EventHubsConnectionStringBuilder.swift
[16/28] Compiling IomtFhirClient EventHubsMessageError.swift
[17/28] Compiling IomtFhirClient ConnectionManager.swift
[18/28] Compiling IomtFhirClient ConnectionManagerProtocol.swift
[19/28] Compiling IomtFhirClient EventData.swift
[20/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"
[21/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"
[22/28] Compiling IomtFhirClient EventDataSender.swift
[23/28] Compiling IomtFhirClient EventDataSenderProtocol.swift
[24/28] Compiling IomtFhirClient EventHubsConnection.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! (18.48s)
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.