Build Information
Failed to build RealmDatabase, reference v20.1.4 (4cc46f), with Swift 6.3 for Wasm on 17 Apr 2026 19:38:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/realm/realm-core.git
Reference: v20.1.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/realm/realm-core
* tag v20.1.4 -> FETCH_HEAD
HEAD is now at 4cc46f8 Fix extra semicolon warnings in s2
Submodule path 'src/external/sha-1': checked out 'd9ae30f34095107ece9dceb224839f0dc2f9c1c7'
Submodule path 'src/external/sha-2': checked out '0e9aebf34101c6aa89355fd76ac9cd886735dee1'
Submodule path 'test/external/catch': checked out '8ac8190e494a381072c89f5e161b92a08d98b37b'
Submodule 'src/external/sha-1' (https://github.com/clibs/sha1.git) registered for path 'src/external/sha-1'
Submodule 'src/external/sha-2' (https://github.com/kalven/sha-2.git) registered for path 'src/external/sha-2'
Submodule 'test/external/catch' (https://github.com/catchorg/Catch2.git) registered for path 'test/external/catch'
Cloning into '/host/spi-builder-workspace/src/external/sha-1'...
Cloning into '/host/spi-builder-workspace/src/external/sha-2'...
Cloning into '/host/spi-builder-workspace/test/external/catch'...
Cloned https://github.com/realm/realm-core.git
Revision (git rev-parse @):
4cc46f8607516226e5465062fdacd088fbd94552
SUCCESS checkout https://github.com/realm/realm-core.git at v20.1.4
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/realm/realm-core.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/344] Compiling Bid bid_decimal_data.c
[1/344] Compiling Bid bid_convert_data.c
[2/344] Compiling Bid bid_decimal_globals.c
[3/344] Compiling Bid bid_from_int.c
[4/344] Compiling Bid bid_round.c
[5/344] Compiling Bid bid128_to_int64.c
[6/344] Compiling mathlimits.cc
[7/344] Compiling Bid bid_binarydecimal.c
[8/344] Compiling mathutil.cc
[9/344] Write swift-version-24593BA9C3E375BF.txt
[10/344] Compiling s2geometry s2region.cc
[11/344] Compiling s2geometry s2r2rect.cc
[12/344] Compiling catch_analyse.cpp
[13/344] Compiling s2geometry s2polyline.cc
[14/344] Compiling s2geometry s2polygonbuilder.cc
[15/344] Compiling s2geometry s2latlng.cc
[16/344] Compiling s2geometry s2polygon.cc
[17/344] Compiling s2geometry s2edgeutil.cc
[18/344] Compiling s2geometry s2pointregion.cc
[19/344] Compiling s2geometry s2latlngrect.cc
[20/344] Compiling s2geometry s2loop.cc
[21/344] Compiling s2geometry s2edgeindex.cc
[22/344] Compiling s2geometry s2cellid.cc
[23/344] Compiling s2geometry s2cell.cc
[24/344] Compiling s2geometry s2.cc
[25/344] Write sources
[25/344] Copying PrivacyInfo.xcprivacy
[27/344] Compiling s2geometry s2cap.cc
[28/344] Compiling s2geometry s1interval.cc
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/RealmCoreResources.build/DerivedSources/resource_bundle_accessor.h:2:9: fatal error: 'Foundation/Foundation.h' file not found
2 | #import <Foundation/Foundation.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[29/344] Compiling RealmCoreResources resource_bundle_accessor.m
[29/344] Compiling uuid.cpp
[29/344] Compiling query_bison.cpp
[29/344] Compiling version.cpp
[29/344] Compiling RealmQueryParser driver.cpp
[29/344] Compiling RealmQueryParser keypath_mapping.cpp
[29/344] Compiling s2geometry s1angle.cc
[29/344] Compiling query_flex.cpp
BUILD FAILURE 6.3 wasm