The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AppStoreScraper, reference main (79f5b4), with Swift 6.1 for Wasm on 8 Oct 2026 18:25:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wacumov/app-store-scraper.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/wacumov/app-store-scraper
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 79f5b4b Add rating fields, storefront IDs and search hints (#1)
Cloned https://github.com/wacumov/app-store-scraper.git
Revision (git rev-parse @):
79f5b4bd944c94a4e417d1cd9d54dfa40efacf2e
SUCCESS checkout https://github.com/wacumov/app-store-scraper.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wacumov/app-store-scraper.git
https://github.com/wacumov/app-store-scraper.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/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:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
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/13] Compiling AppStoreScraper GamesSubcategory.swift
[4/14] Compiling AppStoreScraper Application.swift
[5/14] Compiling AppStoreScraper Category.swift
[6/14] Compiling AppStoreScraper Ranking.swift
[7/14] Compiling AppStoreScraper RankingType.swift
[8/14] Compiling AppStoreScraper Scraper.swift
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:71:20: warning: stored property 'country' of 'Sendable'-conforming struct 'UnsupportedCountry' has non-sendable type 'Country'; this is an error in the Swift 6 language mode
 69 |
 70 |     public struct UnsupportedCountry: Error {
 71 |         public let country: Country
    |                    `- warning: stored property 'country' of 'Sendable'-conforming struct 'UnsupportedCountry' has non-sendable type 'Country'; this is an error in the Swift 6 language mode
 72 |     }
 73 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Models/Country.swift:3:13: note: consider making enum 'Country' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public enum Country: String, Codable, CaseIterable {
   |             `- note: consider making enum 'Country' conform to the 'Sendable' protocol
 4 |     case AE, AF, AG, AI, AL, AM, AO, AR, AT, AU, AZ
 5 |     case BA, BB, BE, BF, BG, BH, BJ, BM, BN, BO, BR, BS, BT, BW, BY, BZ
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:78:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |     private let baseURL = "https://itunes.apple.com"
 77 |     private let hintsURL = "https://search.itunes.apple.com/WebObjects/MZSearchHints.woa/wa/hints"
 78 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |     private let decoder = JSONDecoder()
 80 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:182:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
180 | }
181 |
182 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
183 |     func data(for request: URLRequest) async throws -> Data {
184 |         var dataTask: URLSessionDataTask?
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:90:23: error: cannot find 'URLRequest' in scope
 88 |             throw URLError(.badURL)
 89 |         }
 90 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 91 |         request.httpMethod = "GET"
 92 |         for (field, value) in headers {
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:183:28: error: cannot find type 'URLRequest' in scope
181 |
182 | private extension URLSession {
183 |     func data(for request: URLRequest) async throws -> Data {
    |                            `- error: cannot find type 'URLRequest' in scope
184 |         var dataTask: URLSessionDataTask?
185 |         let onCancel = {
[9/14] Compiling AppStoreScraper Country+Storefront.swift
[10/14] Compiling AppStoreScraper Country.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/14] Compiling AppStoreScraper Language.swift
[12/14] Compiling AppStoreScraper CategoryFilter.swift
[13/14] Compiling AppStoreScraper Country+Languages.swift
[14/14] Emitting module AppStoreScraper
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:71:20: warning: stored property 'country' of 'Sendable'-conforming struct 'UnsupportedCountry' has non-sendable type 'Country'; this is an error in the Swift 6 language mode
 69 |
 70 |     public struct UnsupportedCountry: Error {
 71 |         public let country: Country
    |                    `- warning: stored property 'country' of 'Sendable'-conforming struct 'UnsupportedCountry' has non-sendable type 'Country'; this is an error in the Swift 6 language mode
 72 |     }
 73 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Models/Country.swift:3:13: note: consider making enum 'Country' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public enum Country: String, Codable, CaseIterable {
   |             `- note: consider making enum 'Country' conform to the 'Sendable' protocol
 4 |     case AE, AF, AG, AI, AL, AM, AO, AR, AT, AU, AZ
 5 |     case BA, BB, BE, BF, BG, BH, BJ, BM, BN, BO, BR, BS, BT, BW, BY, BZ
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:78:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |     private let baseURL = "https://itunes.apple.com"
 77 |     private let hintsURL = "https://search.itunes.apple.com/WebObjects/MZSearchHints.woa/wa/hints"
 78 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |     private let decoder = JSONDecoder()
 80 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:182:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
180 | }
181 |
182 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
183 |     func data(for request: URLRequest) async throws -> Data {
184 |         var dataTask: URLSessionDataTask?
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/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:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
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/12] Compiling AppStoreScraper Language.swift
[3/12] Compiling AppStoreScraper GamesSubcategory.swift
[4/13] Compiling AppStoreScraper RankingType.swift
[5/13] Compiling AppStoreScraper Scraper.swift
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:78:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |     private let baseURL = "https://itunes.apple.com"
 77 |     private let hintsURL = "https://search.itunes.apple.com/WebObjects/MZSearchHints.woa/wa/hints"
 78 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |     private let decoder = JSONDecoder()
 80 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:182:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
180 | }
181 |
182 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
183 |     func data(for request: URLRequest) async throws -> Data {
184 |         var dataTask: URLSessionDataTask?
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:90:23: error: cannot find 'URLRequest' in scope
 88 |             throw URLError(.badURL)
 89 |         }
 90 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 91 |         request.httpMethod = "GET"
 92 |         for (field, value) in headers {
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:183:28: error: cannot find type 'URLRequest' in scope
181 |
182 | private extension URLSession {
183 |     func data(for request: URLRequest) async throws -> Data {
    |                            `- error: cannot find type 'URLRequest' in scope
184 |         var dataTask: URLSessionDataTask?
185 |         let onCancel = {
[6/13] Compiling AppStoreScraper Country+Storefront.swift
[7/13] Compiling AppStoreScraper Country.swift
[8/13] Compiling AppStoreScraper Application.swift
[9/13] Compiling AppStoreScraper Category.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling AppStoreScraper CategoryFilter.swift
[11/13] Compiling AppStoreScraper Country+Languages.swift
[12/13] Emitting module AppStoreScraper
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:78:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |     private let baseURL = "https://itunes.apple.com"
 77 |     private let hintsURL = "https://search.itunes.apple.com/WebObjects/MZSearchHints.woa/wa/hints"
 78 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |     private let decoder = JSONDecoder()
 80 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:182:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
180 | }
181 |
182 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
183 |     func data(for request: URLRequest) async throws -> Data {
184 |         var dataTask: URLSessionDataTask?
[13/13] Compiling AppStoreScraper Ranking.swift
BUILD FAILURE 6.1 wasm