The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenAI, reference 0.2.9 (1ad95d), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 13:38:24 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordBDHG/OpenAI.git
Reference: 0.2.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/StanfordBDHG/OpenAI
 * tag               0.2.9      -> FETCH_HEAD
HEAD is now at 1ad95dd Merge pull request #3 from StanfordBDHG/upstream/0.2.9
Cloned https://github.com/StanfordBDHG/OpenAI.git
Revision (git rev-parse @):
1ad95dd531d7c854a3f98f588b0eb68fa83e8a8c
SUCCESS checkout https://github.com/StanfordBDHG/OpenAI.git at 0.2.9
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/StanfordBDHG/OpenAI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/41] Emitting module OpenAI
[4/45] Compiling OpenAI OpenAIProtocol+Combine.swift
[5/45] Compiling OpenAI OpenAIProtocol.swift
[6/45] Compiling OpenAI ArrayWithThreadSafety.swift
[7/45] Compiling OpenAI Utilities.swift
[8/45] Compiling OpenAI EditsQuery.swift
[9/45] Compiling OpenAI EditsResult.swift
[10/45] Compiling OpenAI EmbeddingsQuery.swift
[11/45] Compiling OpenAI EmbeddingsResult.swift
[12/45] Compiling OpenAI ModelQuery.swift
[13/45] Compiling OpenAI ModelResult.swift
[14/45] Compiling OpenAI Models.swift
[15/45] Compiling OpenAI ModelsResult.swift
[16/45] Compiling OpenAI OpenAI.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
167 |             let task = session.dataTask(with: request) { data, _, error in
168 |                 if let error = error {
169 |                     return completion(.failure(error))
    |                            `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 |                 }
171 |                 guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 |     // As non-streaming inference requests are not currently supported by SpeziLLM,
159 |     // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 |     func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
    |                                                                                `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 |         do {
162 |             let request = try request.build(token: configuration.token,
[17/45] Compiling OpenAI JSONRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
167 |             let task = session.dataTask(with: request) { data, _, error in
168 |                 if let error = error {
169 |                     return completion(.failure(error))
    |                            `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 |                 }
171 |                 guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 |     // As non-streaming inference requests are not currently supported by SpeziLLM,
159 |     // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 |     func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
    |                                                                                `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 |         do {
162 |             let request = try request.build(token: configuration.token,
[18/45] Compiling OpenAI MultipartFormDataBodyBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
167 |             let task = session.dataTask(with: request) { data, _, error in
168 |                 if let error = error {
169 |                     return completion(.failure(error))
    |                            `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 |                 }
171 |                 guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 |     // As non-streaming inference requests are not currently supported by SpeziLLM,
159 |     // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 |     func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
    |                                                                                `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 |         do {
162 |             let request = try request.build(token: configuration.token,
[19/45] Compiling OpenAI MultipartFormDataBodyEncodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
167 |             let task = session.dataTask(with: request) { data, _, error in
168 |                 if let error = error {
169 |                     return completion(.failure(error))
    |                            `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 |                 }
171 |                 guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 |     // As non-streaming inference requests are not currently supported by SpeziLLM,
159 |     // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 |     func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
    |                                                                                `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 |         do {
162 |             let request = try request.build(token: configuration.token,
[20/45] Compiling OpenAI MultipartFormDataEntry.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
167 |             let task = session.dataTask(with: request) { data, _, error in
168 |                 if let error = error {
169 |                     return completion(.failure(error))
    |                            `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 |                 }
171 |                 guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 |     // As non-streaming inference requests are not currently supported by SpeziLLM,
159 |     // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 |     func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
    |                                                                                `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 |         do {
162 |             let request = try request.build(token: configuration.token,
[21/45] Compiling OpenAI ImageEditsQuery.swift
[22/45] Compiling OpenAI ImageVariationsQuery.swift
[23/45] Compiling OpenAI ImagesQuery.swift
[24/45] Compiling OpenAI ImagesResult.swift
[25/45] Compiling OpenAI APIError.swift
[26/45] Compiling OpenAI AudioSpeechQuery.swift
[27/45] Compiling OpenAI AudioSpeechResult.swift
[28/45] Compiling OpenAI AudioTranscriptionQuery.swift
[29/45] Compiling OpenAI ModerationsQuery.swift
[30/45] Compiling OpenAI ModerationsResult.swift
[31/45] Compiling OpenAI StreamableQuery.swift
[32/45] Compiling OpenAI OpenAIProtocol+Async.swift
[33/45] Compiling OpenAI MultipartFormDataRequest.swift
[34/45] Compiling OpenAI StreamingSession.swift
[35/45] Compiling OpenAI URLRequestBuildable.swift
[36/45] Compiling OpenAI URLSessionDataTaskProtocol.swift
[37/45] Compiling OpenAI URLSessionProtocol.swift
[38/45] Compiling OpenAI AudioTranscriptionResult.swift
[39/45] Compiling OpenAI AudioTranslationQuery.swift
[40/45] Compiling OpenAI AudioTranslationResult.swift
[41/45] Compiling OpenAI ChatQuery.swift
[42/45] Compiling OpenAI ChatResult.swift
[43/45] Compiling OpenAI ChatStreamResult.swift
[44/45] Compiling OpenAI CompletionsQuery.swift
[45/45] Compiling OpenAI CompletionsResult.swift
Build complete! (5.45s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenAI",
  "name" : "OpenAI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAI",
      "targets" : [
        "OpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAITests",
      "path" : "Tests/OpenAITests",
      "sources" : [
        "Extensions/XCTestCase+Extensions.swift",
        "Mocks/DataTaskMock.swift",
        "Mocks/URLSessionMock.swift",
        "OpenAITests.swift",
        "OpenAITestsCombine.swift",
        "OpenAITestsDecoder.swift"
      ],
      "target_dependencies" : [
        "OpenAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAI",
      "module_type" : "SwiftTarget",
      "name" : "OpenAI",
      "path" : "Sources/OpenAI",
      "product_memberships" : [
        "OpenAI"
      ],
      "sources" : [
        "OpenAI.swift",
        "Private/JSONRequest.swift",
        "Private/MultipartFormDataBodyBuilder.swift",
        "Private/MultipartFormDataBodyEncodable.swift",
        "Private/MultipartFormDataEntry.swift",
        "Private/MultipartFormDataRequest.swift",
        "Private/StreamingSession.swift",
        "Private/URLRequestBuildable.swift",
        "Private/URLSessionDataTaskProtocol.swift",
        "Private/URLSessionProtocol.swift",
        "Public/Errors/APIError.swift",
        "Public/Models/AudioSpeechQuery.swift",
        "Public/Models/AudioSpeechResult.swift",
        "Public/Models/AudioTranscriptionQuery.swift",
        "Public/Models/AudioTranscriptionResult.swift",
        "Public/Models/AudioTranslationQuery.swift",
        "Public/Models/AudioTranslationResult.swift",
        "Public/Models/ChatQuery.swift",
        "Public/Models/ChatResult.swift",
        "Public/Models/ChatStreamResult.swift",
        "Public/Models/CompletionsQuery.swift",
        "Public/Models/CompletionsResult.swift",
        "Public/Models/EditsQuery.swift",
        "Public/Models/EditsResult.swift",
        "Public/Models/EmbeddingsQuery.swift",
        "Public/Models/EmbeddingsResult.swift",
        "Public/Models/ImageEditsQuery.swift",
        "Public/Models/ImageVariationsQuery.swift",
        "Public/Models/ImagesQuery.swift",
        "Public/Models/ImagesResult.swift",
        "Public/Models/Models/ModelQuery.swift",
        "Public/Models/Models/ModelResult.swift",
        "Public/Models/Models/Models.swift",
        "Public/Models/Models/ModelsResult.swift",
        "Public/Models/ModerationsQuery.swift",
        "Public/Models/ModerationsResult.swift",
        "Public/Models/StreamableQuery.swift",
        "Public/Protocols/OpenAIProtocol+Async.swift",
        "Public/Protocols/OpenAIProtocol+Combine.swift",
        "Public/Protocols/OpenAIProtocol.swift",
        "Public/Utilities/ArrayWithThreadSafety.swift",
        "Public/Utilities/Utilities.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.