The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AppStoreScraper, reference 0.3.0 (7105a4), with Swift 6.1 for Wasm on 30 May 2025 04:03:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wacumov/app-store-scraper.git
Reference: 0.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/wacumov/app-store-scraper
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at 7105a4a Update Country.US.languages
Cloned https://github.com/wacumov/app-store-scraper.git
Revision (git rev-parse @):
7105a4a0dc3ddf9d32342a1adc8997c7ee6d4e3b
SUCCESS checkout https://github.com/wacumov/app-store-scraper.git at 0.3.0
========================================
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
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AppStoreScraper",
  "name" : "AppStoreScraper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "AppStoreScraper",
      "targets" : [
        "AppStoreScraper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AppStoreScraperTests",
      "module_type" : "SwiftTarget",
      "name" : "AppStoreScraperTests",
      "path" : "Tests/AppStoreScraperTests",
      "sources" : [
        "CountryTests.swift",
        "ScraperTests.swift"
      ],
      "target_dependencies" : [
        "AppStoreScraper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppStoreScraper",
      "module_type" : "SwiftTarget",
      "name" : "AppStoreScraper",
      "path" : "Sources/AppStoreScraper",
      "product_memberships" : [
        "AppStoreScraper"
      ],
      "sources" : [
        "Models/Application.swift",
        "Models/Category.swift",
        "Models/CategoryFilter.swift",
        "Models/Country+Languages.swift",
        "Models/Country.swift",
        "Models/GamesSubcategory.swift",
        "Models/Language.swift",
        "Models/Ranking.swift",
        "Models/RankingType.swift",
        "Scraper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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/12] Compiling AppStoreScraper GamesSubcategory.swift
[4/12] Emitting module AppStoreScraper
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:58:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |
 57 |     private let baseURL = "https://itunes.apple.com"
 58 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |     private let decoder = JSONDecoder()
 60 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:147:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
145 | }
146 |
147 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
148 |     func data(for request: URLRequest) async throws -> Data {
149 |         var dataTask: URLSessionDataTask?
[5/12] Compiling AppStoreScraper RankingType.swift
[6/12] Compiling AppStoreScraper Ranking.swift
[7/12] Compiling AppStoreScraper Language.swift
[8/13] Compiling AppStoreScraper Application.swift
[9/13] Compiling AppStoreScraper Category.swift
[10/13] Compiling AppStoreScraper CategoryFilter.swift
[11/13] Compiling AppStoreScraper Country+Languages.swift
[12/13] Compiling AppStoreScraper Country.swift
[13/13] Compiling AppStoreScraper Scraper.swift
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:58:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |
 57 |     private let baseURL = "https://itunes.apple.com"
 58 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |     private let decoder = JSONDecoder()
 60 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:147:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
145 | }
146 |
147 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
148 |     func data(for request: URLRequest) async throws -> Data {
149 |         var dataTask: URLSessionDataTask?
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:65:23: error: cannot find 'URLRequest' in scope
 63 |             throw URLError(.badURL)
 64 |         }
 65 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 66 |         request.httpMethod = "GET"
 67 |         let data = try await session.data(for: request)
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:148:28: error: cannot find type 'URLRequest' in scope
146 |
147 | private extension URLSession {
148 |     func data(for request: URLRequest) async throws -> Data {
    |                            `- error: cannot find type 'URLRequest' in scope
149 |         var dataTask: URLSessionDataTask?
150 |         let onCancel = {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling AppStoreScraper RankingType.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Emitting module AppStoreScraper
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:58:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |
 57 |     private let baseURL = "https://itunes.apple.com"
 58 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |     private let decoder = JSONDecoder()
 60 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:147:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
145 | }
146 |
147 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
148 |     func data(for request: URLRequest) async throws -> Data {
149 |         var dataTask: URLSessionDataTask?
[4/12] Compiling AppStoreScraper Scraper.swift
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:58:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |
 57 |     private let baseURL = "https://itunes.apple.com"
 58 |     private let session = URLSession.shared
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 59 |     private let decoder = JSONDecoder()
 60 |
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:147:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
145 | }
146 |
147 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
148 |     func data(for request: URLRequest) async throws -> Data {
149 |         var dataTask: URLSessionDataTask?
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:65:23: error: cannot find 'URLRequest' in scope
 63 |             throw URLError(.badURL)
 64 |         }
 65 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 66 |         request.httpMethod = "GET"
 67 |         let data = try await session.data(for: request)
/host/spi-builder-workspace/Sources/AppStoreScraper/Scraper.swift:148:28: error: cannot find type 'URLRequest' in scope
146 |
147 | private extension URLSession {
148 |     func data(for request: URLRequest) async throws -> Data {
    |                            `- error: cannot find type 'URLRequest' in scope
149 |         var dataTask: URLSessionDataTask?
150 |         let onCancel = {
[5/12] Compiling AppStoreScraper Application.swift
[6/12] Compiling AppStoreScraper Category.swift
[7/12] Compiling AppStoreScraper CategoryFilter.swift
[8/12] Compiling AppStoreScraper Country+Languages.swift
[9/12] Compiling AppStoreScraper Language.swift
[10/12] Compiling AppStoreScraper GamesSubcategory.swift
[11/12] Compiling AppStoreScraper Country.swift
[12/12] Compiling AppStoreScraper Ranking.swift
BUILD FAILURE 6.1 wasm