The Swift Package Index logo.Swift Package Index

Build Information

Successful build of generative-ai-swift, reference main (44a40d), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 17:24:25 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/google-gemini/deprecated-generative-ai-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/google-gemini/deprecated-generative-ai-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 44a40da Fixed Typo (#225)
Cloned https://github.com/google-gemini/deprecated-generative-ai-swift.git
Revision (git rev-parse @):
44a40daf54bcb8db2695f4af618107e72c472b36
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/google-gemini/deprecated-generative-ai-swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/google-gemini/deprecated-generative-ai-swift.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/20] Compiling GoogleGenerativeAI Chat.swift
[4/20] Compiling GoogleGenerativeAI CountTokensRequest.swift
[5/21] Compiling GoogleGenerativeAI Safety.swift
[6/21] Compiling GoogleGenerativeAI PartsRepresentable.swift
[7/21] Compiling GoogleGenerativeAI JSONValue.swift
[8/21] Compiling GoogleGenerativeAI Logging.swift
[9/21] Compiling GoogleGenerativeAI ModelContent.swift
[10/21] Compiling GoogleGenerativeAI PartsRepresentable+Image.swift
[11/21] Compiling GoogleGenerativeAI GenerateContentError.swift
[12/21] Compiling GoogleGenerativeAI GenerateContentRequest.swift
[13/21] Compiling GoogleGenerativeAI Errors.swift
[14/21] Compiling GoogleGenerativeAI FunctionCalling.swift
[15/21] Compiling GoogleGenerativeAI GenerativeAISwift.swift
[16/21] Compiling GoogleGenerativeAI GenerativeModel.swift
[17/21] Emitting module GoogleGenerativeAI
[18/21] Compiling GoogleGenerativeAI GenerateContentResponse.swift
[19/21] Compiling GoogleGenerativeAI GenerationConfig.swift
[20/21] Compiling GoogleGenerativeAI GenerativeAIRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleAI/GenerativeAIService.swift:62:33: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 60 |         let urlRequest: URLRequest
 61 |         do {
 62 |           urlRequest = try self.urlRequest(request: request)
    |                                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 63 |         } catch {
 64 |           continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/GoogleAI/GenerativeAIService.swift:56:50: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 54 |
 55 |   @available(macOS 12.0, *)
 56 |   func loadRequestStream<T: GenerativeAIRequest>(request: T)
    |                                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 57 |     -> AsyncThrowingStream<T.Response, Error> {
 58 |     return AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/GoogleAI/GenerativeAIService.swift:64:11: warning: capture of non-sendable type 'T.Response.Type' in an isolated closure; this is an error in the Swift 6 language mode
 62 |           urlRequest = try self.urlRequest(request: request)
 63 |         } catch {
 64 |           continuation.finish(throwing: error)
    |           `- warning: capture of non-sendable type 'T.Response.Type' in an isolated closure; this is an error in the Swift 6 language mode
 65 |           return
 66 |         }
[21/21] Compiling GoogleGenerativeAI GenerativeAIService.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleAI/GenerativeAIService.swift:62:33: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 60 |         let urlRequest: URLRequest
 61 |         do {
 62 |           urlRequest = try self.urlRequest(request: request)
    |                                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 63 |         } catch {
 64 |           continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/GoogleAI/GenerativeAIService.swift:56:50: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 54 |
 55 |   @available(macOS 12.0, *)
 56 |   func loadRequestStream<T: GenerativeAIRequest>(request: T)
    |                                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 57 |     -> AsyncThrowingStream<T.Response, Error> {
 58 |     return AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/GoogleAI/GenerativeAIService.swift:64:11: warning: capture of non-sendable type 'T.Response.Type' in an isolated closure; this is an error in the Swift 6 language mode
 62 |           urlRequest = try self.urlRequest(request: request)
 63 |         } catch {
 64 |           continuation.finish(throwing: error)
    |           `- warning: capture of non-sendable type 'T.Response.Type' in an isolated closure; this is an error in the Swift 6 language mode
 65 |           return
 66 |         }
Build complete! (8.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "generative-ai-swift",
  "name" : "generative-ai-swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "GoogleGenerativeAI",
      "targets" : [
        "GoogleGenerativeAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GoogleGenerativeAITests",
      "module_type" : "SwiftTarget",
      "name" : "GoogleGenerativeAITests",
      "path" : "Tests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/CountTokenResponses/failure-model-not-found.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/CountTokenResponses/success-total-tokens.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-empty-content.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-error-mid-stream.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-finish-reason-safety.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-invalid-json.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-malformed-content.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-prompt-blocked-safety.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-recitation-no-content.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-failure-unknown-finish-enum.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-success-basic-reply-long.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-success-basic-reply-short.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-success-citations.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-success-code-execution.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/streaming-success-unknown-safety-enum.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-api-key.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-empty-content.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-finish-reason-safety-no-content.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-finish-reason-safety.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-image-rejected.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-invalid-response.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-malformed-content.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-prompt-blocked-safety.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-unknown-enum-finish-reason.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-unknown-enum-prompt-blocked.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-unknown-model.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-failure-unsupported-user-location.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-basic-reply-long.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-basic-reply-short.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-citations.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-code-execution.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-function-call-empty-arguments.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-function-call-mixed-content.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-function-call-no-arguments.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-function-call-parallel-calls.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-function-call-with-arguments.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-missing-safety-ratings.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-quote-reply.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GoogleAITests/GenerateContentResponses/unary-success-unknown-enum-safety-ratings.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "GoogleAITests/ChatTests.swift",
        "GoogleAITests/CodeExecutionTests.swift",
        "GoogleAITests/GenerateContentRequestTests.swift",
        "GoogleAITests/GenerateContentResponseTests.swift",
        "GoogleAITests/GenerationConfigTests.swift",
        "GoogleAITests/GenerativeModelTests.swift",
        "GoogleAITests/GoogleAITests.swift",
        "GoogleAITests/JSONValueTests.swift",
        "GoogleAITests/MockURLProtocol.swift",
        "GoogleAITests/ModelContentTests.swift",
        "GoogleAITests/PartsRepresentableTests.swift"
      ],
      "target_dependencies" : [
        "GoogleGenerativeAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoogleGenerativeAI",
      "module_type" : "SwiftTarget",
      "name" : "GoogleGenerativeAI",
      "path" : "Sources",
      "product_memberships" : [
        "GoogleGenerativeAI"
      ],
      "sources" : [
        "GoogleAI/Chat.swift",
        "GoogleAI/CountTokensRequest.swift",
        "GoogleAI/Errors.swift",
        "GoogleAI/FunctionCalling.swift",
        "GoogleAI/GenerateContentError.swift",
        "GoogleAI/GenerateContentRequest.swift",
        "GoogleAI/GenerateContentResponse.swift",
        "GoogleAI/GenerationConfig.swift",
        "GoogleAI/GenerativeAIRequest.swift",
        "GoogleAI/GenerativeAIService.swift",
        "GoogleAI/GenerativeAISwift.swift",
        "GoogleAI/GenerativeModel.swift",
        "GoogleAI/JSONValue.swift",
        "GoogleAI/Logging.swift",
        "GoogleAI/ModelContent.swift",
        "GoogleAI/PartsRepresentable+Image.swift",
        "GoogleAI/PartsRepresentable.swift",
        "GoogleAI/Safety.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CodeSnippetTests",
      "module_type" : "SwiftTarget",
      "name" : "CodeSnippetTests",
      "path" : "samples",
      "sources" : [
        "APIKey.swift",
        "ChatSnippets.swift",
        "CodeExecution.swift",
        "ControlledGeneration.swift",
        "CountTokens.swift",
        "FunctionCalling.swift",
        "GenerationConfig.swift",
        "SafetySettings.swift",
        "SystemInstructions.swift",
        "TextGeneration.swift"
      ],
      "target_dependencies" : [
        "GoogleGenerativeAI"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.7.1"
}
Done.