Build Information
Successful build of OpenAI, reference main (e75ccc
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 00:58:51 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordBDHG/OpenAI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/StanfordBDHG/OpenAI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e75ccc9 Merge branch 'MacPaw:main' into main
Cloned https://github.com/StanfordBDHG/OpenAI.git
Revision (git rev-parse @):
e75ccc95ba77c8f9156d4afd5bad5a224eb76d25
SUCCESS checkout https://github.com/StanfordBDHG/OpenAI.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",
"dependencies": [
{
"identity": "openai",
"name": "OpenAI",
"url": "https://github.com/StanfordBDHG/OpenAI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenAI",
"dependencies": [
]
}
]
}
Fetching https://github.com/StanfordBDHG/OpenAI.git
[1/2299] Fetching openai
Fetched https://github.com/StanfordBDHG/OpenAI.git from cache (0.99s)
Creating working copy for https://github.com/StanfordBDHG/OpenAI.git
Working copy of https://github.com/StanfordBDHG/OpenAI.git resolved at main (e75ccc9)
warning: '.resolve-product-dependencies': dependency 'openai' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/StanfordBDHG/OpenAI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/41] Emitting module OpenAI
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Private/StreamingSession.swift:21:9: warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var onReceiveContent: ((StreamingSession, ResultType) -> Void)?
| `- warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
22 | var onProcessingError: ((StreamingSession, Error) -> Void)?
23 | var onComplete: ((StreamingSession, Error?) -> Void)?
[4/45] Compiling OpenAI OpenAI.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 | let task = session.dataTask(with: request) { data, _, error in
168 | if let error = error {
169 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:222:28: warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | let task = session.dataTask(with: request) { data, _, error in
221 | if let error = error {
222 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | guard let data = data else {
[5/45] Compiling OpenAI JSONRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 | let task = session.dataTask(with: request) { data, _, error in
168 | if let error = error {
169 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:222:28: warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | let task = session.dataTask(with: request) { data, _, error in
221 | if let error = error {
222 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | guard let data = data else {
[6/45] Compiling OpenAI MultipartFormDataBodyBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 | let task = session.dataTask(with: request) { data, _, error in
168 | if let error = error {
169 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:222:28: warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | let task = session.dataTask(with: request) { data, _, error in
221 | if let error = error {
222 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | guard let data = data else {
[7/45] Compiling OpenAI MultipartFormDataBodyEncodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 | let task = session.dataTask(with: request) { data, _, error in
168 | if let error = error {
169 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:222:28: warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | let task = session.dataTask(with: request) { data, _, error in
221 | if let error = error {
222 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | guard let data = data else {
[8/45] Compiling OpenAI MultipartFormDataEntry.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 | let task = session.dataTask(with: request) { data, _, error in
168 | if let error = error {
169 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<ResultType, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:222:28: warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | let task = session.dataTask(with: request) { data, _, error in
221 | if let error = error {
222 | return completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AudioSpeechResult, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | }
224 | guard let data = data else {
[9/45] Compiling OpenAI ModelQuery.swift
[10/45] Compiling OpenAI ModelResult.swift
[11/45] Compiling OpenAI Models.swift
[12/45] Compiling OpenAI ModelsResult.swift
[13/45] Compiling OpenAI ImageEditsQuery.swift
[14/45] Compiling OpenAI ImageVariationsQuery.swift
[15/45] Compiling OpenAI ImagesQuery.swift
[16/45] Compiling OpenAI ImagesResult.swift
[17/45] Compiling OpenAI ModerationsQuery.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:22:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
20 | switch result {
21 | case let .success(success):
22 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | case let .failure(failure):
24 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:35:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
33 | return AsyncThrowingStream { continuation in
34 | return completionsStream(query: query) { result in
35 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | } completion: { error in
37 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:49:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
47 | switch result {
48 | case let .success(success):
49 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
50 | case let .failure(failure):
51 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:64:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
62 | switch result {
63 | case let .success(success):
64 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
65 | case let .failure(failure):
66 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:79:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
77 | switch result {
78 | case let .success(success):
79 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
80 | case let .failure(failure):
81 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:94:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
92 | switch result {
93 | case let .success(success):
94 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
95 | case let .failure(failure):
96 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:109:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
107 | switch result {
108 | case let .success(success):
109 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
110 | case let .failure(failure):
111 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:122:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
120 | return AsyncThrowingStream { continuation in
121 | return chatsStream(query: query) { result in
122 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
123 | } completion: { error in
124 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:136:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
134 | switch result {
135 | case let .success(success):
136 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
137 | case let .failure(failure):
138 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:151:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
149 | switch result {
150 | case let .success(success):
151 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
152 | case let .failure(failure):
153 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:164:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
162 | switch result {
163 | case let .success(success):
164 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
165 | case let .failure(failure):
166 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:179:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
177 | switch result {
178 | case let .success(success):
179 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
180 | case let .failure(failure):
181 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:194:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
192 | switch result {
193 | case let .success(success):
194 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
195 | case let .failure(failure):
196 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:209:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
207 | switch result {
208 | case let .success(success):
209 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
210 | case let .failure(failure):
211 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:224:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
222 | switch result {
223 | case let .success(success):
224 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
225 | case let .failure(failure):
226 | return continuation.resume(throwing: failure)
[18/45] Compiling OpenAI ModerationsResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:22:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
20 | switch result {
21 | case let .success(success):
22 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | case let .failure(failure):
24 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:35:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
33 | return AsyncThrowingStream { continuation in
34 | return completionsStream(query: query) { result in
35 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | } completion: { error in
37 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:49:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
47 | switch result {
48 | case let .success(success):
49 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
50 | case let .failure(failure):
51 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:64:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
62 | switch result {
63 | case let .success(success):
64 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
65 | case let .failure(failure):
66 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:79:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
77 | switch result {
78 | case let .success(success):
79 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
80 | case let .failure(failure):
81 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:94:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
92 | switch result {
93 | case let .success(success):
94 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
95 | case let .failure(failure):
96 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:109:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
107 | switch result {
108 | case let .success(success):
109 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
110 | case let .failure(failure):
111 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:122:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
120 | return AsyncThrowingStream { continuation in
121 | return chatsStream(query: query) { result in
122 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
123 | } completion: { error in
124 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:136:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
134 | switch result {
135 | case let .success(success):
136 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
137 | case let .failure(failure):
138 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:151:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
149 | switch result {
150 | case let .success(success):
151 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
152 | case let .failure(failure):
153 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:164:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
162 | switch result {
163 | case let .success(success):
164 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
165 | case let .failure(failure):
166 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:179:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
177 | switch result {
178 | case let .success(success):
179 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
180 | case let .failure(failure):
181 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:194:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
192 | switch result {
193 | case let .success(success):
194 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
195 | case let .failure(failure):
196 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:209:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
207 | switch result {
208 | case let .success(success):
209 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
210 | case let .failure(failure):
211 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:224:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
222 | switch result {
223 | case let .success(success):
224 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
225 | case let .failure(failure):
226 | return continuation.resume(throwing: failure)
[19/45] Compiling OpenAI StreamableQuery.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:22:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
20 | switch result {
21 | case let .success(success):
22 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | case let .failure(failure):
24 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:35:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
33 | return AsyncThrowingStream { continuation in
34 | return completionsStream(query: query) { result in
35 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | } completion: { error in
37 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:49:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
47 | switch result {
48 | case let .success(success):
49 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
50 | case let .failure(failure):
51 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:64:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
62 | switch result {
63 | case let .success(success):
64 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
65 | case let .failure(failure):
66 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:79:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
77 | switch result {
78 | case let .success(success):
79 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
80 | case let .failure(failure):
81 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:94:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
92 | switch result {
93 | case let .success(success):
94 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
95 | case let .failure(failure):
96 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:109:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
107 | switch result {
108 | case let .success(success):
109 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
110 | case let .failure(failure):
111 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:122:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
120 | return AsyncThrowingStream { continuation in
121 | return chatsStream(query: query) { result in
122 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
123 | } completion: { error in
124 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:136:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
134 | switch result {
135 | case let .success(success):
136 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
137 | case let .failure(failure):
138 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:151:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
149 | switch result {
150 | case let .success(success):
151 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
152 | case let .failure(failure):
153 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:164:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
162 | switch result {
163 | case let .success(success):
164 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
165 | case let .failure(failure):
166 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:179:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
177 | switch result {
178 | case let .success(success):
179 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
180 | case let .failure(failure):
181 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:194:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
192 | switch result {
193 | case let .success(success):
194 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
195 | case let .failure(failure):
196 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:209:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
207 | switch result {
208 | case let .success(success):
209 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
210 | case let .failure(failure):
211 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:224:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
222 | switch result {
223 | case let .success(success):
224 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
225 | case let .failure(failure):
226 | return continuation.resume(throwing: failure)
[20/45] Compiling OpenAI OpenAIProtocol+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:22:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
20 | switch result {
21 | case let .success(success):
22 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | case let .failure(failure):
24 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:35:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
33 | return AsyncThrowingStream { continuation in
34 | return completionsStream(query: query) { result in
35 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | } completion: { error in
37 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:49:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
47 | switch result {
48 | case let .success(success):
49 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
50 | case let .failure(failure):
51 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:64:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
62 | switch result {
63 | case let .success(success):
64 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
65 | case let .failure(failure):
66 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:79:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
77 | switch result {
78 | case let .success(success):
79 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
80 | case let .failure(failure):
81 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:94:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
92 | switch result {
93 | case let .success(success):
94 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
95 | case let .failure(failure):
96 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:109:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
107 | switch result {
108 | case let .success(success):
109 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
110 | case let .failure(failure):
111 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:122:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
120 | return AsyncThrowingStream { continuation in
121 | return chatsStream(query: query) { result in
122 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
123 | } completion: { error in
124 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:136:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
134 | switch result {
135 | case let .success(success):
136 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
137 | case let .failure(failure):
138 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:151:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
149 | switch result {
150 | case let .success(success):
151 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
152 | case let .failure(failure):
153 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:164:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
162 | switch result {
163 | case let .success(success):
164 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
165 | case let .failure(failure):
166 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:179:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
177 | switch result {
178 | case let .success(success):
179 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
180 | case let .failure(failure):
181 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:194:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
192 | switch result {
193 | case let .success(success):
194 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
195 | case let .failure(failure):
196 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:209:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
207 | switch result {
208 | case let .success(success):
209 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
210 | case let .failure(failure):
211 | return continuation.resume(throwing: failure)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Async.swift:224:41: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
222 | switch result {
223 | case let .success(success):
224 | return continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
225 | case let .failure(failure):
226 | return continuation.resume(throwing: failure)
[21/45] Compiling OpenAI APIError.swift
[22/45] Compiling OpenAI AudioSpeechQuery.swift
[23/45] Compiling OpenAI AudioSpeechResult.swift
[24/45] Compiling OpenAI AudioTranscriptionQuery.swift
[25/45] Compiling OpenAI EditsQuery.swift
[26/45] Compiling OpenAI EditsResult.swift
[27/45] Compiling OpenAI EmbeddingsQuery.swift
[28/45] Compiling OpenAI EmbeddingsResult.swift
[29/45] Compiling OpenAI ChatResult.swift
[30/45] Compiling OpenAI ChatStreamResult.swift
[31/45] Compiling OpenAI CompletionsQuery.swift
[32/45] Compiling OpenAI CompletionsResult.swift
[33/45] Compiling OpenAI AudioTranscriptionResult.swift
[34/45] Compiling OpenAI AudioTranslationQuery.swift
[35/45] Compiling OpenAI AudioTranslationResult.swift
[36/45] Compiling OpenAI ChatQuery.swift
[37/45] Compiling OpenAI MultipartFormDataRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Private/StreamingSession.swift:21:9: warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var onReceiveContent: ((StreamingSession, ResultType) -> Void)?
| `- warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
22 | var onProcessingError: ((StreamingSession, Error) -> Void)?
23 | var onComplete: ((StreamingSession, Error?) -> Void)?
[38/45] Compiling OpenAI StreamingSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Private/StreamingSession.swift:21:9: warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var onReceiveContent: ((StreamingSession, ResultType) -> Void)?
| `- warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
22 | var onProcessingError: ((StreamingSession, Error) -> Void)?
23 | var onComplete: ((StreamingSession, Error?) -> Void)?
[39/45] Compiling OpenAI URLRequestBuildable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Private/StreamingSession.swift:21:9: warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var onReceiveContent: ((StreamingSession, ResultType) -> Void)?
| `- warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
22 | var onProcessingError: ((StreamingSession, Error) -> Void)?
23 | var onComplete: ((StreamingSession, Error?) -> Void)?
[40/45] Compiling OpenAI URLSessionDataTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Private/StreamingSession.swift:21:9: warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var onReceiveContent: ((StreamingSession, ResultType) -> Void)?
| `- warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
22 | var onProcessingError: ((StreamingSession, Error) -> Void)?
23 | var onComplete: ((StreamingSession, Error?) -> Void)?
[41/45] Compiling OpenAI URLSessionProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Private/StreamingSession.swift:21:9: warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var onReceiveContent: ((StreamingSession, ResultType) -> Void)?
| `- warning: stored property 'onReceiveContent' of 'Sendable'-conforming generic class 'StreamingSession' is mutable; this is an error in the Swift 6 language mode
22 | var onProcessingError: ((StreamingSession, Error) -> Void)?
23 | var onComplete: ((StreamingSession, Error?) -> Void)?
[42/45] Compiling OpenAI OpenAIProtocol+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:13: warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: generic class 'ArrayWithThreadSafety' does not conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:31: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
[43/45] Compiling OpenAI OpenAIProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:13: warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: generic class 'ArrayWithThreadSafety' does not conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:31: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
[44/45] Compiling OpenAI ArrayWithThreadSafety.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:13: warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: generic class 'ArrayWithThreadSafety' does not conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:31: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
[45/45] Compiling OpenAI Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:13: warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: generic class 'ArrayWithThreadSafety' does not conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'self' with non-sendable type 'ArrayWithThreadSafety<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/Public/Utilities/ArrayWithThreadSafety.swift:16:31: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | internal class ArrayWithThreadSafety<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
11 | private var array = [Element]()
12 | private let queue = DispatchQueue(label: "us.kalaf.OpenAI.threadSafeArray", attributes: .concurrent)
:
14 | @inlinable public func append(_ element: Element) {
15 | queue.async(flags: .barrier) {
16 | self.array.append(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
Build complete! (21.61s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "OpenAI",
"name" : "OpenAI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "OpenAI",
"targets" : [
"OpenAI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OpenAITests",
"module_type" : "SwiftTarget",
"name" : "OpenAITests",
"path" : "Tests/OpenAITests",
"sources" : [
"Extensions/XCTestCase+Extensions.swift",
"Mocks/DataTaskMock.swift",
"Mocks/URLSessionMock.swift",
"OpenAITests.swift",
"OpenAITestsCombine.swift",
"OpenAITestsDecoder.swift"
],
"target_dependencies" : [
"OpenAI"
],
"type" : "test"
},
{
"c99name" : "OpenAI",
"module_type" : "SwiftTarget",
"name" : "OpenAI",
"path" : "Sources/OpenAI",
"product_memberships" : [
"OpenAI"
],
"sources" : [
"OpenAI.swift",
"Private/JSONRequest.swift",
"Private/MultipartFormDataBodyBuilder.swift",
"Private/MultipartFormDataBodyEncodable.swift",
"Private/MultipartFormDataEntry.swift",
"Private/MultipartFormDataRequest.swift",
"Private/StreamingSession.swift",
"Private/URLRequestBuildable.swift",
"Private/URLSessionDataTaskProtocol.swift",
"Private/URLSessionProtocol.swift",
"Public/Errors/APIError.swift",
"Public/Models/AudioSpeechQuery.swift",
"Public/Models/AudioSpeechResult.swift",
"Public/Models/AudioTranscriptionQuery.swift",
"Public/Models/AudioTranscriptionResult.swift",
"Public/Models/AudioTranslationQuery.swift",
"Public/Models/AudioTranslationResult.swift",
"Public/Models/ChatQuery.swift",
"Public/Models/ChatResult.swift",
"Public/Models/ChatStreamResult.swift",
"Public/Models/CompletionsQuery.swift",
"Public/Models/CompletionsResult.swift",
"Public/Models/EditsQuery.swift",
"Public/Models/EditsResult.swift",
"Public/Models/EmbeddingsQuery.swift",
"Public/Models/EmbeddingsResult.swift",
"Public/Models/ImageEditsQuery.swift",
"Public/Models/ImageVariationsQuery.swift",
"Public/Models/ImagesQuery.swift",
"Public/Models/ImagesResult.swift",
"Public/Models/Models/ModelQuery.swift",
"Public/Models/Models/ModelResult.swift",
"Public/Models/Models/Models.swift",
"Public/Models/Models/ModelsResult.swift",
"Public/Models/ModerationsQuery.swift",
"Public/Models/ModerationsResult.swift",
"Public/Models/StreamableQuery.swift",
"Public/Protocols/OpenAIProtocol+Async.swift",
"Public/Protocols/OpenAIProtocol+Combine.swift",
"Public/Protocols/OpenAIProtocol.swift",
"Public/Utilities/ArrayWithThreadSafety.swift",
"Public/Utilities/Utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.