The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IndexedDataStore, reference 1.0.4 (67242c), with Swift 6.1 for Wasm on 28 May 2025 04:26:10 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/laevandus/IndexedDataStore.git
Reference: 1.0.4
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/laevandus/IndexedDataStore
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at 67242cf Merge pull request #6 from laevandus/watchos-min-version
Cloned https://github.com/laevandus/IndexedDataStore.git
Revision (git rev-parse @):
67242cf4b549c5a24d72b831ee67cead6c7d0d97
SUCCESS checkout https://github.com/laevandus/IndexedDataStore.git at 1.0.4
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/laevandus/IndexedDataStore.git
https://github.com/laevandus/IndexedDataStore.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IndexedDataStore",
  "name" : "IndexedDataStore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "IndexedDataStore",
      "targets" : [
        "IndexedDataStore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IndexedDataStoreTests",
      "module_type" : "SwiftTarget",
      "name" : "IndexedDataStoreTests",
      "path" : "IndexedDataStoreTests",
      "sources" : [
        "IndexedDataStoreTests.swift"
      ],
      "target_dependencies" : [
        "IndexedDataStore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "IndexedDataStore",
      "module_type" : "SwiftTarget",
      "name" : "IndexedDataStore",
      "path" : "IndexedDataStore",
      "product_memberships" : [
        "IndexedDataStore"
      ],
      "sources" : [
        "IndexedDataStore+UIKit.swift",
        "IndexedDataStore.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/5] Compiling IndexedDataStore IndexedDataStore+UIKit.swift
[4/5] Emitting module IndexedDataStore
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:19:24: error: cannot find type 'DispatchQueue' in scope
 17 |
 18 |     private let dataStoreURL: URL
 19 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 20 |
 21 |     /// Creates a data store with the given name.
[5/5] Compiling IndexedDataStore IndexedDataStore.swift
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:19:24: error: cannot find type 'DispatchQueue' in scope
 17 |
 18 |     private let dataStoreURL: URL
 19 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 20 |
 21 |     /// Creates a data store with the given name.
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:17: error: cannot find 'DispatchQueue' in scope
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                 `- error: cannot find 'DispatchQueue' in scope
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:82: error: cannot infer contextual base in reference to member 'userInitiated'
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'userInitiated'
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:110: error: cannot infer contextual base in reference to member 'concurrent'
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                                                                                                              `- error: cannot infer contextual base in reference to member 'concurrent'
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:145: error: cannot infer contextual base in reference to member 'workItem'
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                                                                                                                                                 `- error: cannot infer contextual base in reference to member 'workItem'
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:49:17: error: cannot find 'DispatchQueue' in scope
 47 |             let url = self.url(forIdentifier: identifier)
 48 |             guard FileManager.default.fileExists(atPath: url.path) else {
 49 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 50 |                     completionHandler(nil)
 51 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:57:17: error: cannot find 'DispatchQueue' in scope
 55 |                 let data = try Data(contentsOf: url, options: .mappedIfSafe)
 56 |                 let object = dataTransformer(data)
 57 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 58 |                     completionHandler(object)
 59 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:63:17: error: cannot find 'DispatchQueue' in scope
 61 |             catch {
 62 |                 print("Failed reading data at URL \(url).")
 63 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 64 |                     completionHandler(nil)
 65 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             let url = self.url(forIdentifier: identifier)
 92 |             guard let data = dataProvider(), !data.isEmpty else {
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     completionHandler(.failure(IndexedDataStoreError.noDataProvided))
 95 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:100:17: error: cannot find 'DispatchQueue' in scope
 98 |             do {
 99 |                 try data.write(to: url, options: .atomic)
100 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
101 |                     completionHandler(.success(identifier))
102 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:105:17: error: cannot find 'DispatchQueue' in scope
103 |             }
104 |             catch {
105 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
106 |                     completionHandler(.failure(error))
107 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:90:29: error: cannot infer contextual base in reference to member 'barrier'
 88 |     ///   - completionHandler: The block to execute after the operation’s main task is completed.
 89 |     public func storeData(_ dataProvider: @escaping () -> Data?, identifier: Identifier = UUID().uuidString, completionHandler: @escaping (Result<Identifier, Error>) -> Void) {
 90 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
 91 |             let url = self.url(forIdentifier: identifier)
 92 |             guard let data = dataProvider(), !data.isEmpty else {
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:125:29: error: cannot infer contextual base in reference to member 'barrier'
123 |     /// - Parameter identifier: The identifier of the data.
124 |     public func removeData(forIdentifier identifier: Identifier) {
125 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
126 |             let url = self.url(forIdentifier: identifier)
127 |             guard FileManager.default.fileExists(atPath: url.path) else { return }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:139:29: error: cannot infer contextual base in reference to member 'barrier'
137 |     /// Removes all the stored data objects.
138 |     public func removeAll() {
139 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
140 |             do {
141 |                 let urls = try FileManager.default.contentsOfDirectory(at: self.dataStoreURL, includingPropertiesForKeys: nil, options: [])
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Compiling IndexedDataStore IndexedDataStore+UIKit.swift
[3/4] Emitting module IndexedDataStore
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:19:24: error: cannot find type 'DispatchQueue' in scope
 17 |
 18 |     private let dataStoreURL: URL
 19 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 20 |
 21 |     /// Creates a data store with the given name.
[4/4] Compiling IndexedDataStore IndexedDataStore.swift
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:19:24: error: cannot find type 'DispatchQueue' in scope
 17 |
 18 |     private let dataStoreURL: URL
 19 |     private let queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 20 |
 21 |     /// Creates a data store with the given name.
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:17: error: cannot find 'DispatchQueue' in scope
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                 `- error: cannot find 'DispatchQueue' in scope
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:82: error: cannot infer contextual base in reference to member 'userInitiated'
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'userInitiated'
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:110: error: cannot infer contextual base in reference to member 'concurrent'
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                                                                                                              `- error: cannot infer contextual base in reference to member 'concurrent'
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:25:145: error: cannot infer contextual base in reference to member 'workItem'
 23 |     public init(name: String) throws {
 24 |         self.name = name
 25 |         queue = DispatchQueue(label: "com.augmentedcode.indexeddatastore", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .workItem)
    |                                                                                                                                                 `- error: cannot infer contextual base in reference to member 'workItem'
 26 |         let documentsURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
 27 |         dataStoreURL = documentsURL.appendingPathComponent(name, isDirectory: true)
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:49:17: error: cannot find 'DispatchQueue' in scope
 47 |             let url = self.url(forIdentifier: identifier)
 48 |             guard FileManager.default.fileExists(atPath: url.path) else {
 49 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 50 |                     completionHandler(nil)
 51 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:57:17: error: cannot find 'DispatchQueue' in scope
 55 |                 let data = try Data(contentsOf: url, options: .mappedIfSafe)
 56 |                 let object = dataTransformer(data)
 57 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 58 |                     completionHandler(object)
 59 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:63:17: error: cannot find 'DispatchQueue' in scope
 61 |             catch {
 62 |                 print("Failed reading data at URL \(url).")
 63 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 64 |                     completionHandler(nil)
 65 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:93:17: error: cannot find 'DispatchQueue' in scope
 91 |             let url = self.url(forIdentifier: identifier)
 92 |             guard let data = dataProvider(), !data.isEmpty else {
 93 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 94 |                     completionHandler(.failure(IndexedDataStoreError.noDataProvided))
 95 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:100:17: error: cannot find 'DispatchQueue' in scope
 98 |             do {
 99 |                 try data.write(to: url, options: .atomic)
100 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
101 |                     completionHandler(.success(identifier))
102 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:105:17: error: cannot find 'DispatchQueue' in scope
103 |             }
104 |             catch {
105 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
106 |                     completionHandler(.failure(error))
107 |                 }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:90:29: error: cannot infer contextual base in reference to member 'barrier'
 88 |     ///   - completionHandler: The block to execute after the operation’s main task is completed.
 89 |     public func storeData(_ dataProvider: @escaping () -> Data?, identifier: Identifier = UUID().uuidString, completionHandler: @escaping (Result<Identifier, Error>) -> Void) {
 90 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
 91 |             let url = self.url(forIdentifier: identifier)
 92 |             guard let data = dataProvider(), !data.isEmpty else {
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:125:29: error: cannot infer contextual base in reference to member 'barrier'
123 |     /// - Parameter identifier: The identifier of the data.
124 |     public func removeData(forIdentifier identifier: Identifier) {
125 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
126 |             let url = self.url(forIdentifier: identifier)
127 |             guard FileManager.default.fileExists(atPath: url.path) else { return }
/host/spi-builder-workspace/IndexedDataStore/IndexedDataStore.swift:139:29: error: cannot infer contextual base in reference to member 'barrier'
137 |     /// Removes all the stored data objects.
138 |     public func removeAll() {
139 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
140 |             do {
141 |                 let urls = try FileManager.default.contentsOfDirectory(at: self.dataStoreURL, includingPropertiesForKeys: nil, options: [])
BUILD FAILURE 6.1 wasm