The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TossInvestKit, reference main (9f7ec2), with Swift 6.3 for Linux on 19 Jul 2026 15:00:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jea0716/TossInvestKit.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/jea0716/TossInvestKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         linux
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-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:518d581a7f3cc0f988d8921e0dce92c3361f942cd4cc7d944cb46f8707e06c63
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/19] Compiling TossInvestKit Credentials.swift
[5/19] Compiling TossInvestKit APIDecimal.swift
[6/19] Emitting module TossInvestKit
/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)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/20] Compiling TossInvestKit TossInvestClient.swift
/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>
[8/20] Compiling TossInvestKit Account.swift
[9/20] Compiling TossInvestKit Holdings.swift
[10/20] Compiling TossInvestKit MarketData.swift
[11/20] Compiling TossInvestKit Quote.swift
[12/20] Compiling TossInvestKit TokenProvider.swift
/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/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")
[14/20] Compiling TossInvestKit TossInvestClientProtocol.swift
[15/20] Compiling TossInvestKit TossInvestError.swift
[16/20] Compiling TossInvestKit Transport.swift
BUILD FAILURE 6.3 linux