The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MainThreadPropertyAccessor, reference v0.1.1 (e90fdc), with Swift 6.1 for Wasm on 28 May 2025 11:26:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/theisegeberg/MainThreadPropertyAccessor.git
Reference: v0.1.1
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/theisegeberg/MainThreadPropertyAccessor
 * tag               v0.1.1     -> FETCH_HEAD
HEAD is now at e90fdc4 Fixed nil setting and made the getter fatal error
Cloned https://github.com/theisegeberg/MainThreadPropertyAccessor.git
Revision (git rev-parse @):
e90fdc4584bdf60ac8983e5a3eca4ceae7aaa1d4
SUCCESS checkout https://github.com/theisegeberg/MainThreadPropertyAccessor.git at v0.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/theisegeberg/MainThreadPropertyAccessor.git
https://github.com/theisegeberg/MainThreadPropertyAccessor.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MainThreadPropertyAccessor",
  "name" : "MainThreadPropertyAccessor",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MainThreadPropertyAccessor",
      "targets" : [
        "MainThreadPropertyAccessor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MainThreadPropertyAccessorTests",
      "module_type" : "SwiftTarget",
      "name" : "MainThreadPropertyAccessorTests",
      "path" : "Tests/MainThreadPropertyAccessorTests",
      "sources" : [
        "MainThreadPropertyAccessorTests.swift"
      ],
      "target_dependencies" : [
        "MainThreadPropertyAccessor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MainThreadPropertyAccessor",
      "module_type" : "SwiftTarget",
      "name" : "MainThreadPropertyAccessor",
      "path" : "Sources/MainThreadPropertyAccessor",
      "product_memberships" : [
        "MainThreadPropertyAccessor"
      ],
      "sources" : [
        "DispatchQueueAccessor.swift",
        "MainThreadPropertyAccessor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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] Emitting module MainThreadPropertyAccessor
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:13:24: error: cannot find type 'DispatchQueue' in scope
11 | public struct DispatchQueueAccessor<Root: AnyObject> {
12 |     private weak var root: Root?
13 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
14 |
15 |     /// Initialises an `DispatchQueueAccessor` with a root and an optional queue.
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:21:29: error: cannot find type 'DispatchQueue' in scope
19 |     ///   - queue: The `DispatchQueue` you want to perform the setting of properties on.
20 |     ///   It's default value is `DispatchQueue.main`.
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
   |                             `- error: cannot find type 'DispatchQueue' in scope
22 |         self.root = root
23 |         self.queue = queue
[4/5] Compiling MainThreadPropertyAccessor MainThreadPropertyAccessor.swift
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:21:29: error: cannot find type 'DispatchQueue' in scope
19 |     ///   - queue: The `DispatchQueue` you want to perform the setting of properties on.
20 |     ///   It's default value is `DispatchQueue.main`.
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
   |                             `- error: cannot find type 'DispatchQueue' in scope
22 |         self.root = root
23 |         self.queue = queue
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/MainThreadPropertyAccessor.swift:39:39: error: cannot infer contextual base in reference to member 'main'
37 |     var setOnMain: DispatchQueueAccessor<Self> {
38 |         get {
39 |             .init(root: self, queue: .main)
   |                                       `- error: cannot infer contextual base in reference to member 'main'
40 |         }
41 |         set {}
[5/5] Compiling MainThreadPropertyAccessor DispatchQueueAccessor.swift
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:13:24: error: cannot find type 'DispatchQueue' in scope
11 | public struct DispatchQueueAccessor<Root: AnyObject> {
12 |     private weak var root: Root?
13 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
14 |
15 |     /// Initialises an `DispatchQueueAccessor` with a root and an optional queue.
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:21:29: error: cannot find type 'DispatchQueue' in scope
19 |     ///   - queue: The `DispatchQueue` you want to perform the setting of properties on.
20 |     ///   It's default value is `DispatchQueue.main`.
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
   |                             `- error: cannot find type 'DispatchQueue' in scope
22 |         self.root = root
23 |         self.queue = queue
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:23:14: error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
22 |         self.root = root
23 |         self.queue = queue
   |              `- error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
24 |     }
25 |
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:36:13: error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
34 |         }
35 |         set {
36 |             queue.async {
   |             `- error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
37 |                 [weak root] in
38 |                 root?[keyPath: keyPath] = newValue
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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] Emitting module MainThreadPropertyAccessor
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:13:24: error: cannot find type 'DispatchQueue' in scope
11 | public struct DispatchQueueAccessor<Root: AnyObject> {
12 |     private weak var root: Root?
13 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
14 |
15 |     /// Initialises an `DispatchQueueAccessor` with a root and an optional queue.
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:21:29: error: cannot find type 'DispatchQueue' in scope
19 |     ///   - queue: The `DispatchQueue` you want to perform the setting of properties on.
20 |     ///   It's default value is `DispatchQueue.main`.
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
   |                             `- error: cannot find type 'DispatchQueue' in scope
22 |         self.root = root
23 |         self.queue = queue
[3/4] Compiling MainThreadPropertyAccessor DispatchQueueAccessor.swift
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:13:24: error: cannot find type 'DispatchQueue' in scope
11 | public struct DispatchQueueAccessor<Root: AnyObject> {
12 |     private weak var root: Root?
13 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
14 |
15 |     /// Initialises an `DispatchQueueAccessor` with a root and an optional queue.
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:21:29: error: cannot find type 'DispatchQueue' in scope
19 |     ///   - queue: The `DispatchQueue` you want to perform the setting of properties on.
20 |     ///   It's default value is `DispatchQueue.main`.
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
   |                             `- error: cannot find type 'DispatchQueue' in scope
22 |         self.root = root
23 |         self.queue = queue
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:23:14: error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
22 |         self.root = root
23 |         self.queue = queue
   |              `- error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
24 |     }
25 |
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:36:13: error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
34 |         }
35 |         set {
36 |             queue.async {
   |             `- error: value of type 'DispatchQueueAccessor<Root>' has no dynamic member 'queue' using key path from root type 'Root'
37 |                 [weak root] in
38 |                 root?[keyPath: keyPath] = newValue
[4/4] Compiling MainThreadPropertyAccessor MainThreadPropertyAccessor.swift
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/DispatchQueueAccessor.swift:21:29: error: cannot find type 'DispatchQueue' in scope
19 |     ///   - queue: The `DispatchQueue` you want to perform the setting of properties on.
20 |     ///   It's default value is `DispatchQueue.main`.
21 |     init(root: Root, queue: DispatchQueue = DispatchQueue.main) {
   |                             `- error: cannot find type 'DispatchQueue' in scope
22 |         self.root = root
23 |         self.queue = queue
/host/spi-builder-workspace/Sources/MainThreadPropertyAccessor/MainThreadPropertyAccessor.swift:39:39: error: cannot infer contextual base in reference to member 'main'
37 |     var setOnMain: DispatchQueueAccessor<Self> {
38 |         get {
39 |             .init(root: self, queue: .main)
   |                                       `- error: cannot infer contextual base in reference to member 'main'
40 |         }
41 |         set {}
BUILD FAILURE 6.1 wasm