Build Information
Failed to build MailerLiteAPIClient, reference main (096d6c), with Swift 6.3 for Android on 14 Apr 2026 09:23:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mikwat/mailerlite-swift.git
Reference: main
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/mikwat/mailerlite-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 096d6cf Update README.md
Cloned https://github.com/mikwat/mailerlite-swift.git
Revision (git rev-parse @):
096d6cfe288e544532d79527750decdb9dc95711
SUCCESS checkout https://github.com/mikwat/mailerlite-swift.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/mikwat/mailerlite-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/17] Compiling MailerLiteAPIClient UpsertSubscriber.swift
[4/17] Compiling MailerLiteAPIClient HTTPParameter.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/18] Emitting module MailerLiteAPIClient
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:12:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public final class MailerLiteAPIClient: APIClient, Sendable {
11 | private let baseEndpointUrl = URL(string: "https://connect.mailerlite.com/api/")!
12 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | private let apiKey: String
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/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
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/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:85: error: cannot infer contextual base in reference to member 'default'
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:12:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'MailerLiteAPIClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
10 | public final class MailerLiteAPIClient: APIClient, Sendable {
11 | private let baseEndpointUrl = URL(string: "https://connect.mailerlite.com/api/")!
12 | private let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'MailerLiteAPIClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
13 |
14 | private let apiKey: String
[6/18] Compiling MailerLiteAPIClient ListSubscribers.swift
[7/18] Compiling MailerLiteAPIClient UpdateSubscriber.swift
[8/18] Compiling MailerLiteAPIClient APIClient.swift
[9/18] Compiling MailerLiteAPIClient APIClientError.swift
[10/18] Compiling MailerLiteAPIClient APIErrorResponse.swift
[11/18] Compiling MailerLiteAPIClient APIRequest.swift
[12/18] Compiling MailerLiteAPIClient MailerLiteAPIClient.swift
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:12:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public final class MailerLiteAPIClient: APIClient, Sendable {
11 | private let baseEndpointUrl = URL(string: "https://connect.mailerlite.com/api/")!
12 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | private let apiKey: String
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/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
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/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:85: error: cannot infer contextual base in reference to member 'default'
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:12:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'MailerLiteAPIClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
10 | public final class MailerLiteAPIClient: APIClient, Sendable {
11 | private let baseEndpointUrl = URL(string: "https://connect.mailerlite.com/api/")!
12 | private let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'MailerLiteAPIClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
13 |
14 | private let apiKey: String
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:23:26: error: cannot find 'URLRequest' in scope
21 | public func send<T: APIRequest>(_ request: T) async throws -> T.Response {
22 | let endpoint = self.endpoint(for: request)
23 | var urlRequest = URLRequest(url: endpoint)
| `- error: cannot find 'URLRequest' in scope
24 | urlRequest.httpMethod = request.method.rawValue.uppercased()
25 | urlRequest.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:37:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | }
36 |
37 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 | do {
39 | let httpResponse = response as! HTTPURLResponse
[13/18] Compiling MailerLiteAPIClient Group.swift
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:12:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public final class MailerLiteAPIClient: APIClient, Sendable {
11 | private let baseEndpointUrl = URL(string: "https://connect.mailerlite.com/api/")!
12 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | private let apiKey: String
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/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
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/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:16:85: error: cannot infer contextual base in reference to member 'default'
14 | private let apiKey: String
15 |
16 | public init(apiKey: String, urlSession: URLSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
17 | self.apiKey = apiKey
18 | self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:12:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'MailerLiteAPIClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
10 | public final class MailerLiteAPIClient: APIClient, Sendable {
11 | private let baseEndpointUrl = URL(string: "https://connect.mailerlite.com/api/")!
12 | private let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'MailerLiteAPIClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
13 |
14 | private let apiKey: String
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:23:26: error: cannot find 'URLRequest' in scope
21 | public func send<T: APIRequest>(_ request: T) async throws -> T.Response {
22 | let endpoint = self.endpoint(for: request)
23 | var urlRequest = URLRequest(url: endpoint)
| `- error: cannot find 'URLRequest' in scope
24 | urlRequest.httpMethod = request.method.rawValue.uppercased()
25 | urlRequest.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/MailerLiteAPIClient/MailerLiteAPIClient.swift:37:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 | }
36 |
37 | let (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 | do {
39 | let httpResponse = response as! HTTPURLResponse
[14/18] Compiling MailerLiteAPIClient Links.swift
[15/18] Compiling MailerLiteAPIClient Meta.swift
[16/18] Compiling MailerLiteAPIClient Other.swift
[17/18] Compiling MailerLiteAPIClient Subscriber.swift
[18/18] Compiling MailerLiteAPIClient URLQueryItemEncoder.swift
BUILD FAILURE 6.3 android