Build Information
Failed to build ElevenlabsSwift, reference 0.7.5 (46913d), with Swift 6.3 for macOS (SPM) on 22 Apr 2026 13:39:33 UTC.
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/ArchieGoodwin/ElevenlabsSwift.git
Reference: 0.7.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ArchieGoodwin/ElevenlabsSwift
* tag 0.7.5 -> FETCH_HEAD
HEAD is now at 46913d6 added extension to audio file
Cloned https://github.com/ArchieGoodwin/ElevenlabsSwift.git
Revision (git rev-parse @):
46913d689503d4d88793d9ae180d0d437438175f
SUCCESS checkout https://github.com/ArchieGoodwin/ElevenlabsSwift.git at 0.7.5
========================================
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": "elevenlabsswift",
"name": "ElevenlabsSwift",
"url": "https://github.com/ArchieGoodwin/ElevenlabsSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ElevenlabsSwift",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/ArchieGoodwin/ElevenlabsSwift.git
[1/63] Fetching elevenlabsswift
Fetched https://github.com/ArchieGoodwin/ElevenlabsSwift.git from cache (0.64s)
Creating working copy for https://github.com/ArchieGoodwin/ElevenlabsSwift.git
Working copy of https://github.com/ArchieGoodwin/ElevenlabsSwift.git resolved at 0.7.5 (46913d6)
warning: '.resolve-product-dependencies': dependency 'elevenlabsswift' 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/ArchieGoodwin/ElevenlabsSwift.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/4] Emitting module ElevenlabsSwift
[4/4] Compiling ElevenlabsSwift ElevenlabsSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:24:47: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
2 |
3 |
4 | public class ElevenlabsSwift {
| `- note: add '@available' attribute to enclosing class
5 | private var elevenLabsAPI: String
6 |
:
11 | private let baseURL = "https://api.elevenlabs.io"
12 |
13 | public func fetchVoices() async throws -> [Voice]
| `- note: add '@available' attribute to enclosing instance method
14 | {
15 |
:
22 |
23 | do {
24 | let (data, _) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
25 |
26 | let userResponse: VoicesResponse = try JSONDecoder().decode(VoicesResponse.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:58:47: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
2 |
3 |
4 | public class ElevenlabsSwift {
| `- note: add '@available' attribute to enclosing class
5 | private var elevenLabsAPI: String
6 |
:
36 | }
37 |
38 | public func textToSpeech(voice_id: String, text: String) async throws -> URL
| `- note: add '@available' attribute to enclosing instance method
39 | {
40 |
:
56 |
57 | do {
58 | let (data, _) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
59 | print(data)
60 |
/Users/admin/builder/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:179:47: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
2 |
3 |
4 | public class ElevenlabsSwift {
| `- note: add '@available' attribute to enclosing class
5 | private var elevenLabsAPI: String
6 |
:
164 | }
165 |
166 | public func deleteVoice(voiceId: String) async throws {
| `- note: add '@available' attribute to enclosing instance method
167 | guard let url = URL(string: "\(baseURL)/v1/voices/\(voiceId)") else {
168 | print("Invalid URL")
:
177 |
178 | do {
179 | let (data, _) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
180 |
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:179:18: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
177 |
178 | do {
179 | let (data, _) = try await session.data(for: request)
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
180 |
181 | }
BUILD FAILURE 6.3 macosSpm