Build Information
Failed to build MailerLiteAPIClient, reference v0.3.0 (a383d7), with Swift 6.1 for Wasm on 29 May 2025 06:17:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build 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: wasm
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-2":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-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
[5/18] Compiling MailerLiteAPIClient URLQueryItemEncoder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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
[7/18] Compiling MailerLiteAPIClient APIClient.swift
[8/18] Compiling MailerLiteAPIClient APIClientError.swift
[9/18] Compiling MailerLiteAPIClient APIErrorResponse.swift
[10/18] Compiling MailerLiteAPIClient APIRequest.swift
[11/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
[12/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
[13/18] Compiling MailerLiteAPIClient ListSubscribers.swift
[14/18] Compiling MailerLiteAPIClient UpdateSubscriber.swift
[15/18] Compiling MailerLiteAPIClient Other.swift
[16/18] Compiling MailerLiteAPIClient Subscriber.swift
[17/18] Compiling MailerLiteAPIClient Links.swift
[18/18] Compiling MailerLiteAPIClient Meta.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/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/16] 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
[3/17] Compiling MailerLiteAPIClient UpsertSubscriber.swift
[4/17] Compiling MailerLiteAPIClient HTTPParameter.swift
[5/17] Compiling MailerLiteAPIClient URLQueryItemEncoder.swift
[6/17] Compiling MailerLiteAPIClient APIClient.swift
[7/17] Compiling MailerLiteAPIClient APIClientError.swift
[8/17] Compiling MailerLiteAPIClient Links.swift
[9/17] Compiling MailerLiteAPIClient Meta.swift
[10/17] Compiling MailerLiteAPIClient Other.swift
[11/17] Compiling MailerLiteAPIClient Subscriber.swift
[12/17] Compiling MailerLiteAPIClient APIErrorResponse.swift
[13/17] Compiling MailerLiteAPIClient APIRequest.swift
[14/17] Compiling MailerLiteAPIClient ListSubscribers.swift
[15/17] Compiling MailerLiteAPIClient UpdateSubscriber.swift
[16/17] 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
[17/17] 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
BUILD FAILURE 6.1 wasm