Build Information
Failed to build TossInvestKit, reference 0.1.0 (9f7ec2), with Swift 6.3 for Wasm on 19 Jul 2026 19:16:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jea0716/TossInvestKit.git
Reference: 0.1.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/jea0716/TossInvestKit
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 9f7ec2d Prepare TossInvestKit 0.1.0 release (#1)
Cloned https://github.com/jea0716/TossInvestKit.git
Revision (git rev-parse @):
9f7ec2d1a1c7916803172c08c99e3becd94be9dd
SUCCESS checkout https://github.com/jea0716/TossInvestKit.git at 0.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/jea0716/TossInvestKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:501b6bfc4ca8a27c305c68f9d5c778f996de82635741ab45476a03ffa6fa26d2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/19] Compiling TossInvestKit MarketData.swift
[5/19] Compiling TossInvestKit Quote.swift
[6/20] Compiling TossInvestKit Account.swift
[7/20] Compiling TossInvestKit Holdings.swift
[8/20] Compiling TossInvestKit TossInvestClientProtocol.swift
[9/20] Compiling TossInvestKit TossInvestError.swift
[10/20] Compiling TossInvestKit Transport.swift
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:26: error: cannot find type 'URLRequest' in scope
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// 기본 구현: URLSession을 그대로 사용합니다.
16 | public struct URLSessionTransport: HTTPTransport {
17 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | public init(session: URLSession = .shared) {
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/TossInvestKit/Transport.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.session = session
21 | }
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/TossInvestKit/Transport.swift:19:40: error: value of type '_' expected to be instance of class or class-constrained type
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:19:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:23:33: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
24 | let (data, response) = try await session.data(for: request)
25 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:23:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await session.data(for: request)
25 | guard let http = response as? HTTPURLResponse else {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
15 | /// 기본 구현: URLSession을 그대로 사용합니다.
16 | public struct URLSessionTransport: HTTPTransport {
17 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
18 |
19 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:24:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
22 |
23 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
24 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
25 | guard let http = response as? HTTPURLResponse else {
26 | throw TossInvestError.invalidResponse
[11/20] Compiling TossInvestKit TossInvestClient.swift
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:26: error: cannot find type 'URLRequest' in scope
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:19:40: error: value of type '_' expected to be instance of class or class-constrained type
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:19:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:121:10: error: cannot find type 'URLRequest' in scope
119 | headers: [String: String],
120 | token: String
121 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
122 | var components = URLComponents(
123 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:148:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | private func decodeResponse<T: Decodable>(
147 | _ data: Data,
148 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | ) throws -> T {
150 | guard (200..<300).contains(response.statusCode) else {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:185:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 | private extension RateLimitInfo {
185 | init(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | self.init(
187 | limit: response.integerHeader("X-RateLimit-Limit"),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:195:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
193 | }
194 |
195 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
196 | func integerHeader(_ name: String) -> Int? {
197 | value(forHTTPHeaderField: name).flatMap(Int.init)
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:130:23: error: cannot find 'URLRequest' in scope
128 | }
129 |
130 | var request = URLRequest(url: components.url!)
| `- error: cannot find 'URLRequest' in scope
131 | request.httpMethod = "GET"
132 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:150:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 | response: HTTPURLResponse
149 | ) throws -> T {
150 | guard (200..<300).contains(response.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | let envelope = try? decoder.decode(ErrorEnvelope.self, from: data)
152 |
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:153:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | let envelope = try? decoder.decode(ErrorEnvelope.self, from: data)
152 |
153 | if response.statusCode == 429 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
154 | throw TossInvestError.rateLimited(
155 | statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:155:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
153 | if response.statusCode == 429 {
154 | throw TossInvestError.rateLimited(
155 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | code: envelope?.error.code ?? "rate-limit-exceeded",
157 | message: envelope?.error.message ?? "요청 한도를 초과했습니다.",
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:159:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
157 | message: envelope?.error.message ?? "요청 한도를 초과했습니다.",
158 | requestID: envelope?.error.requestId
159 | ?? response.value(forHTTPHeaderField: "X-Request-Id")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
160 | ?? "",
161 | info: RateLimitInfo(response: response)
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 | if let envelope {
166 | throw TossInvestError.api(
167 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 | code: envelope.error.code,
169 | message: envelope.error.message,
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:187:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'integerHeader'
185 | init(response: HTTPURLResponse) {
186 | self.init(
187 | limit: response.integerHeader("X-RateLimit-Limit"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'integerHeader'
188 | remaining: response.integerHeader("X-RateLimit-Remaining"),
189 | resetAfter: response.timeIntervalHeader("X-RateLimit-Reset"),
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:188:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'integerHeader'
186 | self.init(
187 | limit: response.integerHeader("X-RateLimit-Limit"),
188 | remaining: response.integerHeader("X-RateLimit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'integerHeader'
189 | resetAfter: response.timeIntervalHeader("X-RateLimit-Reset"),
190 | retryAfter: response.timeIntervalHeader("Retry-After")
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:189:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'timeIntervalHeader'
187 | limit: response.integerHeader("X-RateLimit-Limit"),
188 | remaining: response.integerHeader("X-RateLimit-Remaining"),
189 | resetAfter: response.timeIntervalHeader("X-RateLimit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'timeIntervalHeader'
190 | retryAfter: response.timeIntervalHeader("Retry-After")
191 | )
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:190:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'timeIntervalHeader'
188 | remaining: response.integerHeader("X-RateLimit-Remaining"),
189 | resetAfter: response.timeIntervalHeader("X-RateLimit-Reset"),
190 | retryAfter: response.timeIntervalHeader("Retry-After")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'timeIntervalHeader'
191 | )
192 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/20] Compiling TossInvestKit TokenProvider.swift
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:26: error: cannot find type 'URLRequest' in scope
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/TossInvestKit/TokenProvider.swift:57:23: error: cannot find 'URLRequest' in scope
55 |
56 | private func issueToken() async throws -> String {
57 | var request = URLRequest(url: baseURL.appendingPathComponent("oauth2/token"))
| `- error: cannot find 'URLRequest' in scope
58 | request.httpMethod = "POST"
59 | request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
[13/20] Compiling TossInvestKit TossInvestClient+MarketData.swift
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:26: error: cannot find type 'URLRequest' in scope
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/TossInvestKit/TokenProvider.swift:57:23: error: cannot find 'URLRequest' in scope
55 |
56 | private func issueToken() async throws -> String {
57 | var request = URLRequest(url: baseURL.appendingPathComponent("oauth2/token"))
| `- error: cannot find 'URLRequest' in scope
58 | request.httpMethod = "POST"
59 | request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/20] Compiling TossInvestKit Credentials.swift
[15/20] Compiling TossInvestKit APIDecimal.swift
[16/20] Emitting module TossInvestKit
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:26: error: cannot find type 'URLRequest' in scope
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:19:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:19:40: error: value of type '_' expected to be instance of class or class-constrained type
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:121:10: error: cannot find type 'URLRequest' in scope
119 | headers: [String: String],
120 | token: String
121 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
122 | var components = URLComponents(
123 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:148:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | private func decodeResponse<T: Decodable>(
147 | _ data: Data,
148 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | ) throws -> T {
150 | guard (200..<300).contains(response.statusCode) else {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:185:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 | private extension RateLimitInfo {
185 | init(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | self.init(
187 | limit: response.integerHeader("X-RateLimit-Limit"),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/TossInvestClient.swift:195:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
193 | }
194 |
195 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
196 | func integerHeader(_ name: String) -> Int? {
197 | value(forHTTPHeaderField: name).flatMap(Int.init)
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:12:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// 실제 서버 없이 클라이언트 로직 전체를 검증할 수 있습니다.
11 | public protocol HTTPTransport: Sendable {
12 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// 기본 구현: URLSession을 그대로 사용합니다.
16 | public struct URLSessionTransport: HTTPTransport {
17 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | public init(session: URLSession = .shared) {
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/TossInvestKit/Transport.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let session: URLSession
18 |
19 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.session = session
21 | }
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/TossInvestKit/Transport.swift:23:33: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
24 | let (data, response) = try await session.data(for: request)
25 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:23:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await session.data(for: request)
25 | guard let http = response as? HTTPURLResponse else {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TossInvestKit/Transport.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
15 | /// 기본 구현: URLSession을 그대로 사용합니다.
16 | public struct URLSessionTransport: HTTPTransport {
17 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
18 |
19 | public init(session: URLSession = .shared) {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm