Build Information
Successful build of OpenAIStreamingCompletions, reference main (dc294e), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 14:11:47 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.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
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "openai-streaming-completions-swift",
"name": "OpenAIStreamingCompletions",
"url": "https://github.com/nate-parrott/openai-streaming-completions-swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/openai-streaming-completions-swift",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/nate-parrott/openai-streaming-completions-swift.git
[1/156] Fetching openai-streaming-completions-swift
Fetched https://github.com/nate-parrott/openai-streaming-completions-swift.git from cache (0.67s)
Creating working copy for https://github.com/nate-parrott/openai-streaming-completions-swift.git
Working copy of https://github.com/nate-parrott/openai-streaming-completions-swift.git resolved at main (dc294e4)
warning: '.resolve-product-dependencies': dependency 'openai-streaming-completions-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/nate-parrott/openai-streaming-completions-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/9] Compiling OpenAIStreamingCompletions OpenAI.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 EventSource.swift
[6/9] Compiling OpenAIStreamingCompletions EventStreamParser.swift
[7/9] Emitting module OpenAIStreamingCompletions
[8/9] Compiling OpenAIStreamingCompletions OpenAI+TextCompletion.swift
[9/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>
Build complete! (4.59s)
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.