The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NobetciEczaneApi, reference main (1ed9d1), with Swift 6.1 for Wasm on 29 Sep 2026 10:19:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mehmeterdogan/nobetci-eczane-api-swift.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/mehmeterdogan/nobetci-eczane-api-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1ed9d15 chore: update deployment targets for latest Xcode compatibility
Cloned https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git
Revision (git rev-parse @):
1ed9d15ff45aa75e8be7ad9dab73908418c4e613
SUCCESS checkout https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git
https://github.com/mehmeterdogan/nobetci-eczane-api-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.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 saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling NobetciEczaneApi NobetciEczaneError.swift
[4/11] Compiling NobetciEczaneApi AccountInfo.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] 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: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.
[6/12] Compiling NobetciEczaneApi Pharmacy.swift
[7/12] Compiling NobetciEczaneApi District.swift
[8/12] Compiling NobetciEczaneApi Location.swift
[9/12] Compiling NobetciEczaneApi Pagination.swift
[10/12] Compiling NobetciEczaneApi City.swift
[11/12] Compiling NobetciEczaneApi ApiResponse.swift
[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: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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling NobetciEczaneApi District.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Compiling NobetciEczaneApi ApiResponse.swift
[4/11] Compiling NobetciEczaneApi NobetciEczaneError.swift
[5/11] Compiling NobetciEczaneApi AccountInfo.swift
[6/11] 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: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.
[7/11] Compiling NobetciEczaneApi City.swift
[8/11] 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: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
[9/11] Compiling NobetciEczaneApi Location.swift
[10/11] Compiling NobetciEczaneApi Pharmacy.swift
[11/11] Compiling NobetciEczaneApi Pagination.swift
BUILD FAILURE 6.1 wasm