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 RealmSwiftMacro, reference 0.0.5 (803b20), with Swift 6.2 (beta) for Wasm on 20 Jun 2025 13:33:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fummicc1/RealmSwiftMacro.git
Reference: 0.0.5
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/fummicc1/RealmSwiftMacro
 * tag               0.0.5      -> FETCH_HEAD
HEAD is now at 803b20c Export NotificationToken (#5)
Cloned https://github.com/fummicc1/RealmSwiftMacro.git
Revision (git rev-parse @):
803b20c4665f3783b2c665aa50de96a9b3bdb3de
SUCCESS checkout https://github.com/fummicc1/RealmSwiftMacro.git at 0.0.5
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/fummicc1/RealmSwiftMacro.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/realm/realm-swift
[1/70906] Fetching swift-syntax
[9219/202265] Fetching swift-syntax, realm-swift
Fetched https://github.com/apple/swift-syntax.git from cache (16.19s)
Fetched https://github.com/realm/realm-swift from cache (16.36s)
Computing version for https://github.com/realm/realm-swift
Computed https://github.com/realm/realm-swift at 10.54.5 (19.34s)
Fetching https://github.com/realm/realm-core.git
[1/252487] Fetching realm-core
Fetched https://github.com/realm/realm-core.git from cache (27.06s)
Computing version for https://github.com/realm/realm-core.git
Computed https://github.com/realm/realm-core.git at 14.14.0 (30.86s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (0.78s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/realm/realm-swift
Working copy of https://github.com/realm/realm-swift resolved at 10.54.5
Creating working copy for https://github.com/realm/realm-core.git
Working copy of https://github.com/realm/realm-core.git resolved at 14.14.0
Building for debugging...
[0/331] Write sources
[13/331] Compiling Bid bid128.c
[14/331] Compiling Bid bid128_2_str_tables.c
[15/331] Compiling Bid bid128_add.c
[16/331] Compiling Bid bid128_compare.c
[17/331] Compiling mathlimits.cc
[18/331] Compiling Bid bid128_div.c
[19/331] Compiling Bid bid128_to_int64.c
[20/331] Compiling mathutil.cc
[21/331] Write swift-version-24593BA9C3E375BF.txt
[22/331] Compiling s2geometry s2region.cc
[24/333] Emitting module SwiftSyntax509
[24/333] Compiling s2geometry s2r2rect.cc
[25/333] Compiling s2geometry s2pointregion.cc
[26/333] Compiling s2geometry s2polyline.cc
[27/333] Compiling s2geometry s2polygon.cc
[28/333] Compiling s2geometry s2polygonbuilder.cc
[29/333] Compiling s2geometry s2latlngrect.cc
[30/333] Compiling s2geometry s2loop.cc
[31/333] Compiling s2geometry s2latlng.cc
[32/333] Compiling s2geometry s2edgeutil.cc
[33/333] Compiling s2geometry s2edgeindex.cc
[34/333] Copying PrivacyInfo.xcprivacy
[36/333] Write sources
[39/333] Copying PrivacyInfo.xcprivacy
In file included from <built-in>:1:
/host/spi-builder-workspace/.build/wasm32-unknown-wasi/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.
[40/333] Compiling RealmCoreResources resource_bundle_accessor.m
[40/333] Compiling s2geometry s2.cc
[40/333] Compiling s2geometry s2cap.cc
[40/333] Compiling s2geometry s1angle.cc
[40/333] Compiling s2geometry s1interval.cc
[40/333] Compiling s2geometry s2cellid.cc
[40/333] Compiling s2geometry s2cell.cc
BUILD FAILURE 6.2 wasm