The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenAIStreamingCompletions, reference main (dc294e), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 02:23: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/nate-parrott/openai-streaming-completions-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nate-parrott/openai-streaming-completions-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at dc294e4 doc
Cloned https://github.com/nate-parrott/openai-streaming-completions-swift.git
Revision (git rev-parse @):
dc294e47cb6dab5113cdb9c6e5b7efdd7f56ca96
SUCCESS checkout https://github.com/nate-parrott/openai-streaming-completions-swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/nate-parrott/openai-streaming-completions-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/9] Compiling OpenAIStreamingCompletions OpenAI+TextCompletion.swift
[4/9] Compiling OpenAIStreamingCompletions Event.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/EventSource/Event.swift:87:17: warning: 'scanUpTo(_:into:)' was deprecated in macOS 10.15 [#DeprecatedDeclaration]
 85 |         var key: NSString?, value: NSString?
 86 |         let scanner = Scanner(string: line)
 87 |         scanner.scanUpTo(":", into: &key)
    |                 `- warning: 'scanUpTo(_:into:)' was deprecated in macOS 10.15 [#DeprecatedDeclaration]
 88 |         scanner.scanString(":", into: nil)
 89 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/EventSource/Event.swift:88:17: warning: 'scanString(_:into:)' was deprecated in macOS 10.15 [#DeprecatedDeclaration]
 86 |         let scanner = Scanner(string: line)
 87 |         scanner.scanUpTo(":", into: &key)
 88 |         scanner.scanString(":", into: nil)
    |                 `- warning: 'scanString(_:into:)' was deprecated in macOS 10.15 [#DeprecatedDeclaration]
 89 |
 90 |         for newline in newLineCharacters {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/EventSource/Event.swift:91:24: warning: 'scanUpTo(_:into:)' was deprecated in macOS 10.15 [#DeprecatedDeclaration]
 89 |
 90 |         for newline in newLineCharacters {
 91 |             if scanner.scanUpTo(newline, into: &value) {
    |                        `- warning: 'scanUpTo(_:into:)' was deprecated in macOS 10.15 [#DeprecatedDeclaration]
 92 |                 break
 93 |             }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[5/9] Compiling OpenAIStreamingCompletions OpenAI.swift
[6/9] Compiling OpenAIStreamingCompletions OpenAI+ChatCompletion.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+ChatCompletion.swift:97:25: warning: capture of 'completion' with non-sendable type 'StreamingCompletion' in a '@Sendable' closure [#SendableClosureCaptures]
 95 |                 for await message in try self.completeChatStreaming(completionRequest) {
 96 |                     DispatchQueue.main.async {
 97 |                         completion.text = message.content
    |                         `- warning: capture of 'completion' with non-sendable type 'StreamingCompletion' in a '@Sendable' closure [#SendableClosureCaptures]
 98 |                     }
 99 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+TextCompletion.swift:90:14: note: class 'StreamingCompletion' does not conform to the 'Sendable' protocol
 88 | }
 89 |
 90 | public class StreamingCompletion: ObservableObject {
    |              `- note: class 'StreamingCompletion' does not conform to the 'Sendable' protocol
 91 |     public enum Status: Equatable {
 92 |         case loading
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+ChatCompletion.swift:97:43: warning: capture of 'message' with non-sendable type 'OpenAIAPI.Message' in a '@Sendable' closure [#SendableClosureCaptures]
  2 |
  3 | extension OpenAIAPI {
  4 |     public struct Message: Equatable, Codable, Hashable {
    |                   `- note: consider making struct 'Message' conform to the 'Sendable' protocol
  5 |         public enum Role: String, Equatable, Codable, Hashable {
  6 |             case system
    :
 95 |                 for await message in try self.completeChatStreaming(completionRequest) {
 96 |                     DispatchQueue.main.async {
 97 |                         completion.text = message.content
    |                                           `- warning: capture of 'message' with non-sendable type 'OpenAIAPI.Message' in a '@Sendable' closure [#SendableClosureCaptures]
 98 |                     }
 99 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+ChatCompletion.swift:101:21: warning: capture of 'completion' with non-sendable type 'StreamingCompletion' in a '@Sendable' closure [#SendableClosureCaptures]
 99 |                 }
100 |                 DispatchQueue.main.async {
101 |                     completion.status = .complete
    |                     `- warning: capture of 'completion' with non-sendable type 'StreamingCompletion' in a '@Sendable' closure [#SendableClosureCaptures]
102 |                 }
103 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+TextCompletion.swift:90:14: note: class 'StreamingCompletion' does not conform to the 'Sendable' protocol
 88 | }
 89 |
 90 | public class StreamingCompletion: ObservableObject {
    |              `- note: class 'StreamingCompletion' does not conform to the 'Sendable' protocol
 91 |     public enum Status: Equatable {
 92 |         case loading
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+ChatCompletion.swift:105:21: warning: capture of 'completion' with non-sendable type 'StreamingCompletion' in a '@Sendable' closure [#SendableClosureCaptures]
103 |             } catch {
104 |                 DispatchQueue.main.async {
105 |                     completion.status = .error
    |                     `- warning: capture of 'completion' with non-sendable type 'StreamingCompletion' in a '@Sendable' closure [#SendableClosureCaptures]
106 |                 }
107 |             }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAIStreamingCompletions/OpenAI+TextCompletion.swift:90:14: note: class 'StreamingCompletion' does not conform to the 'Sendable' protocol
 88 | }
 89 |
 90 | public class StreamingCompletion: ObservableObject {
    |              `- note: class 'StreamingCompletion' does not conform to the 'Sendable' protocol
 91 |     public enum Status: Equatable {
 92 |         case loading
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[7/9] Compiling OpenAIStreamingCompletions EventSource.swift
[8/9] Emitting module OpenAIStreamingCompletions
[9/9] Compiling OpenAIStreamingCompletions EventStreamParser.swift
Build complete! (3.78s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenAIStreamingCompletions",
  "name" : "OpenAIStreamingCompletions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAIStreamingCompletions",
      "targets" : [
        "OpenAIStreamingCompletions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAIStreamingCompletionsTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAIStreamingCompletionsTests",
      "path" : "Tests/OpenAIStreamingCompletionsTests",
      "sources" : [
        "OpenAIStreamingCompletionsTests.swift"
      ],
      "target_dependencies" : [
        "OpenAIStreamingCompletions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAIStreamingCompletions",
      "module_type" : "SwiftTarget",
      "name" : "OpenAIStreamingCompletions",
      "path" : "Sources/OpenAIStreamingCompletions",
      "product_memberships" : [
        "OpenAIStreamingCompletions"
      ],
      "sources" : [
        "EventSource/Event.swift",
        "EventSource/EventSource.swift",
        "EventSource/EventStreamParser.swift",
        "OpenAI+ChatCompletion.swift",
        "OpenAI+TextCompletion.swift",
        "OpenAI.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.