The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NobetciEczaneApi, reference v1.0.0 (5a12cc), with Swift 6.2 for Wasm on 4 Nov 2026 22:37:00 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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git
Reference: v1.0.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/mehmeterdogan/nobetci-eczane-api-swift
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 5a12cc0 feat: initial release v1.0.0 of NobetciEczaneApi Swift SDK
Cloned https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git
Revision (git rev-parse @):
5a12cc0f1516e25d40f2a547b41221263d97290d
SUCCESS checkout https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git at v1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mehmeterdogan/nobetci-eczane-api-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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ba6864ed1873dc28d63134b1bd648b09c5ec8270a0ae95720b7f96d84a66a058
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling NobetciEczaneApi City.swift
[4/12] Compiling NobetciEczaneApi Pagination.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Compiling NobetciEczaneApi Pharmacy.swift
[6/12] Compiling NobetciEczaneApi Location.swift
[7/12] Compiling NobetciEczaneApi NobetciEczaneError.swift
[8/12] Compiling NobetciEczaneApi AccountInfo.swift
[9/12] Compiling NobetciEczaneApi District.swift
[10/12] Compiling NobetciEczaneApi ApiResponse.swift
[11/12] Emitting module NobetciEczaneApi
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let apiKey: String
  7 |     public let baseURL: String
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |     /// Varsayılan API URL'i.
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/NobetciEczaneApi/NobetciEczaneClient.swift:21:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         apiKey: String,
 20 |         baseURL: String = NobetciEczaneClient.defaultBaseURL,
 21 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ) {
 23 |         let trimmedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
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/NobetciEczaneApi/NobetciEczaneClient.swift:21:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         apiKey: String,
 20 |         baseURL: String = NobetciEczaneClient.defaultBaseURL,
 21 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     ) {
 23 |         let trimmedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:21:35: error: value of type '_' expected to be instance of class or class-constrained type
 19 |         apiKey: String,
 20 |         baseURL: String = NobetciEczaneClient.defaultBaseURL,
 21 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 22 |     ) {
 23 |         let trimmedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'NobetciEczaneClient' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
  6 |     public let apiKey: String
  7 |     public let baseURL: String
  8 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NobetciEczaneClient' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
  9 |
 10 |     /// Varsayılan API URL'i.
[12/12] Compiling NobetciEczaneApi NobetciEczaneClient.swift
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     public let apiKey: String
  7 |     public let baseURL: String
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |     /// Varsayılan API URL'i.
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/NobetciEczaneApi/NobetciEczaneClient.swift:21:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         apiKey: String,
 20 |         baseURL: String = NobetciEczaneClient.defaultBaseURL,
 21 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ) {
 23 |         let trimmedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
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/NobetciEczaneApi/NobetciEczaneClient.swift:21:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         apiKey: String,
 20 |         baseURL: String = NobetciEczaneClient.defaultBaseURL,
 21 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     ) {
 23 |         let trimmedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:21:35: error: value of type '_' expected to be instance of class or class-constrained type
 19 |         apiKey: String,
 20 |         baseURL: String = NobetciEczaneClient.defaultBaseURL,
 21 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 22 |     ) {
 23 |         let trimmedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'NobetciEczaneClient' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
  6 |     public let apiKey: String
  7 |     public let baseURL: String
  8 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NobetciEczaneClient' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
  9 |
 10 |     /// Varsayılan API URL'i.
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:266:23: error: cannot find 'URLRequest' in scope
264 |         }
265 |
266 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
267 |         request.httpMethod = method
268 |         request.httpBody = body
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:275:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |
274 |         let data: Data
275 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 |
277 |         do {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:278:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
276 |
277 |         do {
278 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
279 |         } catch {
280 |             throw NobetciEczaneError.networkError(underlyingError: error)
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:283:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
281 |         }
282 |
283 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
284 |             throw NobetciEczaneError.unknownError(statusCode: nil, message: "Geçersiz HTTP yanıtı alındı.")
285 |         }
/host/spi-builder-workspace/Sources/NobetciEczaneApi/NobetciEczaneClient.swift:283:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |         }
282 |
283 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |             throw NobetciEczaneError.unknownError(statusCode: nil, message: "Geçersiz HTTP yanıtı alındı.")
285 |         }
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/NobetciEczaneApi/NobetciEczaneClient.swift:287:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
285 |         }
286 |
287 |         let statusCode = httpResponse.statusCode
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
288 |
289 |         // Hata Durumlarını Ele Al
BUILD FAILURE 6.2 wasm