Build Information
Failed to build OpenAIRealtime, reference main (15c932
), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 08:43:12 UTC.
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/m1guelpf/swift-realtime-openai.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/m1guelpf/swift-realtime-openai
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 15c932f Add output_audio_buffer.started and output_audio_buffer.stopped server events
Cloned https://github.com/m1guelpf/swift-realtime-openai.git
Revision (git rev-parse @):
15c932fd2d4fd3f40757a6f13102b2f3e6b9359c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-realtime-openai.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/m1guelpf/swift-realtime-openai.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[1/5] Copying WebRTC.framework
[2/5] Write swift-version-1EA4D86E10B52AF.txt
[4/22] Compiling OpenAIRealtime Session.swift
[5/22] Compiling OpenAIRealtime OpenAIRealtime.swift
[6/22] Compiling OpenAIRealtime UnsafeInteriorMutable.swift
[7/23] Compiling OpenAIRealtime Connector.swift
[8/23] Compiling OpenAIRealtime Item.swift
[9/23] Compiling OpenAIRealtime Response.swift
[10/23] Compiling OpenAIRealtime Collection+safe.swift
[11/23] Compiling OpenAIRealtime Continuation+error.swift
[12/23] Compiling OpenAIRealtime String+random.swift
[13/23] Compiling OpenAIRealtime ClientEvent.swift
[14/23] Compiling OpenAIRealtime ServerError.swift
[15/23] Compiling OpenAIRealtime ServerEvent.swift
[16/23] Compiling OpenAIRealtime UnsafeMutableArray.swift
[17/23] Compiling OpenAIRealtime Conversation.swift
/Users/admin/builder/spi-builder-workspace/src/Conversation.swift:474:7: warning: reference to captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
472 |
473 | let status = converter.convert(to: convertedBuffer, error: &error) { _, outStatus in
474 | if allSamplesReceived {
| `- warning: reference to captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
475 | outStatus.pointee = .noDataNow
476 | return nil
/Users/admin/builder/spi-builder-workspace/src/Conversation.swift:479:4: warning: mutation of captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
477 | }
478 |
479 | allSamplesReceived = true
| `- warning: mutation of captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
480 | outStatus.pointee = .haveData
481 | return buffer
/Users/admin/builder/spi-builder-workspace/src/Conversation.swift:503:5: error: sending 'self' risks causing data races [#SendingRisksDataRace]
501 | withObservationTracking { _ = queuedSamples.isEmpty } onChange: { [weak self] in
502 | Task { @MainActor in
503 | guard let self else { return }
| |- error: sending 'self' risks causing data races [#SendingRisksDataRace]
| `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
504 |
505 | self.isPlaying = self.queuedSamples.isEmpty
506 | }
507 |
508 | self?._keepIsPlayingPropertyUpdated()
| `- note: access can happen concurrently
509 | }
510 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[18/23] Compiling OpenAIRealtime AVAudioPCMBuffer+fromData.swift
/Users/admin/builder/spi-builder-workspace/src/Conversation.swift:474:7: warning: reference to captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
472 |
473 | let status = converter.convert(to: convertedBuffer, error: &error) { _, outStatus in
474 | if allSamplesReceived {
| `- warning: reference to captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
475 | outStatus.pointee = .noDataNow
476 | return nil
/Users/admin/builder/spi-builder-workspace/src/Conversation.swift:479:4: warning: mutation of captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
477 | }
478 |
479 | allSamplesReceived = true
| `- warning: mutation of captured var 'allSamplesReceived' in concurrently-executing code [#SendableClosureCaptures]
480 | outStatus.pointee = .haveData
481 | return buffer
/Users/admin/builder/spi-builder-workspace/src/Conversation.swift:503:5: error: sending 'self' risks causing data races [#SendingRisksDataRace]
501 | withObservationTracking { _ = queuedSamples.isEmpty } onChange: { [weak self] in
502 | Task { @MainActor in
503 | guard let self else { return }
| |- error: sending 'self' risks causing data races [#SendingRisksDataRace]
| `- note: 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
504 |
505 | self.isPlaying = self.queuedSamples.isEmpty
506 | }
507 |
508 | self?._keepIsPlayingPropertyUpdated()
| `- note: access can happen concurrently
509 | }
510 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[19/23] Compiling OpenAIRealtime WebRTCConnector.swift
[20/23] Compiling OpenAIRealtime WebSocketConnector.swift
[21/23] Emitting module OpenAIRealtime
Fetching https://github.com/stasel/WebRTC.git
[1/676] Fetching webrtc
Fetched https://github.com/stasel/WebRTC.git from cache (0.74s)
Creating working copy for https://github.com/stasel/WebRTC.git
Working copy of https://github.com/stasel/WebRTC.git resolved at latest (b85669f)
Downloading binary artifact https://github.com/stasel/WebRTC/releases/download/137.0.0/WebRTC-M137.xcframework.zip
[16375/41307432] Downloading https://github.com/stasel/WebRTC/releases/download/137.0.0/WebRTC-M137.xcframework.zip
Downloaded https://github.com/stasel/WebRTC/releases/download/137.0.0/WebRTC-M137.xcframework.zip (2.57s)
BUILD FAILURE 6.2 macosSpm