The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ElevenlabsSwift, reference 0.7.5 (46913d), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 06:12:39 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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ArchieGoodwin/ElevenlabsSwift.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/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.2 macosSpm