The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ShopSavvySDK, reference 1.3.0 (64ea23), with Swift 6.2 for Linux on 30 Sep 2026 21:08:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shopsavvy/sdk-swift.git
Reference: 1.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/shopsavvy/sdk-swift
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 64ea236 docs: scheduled-products list example; offer availability is "in", not "in_stock"
Cloned https://github.com/shopsavvy/sdk-swift.git
Revision (git rev-parse @):
64ea2368bbdaaa8bd0e23269d30be5c2420a0f49
SUCCESS checkout https://github.com/shopsavvy/sdk-swift.git at 1.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/shopsavvy/sdk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:813c8e8a77634154d7d247705cb89167ff1c866446abbe321f542129dc4cf5a7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling ShopSavvySDK Models.swift
[4/6] Compiling ShopSavvySDK Errors.swift
[5/6] Emitting module ShopSavvySDK
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:26:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     private let apiKey: String
 25 |     private let baseURL: String
 26 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private let decoder: JSONDecoder
 28 |     private let encoder: JSONEncoder
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/ShopSavvySDK/ShopSavvyClient.swift:43:96: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ///   - configuration: Base `URLSessionConfiguration` (proxies, `protocolClasses`, caching).
 42 |     ///     The timeout intervals above are applied on top of it.
 43 |     public init(apiKey: String, baseURL: String, timeoutInterval: TimeInterval, configuration: URLSessionConfiguration = .default) {
    |                                                                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         guard !apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
 45 |             fatalError("API key is required. Get one at https://shopsavvy.com/data")
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:43:123: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ///   - configuration: Base `URLSessionConfiguration` (proxies, `protocolClasses`, caching).
 42 |     ///     The timeout intervals above are applied on top of it.
 43 |     public init(apiKey: String, baseURL: String, timeoutInterval: TimeInterval, configuration: URLSessionConfiguration = .default) {
    |                                                                                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         guard !apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
 45 |             fatalError("API key is required. Get one at https://shopsavvy.com/data")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:43:123: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |     ///   - configuration: Base `URLSessionConfiguration` (proxies, `protocolClasses`, caching).
 42 |     ///     The timeout intervals above are applied on top of it.
 43 |     public init(apiKey: String, baseURL: String, timeoutInterval: TimeInterval, configuration: URLSessionConfiguration = .default) {
    |                                                                                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 44 |         guard !apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
 45 |             fatalError("API key is required. Get one at https://shopsavvy.com/data")
[6/6] Compiling ShopSavvySDK ShopSavvyClient.swift
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:26:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     private let apiKey: String
 25 |     private let baseURL: String
 26 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private let decoder: JSONDecoder
 28 |     private let encoder: JSONEncoder
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/ShopSavvySDK/ShopSavvyClient.swift:43:96: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ///   - configuration: Base `URLSessionConfiguration` (proxies, `protocolClasses`, caching).
 42 |     ///     The timeout intervals above are applied on top of it.
 43 |     public init(apiKey: String, baseURL: String, timeoutInterval: TimeInterval, configuration: URLSessionConfiguration = .default) {
    |                                                                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         guard !apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
 45 |             fatalError("API key is required. Get one at https://shopsavvy.com/data")
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:43:123: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |     ///   - configuration: Base `URLSessionConfiguration` (proxies, `protocolClasses`, caching).
 42 |     ///     The timeout intervals above are applied on top of it.
 43 |     public init(apiKey: String, baseURL: String, timeoutInterval: TimeInterval, configuration: URLSessionConfiguration = .default) {
    |                                                                                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 44 |         guard !apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
 45 |             fatalError("API key is required. Get one at https://shopsavvy.com/data")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:43:123: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ///   - configuration: Base `URLSessionConfiguration` (proxies, `protocolClasses`, caching).
 42 |     ///     The timeout intervals above are applied on top of it.
 43 |     public init(apiKey: String, baseURL: String, timeoutInterval: TimeInterval, configuration: URLSessionConfiguration = .default) {
    |                                                                                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         guard !apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
 45 |             fatalError("API key is required. Get one at https://shopsavvy.com/data")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:55:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 53 |         self.baseURL = baseURL
 54 |
 55 |         configuration.timeoutIntervalForRequest = timeoutInterval
    |                       `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 56 |         configuration.timeoutIntervalForResource = timeoutInterval
 57 |         self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:56:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 54 |
 55 |         configuration.timeoutIntervalForRequest = timeoutInterval
 56 |         configuration.timeoutIntervalForResource = timeoutInterval
    |                       `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 57 |         self.session = URLSession(configuration: configuration)
 58 |
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:57:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |         configuration.timeoutIntervalForRequest = timeoutInterval
 56 |         configuration.timeoutIntervalForResource = timeoutInterval
 57 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |
 59 |         self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:302:23: error: cannot find 'URLRequest' in scope
300 |         let jsonData = try JSONSerialization.data(withJSONObject: body)
301 |
302 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
303 |         request.httpMethod = "POST"
304 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:309:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
307 |         request.httpBody = jsonData
308 |
309 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
310 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
311 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:316:23: error: cannot find 'URLRequest' in scope
314 |     public func getBatchStatus(batchId: String) async throws -> [String: Any] {
315 |         let url = URL(string: "\(baseURL)/batch/\(batchId)")!
316 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
317 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
318 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:319:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
317 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
318 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
319 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
320 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
321 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:325:23: error: cannot find 'URLRequest' in scope
323 |     public func createWebhook(url: String, events: [String]) async throws -> [String: Any] {
324 |         let webhookUrl = URL(string: "\(baseURL)/webhooks")!
325 |         var request = URLRequest(url: webhookUrl)
    |                       `- error: cannot find 'URLRequest' in scope
326 |         request.httpMethod = "POST"
327 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:331:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
330 |         request.httpBody = try JSONSerialization.data(withJSONObject: ["url": url, "events": events])
331 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
333 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:336:23: error: cannot find 'URLRequest' in scope
334 |
335 |     public func listWebhooks() async throws -> [String: Any] {
336 |         var request = URLRequest(url: URL(string: "\(baseURL)/webhooks")!)
    |                       `- error: cannot find 'URLRequest' in scope
337 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
338 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:339:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
337 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
338 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
339 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
340 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
341 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:345:23: error: cannot find 'URLRequest' in scope
343 |     public func testWebhook(webhookId: String) async throws -> [String: Any] {
344 |         let testUrl = URL(string: "\(baseURL)/webhooks/\(webhookId)/test")!
345 |         var request = URLRequest(url: testUrl)
    |                       `- error: cannot find 'URLRequest' in scope
346 |         request.httpMethod = "POST"
347 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:349:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
347 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
348 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
349 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
350 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
351 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:360:23: error: cannot find 'URLRequest' in scope
358 |         }
359 |         let updateUrl = URL(string: "\(baseURL)/webhooks/\(webhookId)")!
360 |         var request = URLRequest(url: updateUrl)
    |                       `- error: cannot find 'URLRequest' in scope
361 |         request.httpMethod = "PUT"
362 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:370:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
368 |         if let isActive = isActive { body["is_active"] = isActive }
369 |         request.httpBody = try JSONSerialization.data(withJSONObject: body)
370 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
371 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
372 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:376:23: error: cannot find 'URLRequest' in scope
374 |     public func deleteWebhook(webhookId: String) async throws -> [String: Any] {
375 |         let delUrl = URL(string: "\(baseURL)/webhooks/\(webhookId)")!
376 |         var request = URLRequest(url: delUrl)
    |                       `- error: cannot find 'URLRequest' in scope
377 |         request.httpMethod = "DELETE"
378 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:380:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
378 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
379 |         request.setValue("ShopSavvy-Swift-SDK/\(VERSION)", forHTTPHeaderField: "User-Agent")
380 |         let (data, _) = try await URLSession.shared.data(for: request)
    |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
381 |         return try JSONSerialization.jsonObject(with: data) as? [String: Any] ?? [:]
382 |     }
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:394:23: error: cannot find 'URLRequest' in scope
392 |
393 |     private func performRequest<T: Codable>(url: URL, method: String = "GET", body: Codable? = nil) async throws -> T {
394 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
395 |         request.httpMethod = method
396 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:404:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
402 |         }
403 |
404 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
405 |
406 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ShopSavvySDK/ShopSavvyClient.swift:412:61: error: type of expression is ambiguous without a type annotation
410 |         guard 200...299 ~= httpResponse.statusCode else {
411 |             let errorMessage = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
412 |             let message = errorMessage?["error"] as? String ?? "Unknown error"
    |                                                             `- error: type of expression is ambiguous without a type annotation
413 |
414 |             switch httpResponse.statusCode {
BUILD FAILURE 6.2 linux