The Swift Package Index logo.Swift Package Index

Build Information

Failed to build onnxruntime, reference main (b7fb7f), with Swift 6.1 for Wasm on 26 Feb 2026 06:04:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/microsoft/onnxruntime-swift-package-manager.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/microsoft/onnxruntime-swift-package-manager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b7fb7f7 Update ORT to 1.24.2 (#43)
Cloned https://github.com/microsoft/onnxruntime-swift-package-manager.git
Revision (git rev-parse @):
b7fb7f7dea8a2469e6335d95a61b8f36d0dc83b2
SUCCESS checkout https://github.com/microsoft/onnxruntime-swift-package-manager.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/microsoft/onnxruntime-swift-package-manager.git
https://github.com/microsoft/onnxruntime-swift-package-manager.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "onnxruntime",
  "name" : "onnxruntime",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "onnxruntime",
      "targets" : [
        "OnnxRuntimeBindings"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "onnxruntime_extensions",
      "targets" : [
        "OnnxRuntimeExtensions"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "onnxruntime_extensions",
      "module_type" : "BinaryTarget",
      "name" : "onnxruntime_extensions",
      "path" : "remote/archive/pod-archive-onnxruntime-extensions-c-0.13.0.zip",
      "product_memberships" : [
        "onnxruntime_extensions"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "onnxruntime",
      "module_type" : "BinaryTarget",
      "name" : "onnxruntime",
      "path" : "remote/archive/pod-archive-onnxruntime-c-1.24.2.zip",
      "product_memberships" : [
        "onnxruntime",
        "onnxruntime_extensions"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "OnnxRuntimeExtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "OnnxRuntimeExtensionsTests",
      "path" : "swift/OnnxRuntimeExtensionsTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/swift/OnnxRuntimeExtensionsTests/Resources/decode_image.onnx",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "SwiftOnnxRuntimeExtensionsTests.swift"
      ],
      "target_dependencies" : [
        "OnnxRuntimeExtensions",
        "OnnxRuntimeBindings"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OnnxRuntimeExtensions",
      "module_type" : "ClangTarget",
      "name" : "OnnxRuntimeExtensions",
      "path" : "extensions",
      "product_memberships" : [
        "onnxruntime_extensions"
      ],
      "sources" : [
        "OrtExt.mm"
      ],
      "target_dependencies" : [
        "onnxruntime_extensions",
        "onnxruntime"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OnnxRuntimeBindingsTests",
      "module_type" : "SwiftTarget",
      "name" : "OnnxRuntimeBindingsTests",
      "path" : "swift/OnnxRuntimeBindingsTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/swift/OnnxRuntimeBindingsTests/Resources/single_add.basic.ort",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "SwiftOnnxRuntimeBindingsTests.swift"
      ],
      "target_dependencies" : [
        "OnnxRuntimeBindings"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OnnxRuntimeBindings",
      "module_type" : "ClangTarget",
      "name" : "OnnxRuntimeBindings",
      "path" : "objectivec",
      "product_memberships" : [
        "onnxruntime"
      ],
      "sources" : [
        "assert_arc_enabled.mm",
        "cxx_utils.mm",
        "error_utils.mm",
        "ort_coreml_execution_provider.mm",
        "ort_enums.mm",
        "ort_env.mm",
        "ort_session.mm",
        "ort_value.mm",
        "ort_xnnpack_execution_provider.mm"
      ],
      "target_dependencies" : [
        "onnxruntime"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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: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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Downloading binary artifact https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.24.2.zip
Downloading binary artifact https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip
[15975/52138597] Downloading https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.24.2.zip
[278119/71497650] Downloading https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.24.2.zip, https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip
Downloaded https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip (3.86s)
Downloaded https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.24.2.zip (8.63s)
Building for debugging...
In file included from /host/spi-builder-workspace/extensions/OrtExt.mm:4:
/host/spi-builder-workspace/extensions/include/OrtExt.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/14] Compiling OnnxRuntimeExtensions OrtExt.mm
[0/14] Compiling OnnxRuntimeBindings ort_session.mm
[0/14] Compiling OnnxRuntimeBindings ort_enums.mm
[0/14] Compiling OnnxRuntimeBindings ort_value.mm
[0/14] Compiling OnnxRuntimeBindings ort_env.mm
[0/14] Compiling OnnxRuntimeBindings ort_coreml_execution_provider.mm
[0/14] Compiling OnnxRuntimeBindings ort_xnnpack_execution_provider.mm
[0/14] Compiling OnnxRuntimeBindings error_utils.mm
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/extensions/OrtExt.mm:4:
/host/spi-builder-workspace/extensions/include/OrtExt.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/14] Compiling OnnxRuntimeExtensions OrtExt.mm
[0/14] Compiling OnnxRuntimeBindings ort_session.mm
[0/14] Compiling OnnxRuntimeBindings ort_env.mm
[0/14] Compiling OnnxRuntimeBindings ort_enums.mm
[0/14] Compiling OnnxRuntimeBindings ort_coreml_execution_provider.mm
[0/14] Compiling OnnxRuntimeBindings ort_value.mm
[0/14] Compiling OnnxRuntimeBindings ort_xnnpack_execution_provider.mm
[0/14] Compiling OnnxRuntimeBindings error_utils.mm
BUILD FAILURE 6.1 wasm