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 RuntimeAssertions, reference main (ba5753), with Swift 6.1 for Android on 30 Aug 2025 23:05:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordBDHG/XCTRuntimeAssertions.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/StanfordBDHG/XCTRuntimeAssertions
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ba5753f support release testing (#23)
Cloned https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Revision (git rev-parse @):
ba5753f59905b80fd98d0da0f552f4e5d5c0488e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordBDHG/XCTRuntimeAssertions.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RuntimeAssertions",
  "name" : "RuntimeAssertions",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "RuntimeAssertions",
      "targets" : [
        "RuntimeAssertions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RuntimeAssertionsTesting",
      "targets" : [
        "RuntimeAssertionsTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XCTRuntimeAssertions",
      "targets" : [
        "XCTRuntimeAssertions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "XCTRuntimeAssertionsTests",
      "module_type" : "SwiftTarget",
      "name" : "XCTRuntimeAssertionsTests",
      "path" : "Tests/XCTRuntimeAssertionsTests",
      "sources" : [
        "XCTRuntimeAssertionsTests.swift",
        "XCTRuntimePreconditionsTests.swift"
      ],
      "target_dependencies" : [
        "XCTRuntimeAssertions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XCTRuntimeAssertions",
      "module_type" : "SwiftTarget",
      "name" : "XCTRuntimeAssertions",
      "path" : "Sources/XCTRuntimeAssertions",
      "product_memberships" : [
        "XCTRuntimeAssertions"
      ],
      "sources" : [
        "Deprecations.swift",
        "XCTRuntimeAssertion.swift",
        "XCTRuntimePrecondition.swift"
      ],
      "target_dependencies" : [
        "RuntimeAssertions"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RuntimeAssertionsTests",
      "module_type" : "SwiftTarget",
      "name" : "RuntimeAssertionsTests",
      "path" : "Tests/RuntimeAssertionsTests",
      "sources" : [
        "RuntimeAssertionsTests.swift",
        "RuntimePreconditionsTests.swift"
      ],
      "target_dependencies" : [
        "RuntimeAssertions",
        "RuntimeAssertionsTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RuntimeAssertionsTesting",
      "module_type" : "SwiftTarget",
      "name" : "RuntimeAssertionsTesting",
      "path" : "Sources/RuntimeAssertionsTesting",
      "product_memberships" : [
        "RuntimeAssertionsTesting"
      ],
      "sources" : [
        "RuntimeAssertion.swift",
        "RuntimePrecondition.swift"
      ],
      "target_dependencies" : [
        "RuntimeAssertions"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RuntimeAssertions",
      "module_type" : "SwiftTarget",
      "name" : "RuntimeAssertions",
      "path" : "Sources/RuntimeAssertions",
      "product_memberships" : [
        "RuntimeAssertions",
        "RuntimeAssertionsTesting",
        "XCTRuntimeAssertions"
      ],
      "sources" : [
        "Assert.swift",
        "Counter.swift",
        "DebugOnly.swift",
        "NeverReturn.swift",
        "Precondition.swift",
        "RuntimeAssertion.swift",
        "RuntimeAssertionInjection.swift",
        "RuntimePrecondition.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/12] Compiling RuntimeAssertions RuntimeAssertion.swift
[6/13] Compiling RuntimeAssertions NeverReturn.swift
[7/13] Compiling RuntimeAssertions RuntimePrecondition.swift
/host/spi-builder-workspace/Sources/RuntimeAssertions/RuntimePrecondition.swift:41:5: error: cannot find 'usleep' in scope
39 |     // `wait(for: [expectation], timeout: timeout)`
40 |     // here as we need to make the method independent of XCTestCase to also use it in our TestApp UITest target which fails if you import XCTest.
41 |     usleep(useconds_t(1_000_000 * timeout))
   |     `- error: cannot find 'usleep' in scope
42 |     expressionWorkItem.cancel()
43 | }
/host/spi-builder-workspace/Sources/RuntimeAssertions/RuntimePrecondition.swift:67:5: error: cannot find 'usleep' in scope
65 |     // `wait(for: [expectation], timeout: timeout)`
66 |     // here as we need to make the method independent of XCTestCase to also use it in our TestApp UITest target which fails if you import XCTest.
67 |     usleep(useconds_t(1_000_000 * timeout))
   |     `- error: cannot find 'usleep' in scope
68 |     task.cancel()
69 | }
[8/13] Compiling RuntimeAssertions DebugOnly.swift
[9/13] Compiling RuntimeAssertions Assert.swift
[10/13] Compiling RuntimeAssertions Counter.swift
[11/13] Emitting module RuntimeAssertions
[12/13] Compiling RuntimeAssertions RuntimeAssertionInjection.swift
[13/13] Compiling RuntimeAssertions Precondition.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling RuntimeAssertions DebugOnly.swift
[3/10] Emitting module RuntimeAssertions
[4/10] Compiling RuntimeAssertions Assert.swift
[5/10] Compiling RuntimeAssertions Counter.swift
[6/10] Compiling RuntimeAssertions Precondition.swift
[7/10] Compiling RuntimeAssertions NeverReturn.swift
[8/10] Compiling RuntimeAssertions RuntimeAssertion.swift
[9/10] Compiling RuntimeAssertions RuntimeAssertionInjection.swift
[10/10] Compiling RuntimeAssertions RuntimePrecondition.swift
/host/spi-builder-workspace/Sources/RuntimeAssertions/RuntimePrecondition.swift:41:5: error: cannot find 'usleep' in scope
39 |     // `wait(for: [expectation], timeout: timeout)`
40 |     // here as we need to make the method independent of XCTestCase to also use it in our TestApp UITest target which fails if you import XCTest.
41 |     usleep(useconds_t(1_000_000 * timeout))
   |     `- error: cannot find 'usleep' in scope
42 |     expressionWorkItem.cancel()
43 | }
/host/spi-builder-workspace/Sources/RuntimeAssertions/RuntimePrecondition.swift:67:5: error: cannot find 'usleep' in scope
65 |     // `wait(for: [expectation], timeout: timeout)`
66 |     // here as we need to make the method independent of XCTestCase to also use it in our TestApp UITest target which fails if you import XCTest.
67 |     usleep(useconds_t(1_000_000 * timeout))
   |     `- error: cannot find 'usleep' in scope
68 |     task.cancel()
69 | }
BUILD FAILURE 6.1 android