The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BizowieAPI, reference 0.5.0 (cd244e), with Swift 6.1 for Wasm on 28 Jun 2026 20:30:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mjflick/bizowie-api-swift.git
Reference: 0.5.0
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/mjflick/bizowie-api-swift
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at cd244ee o# Please enter the commit message for your changes. Lines starting
Cloned https://github.com/mjflick/bizowie-api-swift.git
Revision (git rev-parse @):
cd244ee94cd97eb27ae9104fcf43c0e53ffe448c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mjflick/bizowie-api-swift.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mjflick/bizowie-api-swift.git
https://github.com/mjflick/bizowie-api-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module BizowieAPI
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:82:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     private let apiVersion: String?
 81 |     private let debug: Bool
 82 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Create a client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     ) {
106 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
105 |     ) {
106 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:196:32: error: cannot find type 'URLRequest' in scope
194 |     }
195 |
196 |     private func send(request: URLRequest) async throws -> BizowieAPIResponse {
    |                                `- error: cannot find type 'URLRequest' in scope
197 |         let data: Data
198 |         let response: URLResponse
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:207:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     }
206 |
207 |     private func parse(data: Data, response: URLResponse) -> BizowieAPIResponse {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         var parsed: [String: Any]
209 |         if let obj = try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[4/4] Compiling BizowieAPI BizowieAPI.swift
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:82:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     private let apiVersion: String?
 81 |     private let debug: Bool
 82 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Create a client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     ) {
106 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
105 |     ) {
106 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:196:32: error: cannot find type 'URLRequest' in scope
194 |     }
195 |
196 |     private func send(request: URLRequest) async throws -> BizowieAPIResponse {
    |                                `- error: cannot find type 'URLRequest' in scope
197 |         let data: Data
198 |         let response: URLResponse
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:207:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     }
206 |
207 |     private func parse(data: Data, response: URLResponse) -> BizowieAPIResponse {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         var parsed: [String: Any]
209 |         if let obj = try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:159:19: error: cannot find 'URLRequest' in scope
157 |         }
158 |
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.httpMethod = "POST"
161 |         req.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:187:19: error: cannot find 'URLRequest' in scope
185 |         let bodyString = try jsonString(from: payload)
186 |
187 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
188 |         req.httpMethod = "POST"
189 |         req.setValue("form-data", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:198:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     private func send(request: URLRequest) async throws -> BizowieAPIResponse {
197 |         let data: Data
198 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         do {
200 |             (data, response) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:200:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
198 |         let response: URLResponse
199 |         do {
200 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
201 |         } catch {
202 |             throw BizowieAPIError.requestFailed(error)
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:213:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
211 |         } else {
212 |             if debug {
213 |                 let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
214 |                 let text = String(data: data, encoding: .utf8) ?? "<non-utf8 body>"
215 |                 FileHandle.standardError.write(Data("[Bizowie::API] \(status)\n\(text)\n".utf8))
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:213:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |         } else {
212 |             if debug {
213 |                 let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
214 |                 let text = String(data: data, encoding: .utf8) ?? "<non-utf8 body>"
215 |                 FileHandle.standardError.write(Data("[Bizowie::API] \(status)\n\(text)\n".utf8))
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module BizowieAPI
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:82:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     private let apiVersion: String?
 81 |     private let debug: Bool
 82 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Create a client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     ) {
106 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
105 |     ) {
106 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:196:32: error: cannot find type 'URLRequest' in scope
194 |     }
195 |
196 |     private func send(request: URLRequest) async throws -> BizowieAPIResponse {
    |                                `- error: cannot find type 'URLRequest' in scope
197 |         let data: Data
198 |         let response: URLResponse
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:207:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     }
206 |
207 |     private func parse(data: Data, response: URLResponse) -> BizowieAPIResponse {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         var parsed: [String: Any]
209 |         if let obj = try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[3/3] Compiling BizowieAPI BizowieAPI.swift
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:82:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     private let apiVersion: String?
 81 |     private let debug: Bool
 82 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Create a client.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     ) {
106 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:104:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         apiVersion: String? = nil,
103 |         debug: Bool = false,
104 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
105 |     ) {
106 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:196:32: error: cannot find type 'URLRequest' in scope
194 |     }
195 |
196 |     private func send(request: URLRequest) async throws -> BizowieAPIResponse {
    |                                `- error: cannot find type 'URLRequest' in scope
197 |         let data: Data
198 |         let response: URLResponse
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:207:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     }
206 |
207 |     private func parse(data: Data, response: URLResponse) -> BizowieAPIResponse {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         var parsed: [String: Any]
209 |         if let obj = try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:159:19: error: cannot find 'URLRequest' in scope
157 |         }
158 |
159 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
160 |         req.httpMethod = "POST"
161 |         req.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:187:19: error: cannot find 'URLRequest' in scope
185 |         let bodyString = try jsonString(from: payload)
186 |
187 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
188 |         req.httpMethod = "POST"
189 |         req.setValue("form-data", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:198:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     private func send(request: URLRequest) async throws -> BizowieAPIResponse {
197 |         let data: Data
198 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         do {
200 |             (data, response) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:200:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
198 |         let response: URLResponse
199 |         do {
200 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
201 |         } catch {
202 |             throw BizowieAPIError.requestFailed(error)
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:213:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
211 |         } else {
212 |             if debug {
213 |                 let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
214 |                 let text = String(data: data, encoding: .utf8) ?? "<non-utf8 body>"
215 |                 FileHandle.standardError.write(Data("[Bizowie::API] \(status)\n\(text)\n".utf8))
/host/spi-builder-workspace/Sources/BizowieAPI/BizowieAPI.swift:213:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |         } else {
212 |             if debug {
213 |                 let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
214 |                 let text = String(data: data, encoding: .utf8) ?? "<non-utf8 body>"
215 |                 FileHandle.standardError.write(Data("[Bizowie::API] \(status)\n\(text)\n".utf8))
BUILD FAILURE 6.1 wasm