The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ElevenlabsSwift, reference 0.7.5 (46913d), with Swift 6.3 for Android on 13 Apr 2026 17:10:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build 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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ArchieGoodwin/ElevenlabsSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/4] Emitting module ElevenlabsSwift
[4/4] Compiling ElevenlabsSwift ElevenlabsSwift.swift
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:16:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |     {
 15 |
 16 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |         let url = URL(string: "\(baseURL)/v1/voices")!
 18 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:18:23: error: cannot find 'URLRequest' in scope
 16 |         let session = URLSession.shared
 17 |         let url = URL(string: "\(baseURL)/v1/voices")!
 18 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 19 |         request.httpMethod = "GET"
 20 |         request.setValue(elevenLabsAPI, forHTTPHeaderField: "xi-api-key")
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:41:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     {
 40 |
 41 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         let url = URL(string: "\(baseURL)/v1/text-to-speech/\(voice_id)")!
 43 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:43:23: error: cannot find 'URLRequest' in scope
 41 |         let session = URLSession.shared
 42 |         let url = URL(string: "\(baseURL)/v1/text-to-speech/\(voice_id)")!
 43 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 44 |         request.httpMethod = "POST"
 45 |         request.setValue(elevenLabsAPI, forHTTPHeaderField: "xi-api-key")
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:110:23: error: cannot find 'URLRequest' in scope
108 |
109 |         let boundary = UUID().uuidString
110 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
111 |         request.httpMethod = "POST"
112 |         request.setValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:138:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
136 |         request.httpBody = data
137 |
138 |         let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
139 |             if let error = error {
140 |                 print("Error: \(error)")
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:171:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
169 |             throw WebAPIError.httpError(message: "incorrect url")
170 |         }
171 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
172 |
173 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:173:23: error: cannot find 'URLRequest' in scope
171 |         let session = URLSession.shared
172 |
173 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
174 |         request.httpMethod = "DELETE"
175 |         request.setValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:197:23: error: cannot find 'URLRequest' in scope
195 |
196 |         let boundary = UUID().uuidString
197 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
198 |         request.httpMethod = "POST"
199 |         request.setValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/ElevenlabsSwift/ElevenlabsSwift.swift:225:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 |         request.httpBody = data
224 |
225 |         let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
226 |             if let error = error {
227 |                 print("Error: \(error)")
BUILD FAILURE 6.3 android