The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MailerLiteAPIClient, reference v0.3.0 (a383d7), with Swift 6.1 for Android on 29 May 2025 06:17:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mikwat/mailerlite-swift.git
Reference: v0.3.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/mikwat/mailerlite-swift
 * tag               v0.3.0     -> FETCH_HEAD
HEAD is now at a383d7f Make client sendable (#3)
Cloned https://github.com/mikwat/mailerlite-swift.git
Revision (git rev-parse @):
a383d7f59faf175d4c8135b8730a5d56a19cee48
SUCCESS checkout https://github.com/mikwat/mailerlite-swift.git at v0.3.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mikwat/mailerlite-swift.git
https://github.com/mikwat/mailerlite-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MailerLiteAPIClient",
  "name" : "MailerLiteAPIClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "MailerLiteAPIClient",
      "targets" : [
        "MailerLiteAPIClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MailerLiteAPIClientTests",
      "module_type" : "SwiftTarget",
      "name" : "MailerLiteAPIClientTests",
      "path" : "Tests/MailerLiteAPIClientTests",
      "sources" : [
        "MockURLProtocol.swift",
        "Requests/ListSubscribersTest.swift",
        "Requests/UpdateSubscriberTest.swift",
        "Requests/UpsertSubscriberTest.swift"
      ],
      "target_dependencies" : [
        "MailerLiteAPIClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MailerLiteAPIClient",
      "module_type" : "SwiftTarget",
      "name" : "MailerLiteAPIClient",
      "path" : "Sources/MailerLiteAPIClient",
      "product_memberships" : [
        "MailerLiteAPIClient"
      ],
      "sources" : [
        "APIClient.swift",
        "APIClientError.swift",
        "APIErrorResponse.swift",
        "APIRequest.swift",
        "MailerLiteAPIClient.swift",
        "Models/Group.swift",
        "Models/Links.swift",
        "Models/Meta.swift",
        "Models/Other.swift",
        "Models/Subscriber.swift",
        "Requests/ListSubscribers.swift",
        "Requests/UpdateSubscriber.swift",
        "Requests/UpsertSubscriber.swift",
        "Utils/HTTPParameter.swift",
        "Utils/URLQueryItemEncoder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.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] Compiling MailerLiteAPIClient APIErrorResponse.swift
[6/18] Compiling MailerLiteAPIClient APIRequest.swift
[7/18] Compiling MailerLiteAPIClient APIClient.swift
[8/18] Compiling MailerLiteAPIClient APIClientError.swift
[9/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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
13 |
14 |     private let apiKey: String
[10/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 'URLSession' (aka '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 'URLSession' (aka '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
[11/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 'URLSession' (aka '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 'URLSession' (aka '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
[12/18] Compiling MailerLiteAPIClient Other.swift
[13/18] Compiling MailerLiteAPIClient Subscriber.swift
[14/18] Compiling MailerLiteAPIClient ListSubscribers.swift
[15/18] Compiling MailerLiteAPIClient UpdateSubscriber.swift
[16/18] Compiling MailerLiteAPIClient Links.swift
[17/18] Compiling MailerLiteAPIClient Meta.swift
[18/18] Compiling MailerLiteAPIClient URLQueryItemEncoder.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] 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 'URLSession' (aka '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 'URLSession' (aka '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
[3/16] 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 'URLSession' (aka '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 'URLSession' (aka '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
[4/16] Compiling MailerLiteAPIClient APIErrorResponse.swift
[5/16] Compiling MailerLiteAPIClient APIRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/17] Compiling MailerLiteAPIClient APIClient.swift
[7/17] Compiling MailerLiteAPIClient APIClientError.swift
[8/17] 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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
13 |
14 |     private let apiKey: String
[9/17] Compiling MailerLiteAPIClient UpsertSubscriber.swift
[10/17] Compiling MailerLiteAPIClient HTTPParameter.swift
[11/17] Compiling MailerLiteAPIClient URLQueryItemEncoder.swift
[12/17] Compiling MailerLiteAPIClient ListSubscribers.swift
[13/17] Compiling MailerLiteAPIClient UpdateSubscriber.swift
[14/17] Compiling MailerLiteAPIClient Links.swift
[15/17] Compiling MailerLiteAPIClient Meta.swift
[16/17] Compiling MailerLiteAPIClient Other.swift
[17/17] Compiling MailerLiteAPIClient Subscriber.swift
BUILD FAILURE 6.1 android