The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftChatGPT, reference main (1fd0f1), with Swift 6.4 for macOS (SPM) on 19 Sep 2026 11:07:57 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftChatGPT.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/migueldeicaza/SwiftChatGPT
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1fd0f18 Assist the user slightly, and handle modern errors that lack a code
Cloned https://github.com/migueldeicaza/SwiftChatGPT.git
Revision (git rev-parse @):
1fd0f18c1ce654fc05714f919004b080e327326e
SUCCESS checkout https://github.com/migueldeicaza/SwiftChatGPT.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/migueldeicaza/SwiftChatGPT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Planning deferred tasks]
[19 / 28]
[20 / 29] SwiftChatGPT
[30 / 66]
[35 / 66]
[38 / 66]
[39 / 66]
[43 / 66]
[45 / 66]
[48 / 66]
[51 / 66]
[53 / 66]
[54 / 66]
[57 / 66] SwiftChatGPT
[63 / 66] SwiftChatGPT
Build complete! (7.02 sec)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChatGPT/SwiftChatGPT.swift:84:13: warning: variable 'prompt' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 82 |
 83 |     func buildMessageHistory (newPrompt: String) -> [Message] {
 84 |         var prompt = Message(role: "user", content: newPrompt)
    |             `- warning: variable 'prompt' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 85 |         var requestMessages: [Message] = [defaultSystemMessage]
 86 |         requestMessages.append(contentsOf: history)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChatGPT/SwiftChatGPT.swift:132:13: warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-use-throwing-unstructured-task\NoUseUnstructuredThrowingTask]8;;\]
130 |     func processPartialReply<T> (bytes: URLSession.AsyncBytes, _ f: @escaping (Response) -> T, onComplete: @escaping () -> ()) -> AsyncThrowingStream<T,Error> {
131 |         return AsyncThrowingStream (bufferingPolicy: .unbounded) { continuation in
132 |             Task {
    |             |- warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-use-throwing-unstructured-task\NoUseUnstructuredThrowingTask]8;;\]
    |             `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly
133 |                 for try await line in bytes.lines {
134 |                     if line.starts(with: "data: {") {
[#NoUseUnstructuredThrowingTask]: <https://docs.swift.org/compiler/documentation/diagnostics/no-use-throwing-unstructured-task>
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftChatGPT",
  "name" : "SwiftChatGPT",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftChatGPT",
      "targets" : [
        "SwiftChatGPT"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftChatGPTTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftChatGPTTests",
      "path" : "Tests/SwiftChatGPTTests",
      "sources" : [
        "SwiftChatGPTTests.swift"
      ],
      "target_dependencies" : [
        "SwiftChatGPT"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftChatGPT",
      "module_type" : "SwiftTarget",
      "name" : "SwiftChatGPT",
      "path" : "Sources/SwiftChatGPT",
      "product_memberships" : [
        "SwiftChatGPT"
      ],
      "sources" : [
        "Model.swift",
        "SwiftChatGPT.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.