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 onnxruntime, reference 1.20.0 (12ce73), with Swift 6.2 for Wasm on 8 Nov 2025 07:40:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 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: 1.20.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/microsoft/onnxruntime-swift-package-manager
 * tag               1.20.0     -> FETCH_HEAD
HEAD is now at 12ce737 Add release_instructions.md. (#26)
Cloned https://github.com/microsoft/onnxruntime-swift-package-manager.git
Revision (git rev-parse @):
12ce7374c86944e1f68f3a866d10105d8357f074
SUCCESS checkout https://github.com/microsoft/onnxruntime-swift-package-manager.git at 1.20.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/microsoft/onnxruntime-swift-package-manager.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f6b6b9bdb5d5605d727da337418fc455cd8a0394d3a815b70631008c48829755
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Downloading binary artifact https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip
Downloading binary artifact https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.20.0.zip
[16063/19359053] Downloading https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip
[3401990/63577769] Downloading https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip, https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.20.0.zip
Downloaded https://download.onnxruntime.ai/pod-archive-onnxruntime-extensions-c-0.13.0.zip (3.69s)
Downloaded https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.20.0.zip (6.28s)
Building for debugging...
/host/spi-builder-workspace/objectivec/assert_arc_enabled.mm:4:37: error: static assertion failed: Objective-C ARC must be enabled.
    4 | static_assert(__has_feature(objc_arc), "Objective-C ARC must be enabled.");
      |                                     ^
<scratch space>:4:1: note: expanded from here
    4 | 0
      | ^
1 error generated.
[0/14] Compiling OnnxRuntimeBindings assert_arc_enabled.mm
In file included from /host/spi-builder-workspace/objectivec/ort_enums.mm:4:
In file included from /host/spi-builder-workspace/objectivec/ort_enums_internal.h:4:
/host/spi-builder-workspace/objectivec/include/ort_enums.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/14] Compiling OnnxRuntimeBindings ort_enums.mm
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
In file included from /host/spi-builder-workspace/objectivec/cxx_utils.mm:4:
/host/spi-builder-workspace/objectivec/cxx_utils.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/14] Compiling OnnxRuntimeBindings cxx_utils.mm
In file included from /host/spi-builder-workspace/objectivec/ort_xnnpack_execution_provider.mm:4:
/host/spi-builder-workspace/objectivec/include/ort_xnnpack_execution_provider.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/14] Compiling OnnxRuntimeBindings ort_xnnpack_execution_provider.mm
In file included from /host/spi-builder-workspace/objectivec/ort_value.mm:4:
In file included from /host/spi-builder-workspace/objectivec/ort_value_internal.h:4:
/host/spi-builder-workspace/objectivec/include/ort_value.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/objectivec/ort_coreml_execution_provider.mm:4:
/host/spi-builder-workspace/objectivec/include/ort_coreml_execution_provider.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/14] Compiling OnnxRuntimeBindings ort_coreml_execution_provider.mm
[0/14] Compiling OnnxRuntimeBindings ort_value.mm
In file included from /host/spi-builder-workspace/objectivec/error_utils.mm:4:
/host/spi-builder-workspace/objectivec/error_utils.h:4:9: fatal error: 'Foundation/Foundation.h' file not found
    4 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/14] Compiling OnnxRuntimeBindings error_utils.mm
BUILD FAILURE 6.2 wasm