Build Information
Successful build of OpenAIStreamingCompletions, reference 1.0.1 (d89966), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 02: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 arm64Build 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: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nate-parrott/openai-streaming-completions-swift
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at d89966e oop
Cloned https://github.com/nate-parrott/openai-streaming-completions-swift.git
Revision (git rev-parse @):
d89966e17627731a2627aff053cc0df86d0022fa
SUCCESS checkout https://github.com/nate-parrott/openai-streaming-completions-swift.git at 1.0.1
========================================
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.swift
[4/9] Compiling OpenAIStreamingCompletions EventSource.swift
[5/9] Emitting module OpenAIStreamingCompletions
[6/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>
[7/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>
[8/9] Compiling OpenAIStreamingCompletions EventStreamParser.swift
[9/9] Compiling OpenAIStreamingCompletions OpenAI+TextCompletion.swift
Build complete! (4.14s)
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.