Build Information
Successful build of OpenAI, reference main (e75ccc
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 13:35:48 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/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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/StanfordBDHG/OpenAI.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/41] Emitting module OpenAI
[4/45] Compiling OpenAI OpenAIProtocol+Combine.swift
[5/45] Compiling OpenAI OpenAIProtocol.swift
[6/45] Compiling OpenAI ArrayWithThreadSafety.swift
[7/45] Compiling OpenAI Utilities.swift
[8/45] Compiling OpenAI AudioTranscriptionResult.swift
[9/45] Compiling OpenAI AudioTranslationQuery.swift
[10/45] Compiling OpenAI AudioTranslationResult.swift
[11/45] Compiling OpenAI ChatQuery.swift
[12/45] Compiling OpenAI ImageEditsQuery.swift
[13/45] Compiling OpenAI ImageVariationsQuery.swift
[14/45] Compiling OpenAI ImagesQuery.swift
[15/45] Compiling OpenAI ImagesResult.swift
[16/45] Compiling OpenAI EditsQuery.swift
[17/45] Compiling OpenAI EditsResult.swift
[18/45] Compiling OpenAI EmbeddingsQuery.swift
[19/45] Compiling OpenAI EmbeddingsResult.swift
[20/45] Compiling OpenAI ModelQuery.swift
[21/45] Compiling OpenAI ModelResult.swift
[22/45] Compiling OpenAI Models.swift
[23/45] Compiling OpenAI ModelsResult.swift
[24/45] Compiling OpenAI MultipartFormDataRequest.swift
[25/45] Compiling OpenAI StreamingSession.swift
[26/45] Compiling OpenAI URLRequestBuildable.swift
[27/45] Compiling OpenAI URLSessionDataTaskProtocol.swift
[28/45] Compiling OpenAI URLSessionProtocol.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 OpenAI.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated 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 non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 | // As non-streaming inference requests are not currently supported by SpeziLLM,
159 | // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 | func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
| `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 | do {
162 | let request = try request.build(token: configuration.token,
[34/45] Compiling OpenAI JSONRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated 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 non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 | // As non-streaming inference requests are not currently supported by SpeziLLM,
159 | // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 | func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
| `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 | do {
162 | let request = try request.build(token: configuration.token,
[35/45] Compiling OpenAI MultipartFormDataBodyBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated 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 non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 | // As non-streaming inference requests are not currently supported by SpeziLLM,
159 | // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 | func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
| `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 | do {
162 | let request = try request.build(token: configuration.token,
[36/45] Compiling OpenAI MultipartFormDataBodyEncodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated 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 non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 | // As non-streaming inference requests are not currently supported by SpeziLLM,
159 | // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 | func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
| `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 | do {
162 | let request = try request.build(token: configuration.token,
[37/45] Compiling OpenAI MultipartFormDataEntry.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:169:28: warning: capture of non-sendable type 'ResultType.Type' in an isolated 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 non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
170 | }
171 | guard let data = data else {
/Users/admin/builder/spi-builder-workspace/Sources/OpenAI/OpenAI.swift:160:80: warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 | // As non-streaming inference requests are not currently supported by SpeziLLM,
159 | // no need to adjust this function for custom TLS verification (required for Fog LLM functionality)
160 | func performRequest<ResultType: Codable>(request: any URLRequestBuildable, completion: @escaping (Result<ResultType, Error>) -> Void) {
| `- warning: capture of non-sendable type 'ResultType.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 | do {
162 | let request = try request.build(token: configuration.token,
[38/45] Compiling OpenAI ModerationsQuery.swift
[39/45] Compiling OpenAI ModerationsResult.swift
[40/45] Compiling OpenAI StreamableQuery.swift
[41/45] Compiling OpenAI OpenAIProtocol+Async.swift
[42/45] Compiling OpenAI APIError.swift
[43/45] Compiling OpenAI AudioSpeechQuery.swift
[44/45] Compiling OpenAI AudioSpeechResult.swift
[45/45] Compiling OpenAI AudioTranscriptionQuery.swift
Build complete! (4.90s)
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.