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 OpenAI, reference 0.0.9 (e928d9), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 11:32:02 UTC.

Swift 6 data race errors: 3

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/Recouse/OpenAI.git
Reference: 0.0.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Recouse/OpenAI
 * tag               0.0.9      -> FETCH_HEAD
HEAD is now at e928d98 Merge pull request #2 from Recouse/visionos-support
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
e928d988b4067050306316c337faec48467133d2
SUCCESS checkout https://github.com/Recouse/OpenAI.git at 0.0.9
Fetching https://github.com/Recouse/EventSource.git
[1/351] Fetching eventsource
Fetched https://github.com/Recouse/EventSource.git from cache (0.76s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.0.7 (0.49s)
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.0.7
========================================
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": "openai",
      "name": "OpenAI",
      "url": "https://github.com/Recouse/OpenAI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenAI",
      "dependencies": [
        {
          "identity": "eventsource",
          "name": "EventSource",
          "url": "https://github.com/Recouse/EventSource.git",
          "version": "0.0.8",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventSource",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Recouse/OpenAI.git
[1/348] Fetching openai
Fetched https://github.com/Recouse/OpenAI.git from cache (0.67s)
Fetching https://github.com/Recouse/EventSource.git from cache
Fetched https://github.com/Recouse/EventSource.git from cache (0.46s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.0.8 (0.03s)
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.0.8
Creating working copy for https://github.com/Recouse/OpenAI.git
Working copy of https://github.com/Recouse/OpenAI.git resolved at 0.0.9 (e928d98)
warning: '.resolve-product-dependencies': dependency 'openai' is not used by any target
Found 1 product dependencies
  - EventSource
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Recouse/OpenAI.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/11] Compiling EventSource Extensions.swift
[5/11] Compiling EventSource SessionDelegate.swift
[6/11] Compiling EventSource MessageParser.swift
[7/11] Compiling EventSource Headers.swift
[8/11] Compiling EventSource ServerMessage.swift
[9/11] Compiling EventSource EventSourceError.swift
[10/11] Emitting module EventSource
[11/11] Compiling EventSource EventSource.swift
[12/42] Compiling OpenAI Edits.swift
[13/42] Compiling OpenAI EditsBody.swift
[14/42] Compiling OpenAI EditsModel.swift
[15/45] Compiling OpenAI OpenAIError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
[16/45] Compiling OpenAI ModelType.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
[17/45] Compiling OpenAI ModelsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
[18/45] Compiling OpenAI ModelsResponse.swift
[19/45] Compiling OpenAI ModelsWrapper.swift
[20/45] Compiling OpenAI OpenAI.swift
[21/45] Compiling OpenAI EditsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[22/45] Compiling OpenAI EditsResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[23/45] Compiling OpenAI EditsWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[24/45] Compiling OpenAI ChatCompletions.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[25/45] Compiling OpenAI ChatCompletionsBody.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[26/45] Compiling OpenAI ChatCompletionsModels.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[27/45] Compiling OpenAI ChatCompletionsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[28/45] Emitting module OpenAI
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/OpenAIError.swift:14:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
12 |     case incompatibleModel
13 |     case undefinedError(httpStatusCode: Int)
14 |     case apiError(APIError)
   |          `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'OpenAIError' has non-sendable type 'APIError'; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Extensions/APIError.swift:10:15: note: consider making struct 'APIError' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct APIError: Decodable {
   |               `- note: consider making struct 'APIError' conform to the 'Sendable' protocol
11 |     let message: String
12 |     let type: APIErrorType
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
[29/45] Compiling OpenAI CompletionsRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[30/45] Compiling OpenAI CompletionsWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[31/45] Compiling OpenAI Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
[32/45] Compiling OpenAI Usage.swift
[33/45] Compiling OpenAI CompletionResponse.swift
[34/45] Compiling OpenAI Completions.swift
[35/45] Compiling OpenAI CompletionsBody.swift
[36/45] Compiling OpenAI APIError.swift
[37/45] Compiling OpenAI JSONDecoder.swift
[38/45] Compiling OpenAI JSONEncoder.swift
[39/45] Compiling OpenAI ChatCompletionsResponse.swift
[40/45] Compiling OpenAI ChatWrapper.swift
[41/45] Compiling OpenAI FinishReason.swift
[42/45] Compiling OpenAI ReponseFormat.swift
[43/45] Compiling OpenAI BaseRequestHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Handler/BaseRequestHandler.swift:47:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 45 |
 46 |         return AsyncThrowingStream { continuation in
 47 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 48 |                 let dataTask = eventSource.dataTask(for: urlRequest)
    |                                `- note: closure captures 'self' which is accessible to code in the current task
 49 |
 50 |                 for await event in dataTask.events() {
[44/45] Compiling OpenAI RequestHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Handler/BaseRequestHandler.swift:47:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 45 |
 46 |         return AsyncThrowingStream { continuation in
 47 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 48 |                 let dataTask = eventSource.dataTask(for: urlRequest)
    |                                `- note: closure captures 'self' which is accessible to code in the current task
 49 |
 50 |                 for await event in dataTask.events() {
[45/45] Compiling OpenAI Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:40:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
38 |     }
39 |
40 |     public static let get: Self = "GET"
   |                       |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'get' 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
41 |     public static let post: Self = "POST"
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Request.swift:41:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public struct HTTPMethod: RawRepresentable, ExpressibleByStringLiteral {
   |               `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
30 |     public let rawValue: String
31 |
   :
39 |
40 |     public static let get: Self = "GET"
41 |     public static let post: Self = "POST"
   |                       |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'post' 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
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Request/Handler/BaseRequestHandler.swift:47:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 45 |
 46 |         return AsyncThrowingStream { continuation in
 47 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 48 |                 let dataTask = eventSource.dataTask(for: urlRequest)
    |                                `- note: closure captures 'self' which is accessible to code in the current task
 49 |
 50 |                 for await event in dataTask.events() {
Build complete! (12.39s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Recouse/EventSource.git"
    }
  ],
  "manifest_display_name" : "OpenAI",
  "name" : "OpenAI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAI",
      "targets" : [
        "OpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAITests",
      "path" : "Tests/OpenAITests",
      "sources" : [
        "OpenAITests.swift"
      ],
      "target_dependencies" : [
        "OpenAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAI",
      "module_type" : "SwiftTarget",
      "name" : "OpenAI",
      "path" : "Sources/OpenAI",
      "product_dependencies" : [
        "EventSource"
      ],
      "product_memberships" : [
        "OpenAI"
      ],
      "sources" : [
        "Chat/ChatCompletions.swift",
        "Chat/ChatCompletionsBody.swift",
        "Chat/ChatCompletionsModels.swift",
        "Chat/ChatCompletionsRequest.swift",
        "Chat/ChatCompletionsResponse.swift",
        "Chat/ChatWrapper.swift",
        "Common/FinishReason.swift",
        "Common/ReponseFormat.swift",
        "Common/Usage.swift",
        "Completions/CompletionResponse.swift",
        "Completions/Completions.swift",
        "Completions/CompletionsBody.swift",
        "Completions/CompletionsRequest.swift",
        "Completions/CompletionsWrapper.swift",
        "Configuration.swift",
        "Edits/Edits.swift",
        "Edits/EditsBody.swift",
        "Edits/EditsModel.swift",
        "Edits/EditsRequest.swift",
        "Edits/EditsResponse.swift",
        "Edits/EditsWrapper.swift",
        "Extensions/APIError.swift",
        "Extensions/JSONDecoder.swift",
        "Extensions/JSONEncoder.swift",
        "Extensions/OpenAIError.swift",
        "ModelType.swift",
        "Models/ModelsRequest.swift",
        "Models/ModelsResponse.swift",
        "Models/ModelsWrapper.swift",
        "OpenAI.swift",
        "Request/Handler/BaseRequestHandler.swift",
        "Request/Handler/RequestHandler.swift",
        "Request/Request.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.