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 Realm, reference master (c22f93), with Swift 6.1 for Wasm on 16 Oct 2025 01:27:30 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.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/realm/realm-swift.git
Reference: master
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-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c22f930 Add empty changelog section
Cloned https://github.com/realm/realm-swift.git
Revision (git rev-parse @):
c22f9303d446fc3c044e4c151ed19597464b6bd7
SUCCESS checkout https://github.com/realm/realm-swift.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/realm/realm-swift.git
https://github.com/realm/realm-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++20",
  "dependencies" : [
    {
      "identity" : "realm-core",
      "requirement" : {
        "exact" : [
          "14.14.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/realm/realm-core.git"
    }
  ],
  "manifest_display_name" : "Realm",
  "name" : "Realm",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "Realm",
      "targets" : [
        "Realm"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "RealmSwift",
      "targets" : [
        "RealmSwift"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "SwiftObjectServerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftObjectServerTests",
      "path" : "Realm/ObjectServerTests",
      "sources" : [
        "AsyncSyncTests.swift",
        "ClientResetTests.swift",
        "CombineSyncTests.swift",
        "EventTests.swift",
        "SwiftAsymmetricSyncServerTests.swift",
        "SwiftCollectionSyncTests.swift",
        "SwiftFlexibleSyncServerTests.swift",
        "SwiftMongoClientTests.swift",
        "SwiftObjectServerPartitionTests.swift",
        "SwiftObjectServerTests.swift",
        "SwiftUIServerTests.swift"
      ],
      "target_dependencies" : [
        "RealmSwift",
        "RealmTestSupport",
        "RealmSyncTestSupport",
        "RealmSwiftSyncTestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RealmTests",
      "module_type" : "ClangTarget",
      "name" : "RealmTests",
      "path" : "Realm/Tests",
      "sources" : [
        "ArrayPropertyTests.m",
        "AsyncTests.mm",
        "CompactionTests.m",
        "Decimal128Tests.m",
        "DictionaryPropertyTests.m",
        "DynamicTests.m",
        "EncryptionTests.mm",
        "EnumeratorTests.m",
        "InterprocessTests.m",
        "KVOTests.mm",
        "LinkTests.m",
        "LinkingObjectsTests.mm",
        "MigrationTests.mm",
        "NotificationTests.m",
        "ObjectCreationTests.mm",
        "ObjectIdTests.m",
        "ObjectInterfaceTests.m",
        "ObjectSchemaTests.m",
        "ObjectTests.m",
        "PerformanceTests.m",
        "PredicateUtilTests.mm",
        "PrimitiveArrayPropertyTests.m",
        "PrimitiveDictionaryPropertyTests.m",
        "PrimitiveRLMValuePropertyTests.m",
        "PrimitiveSetPropertyTests.m",
        "PropertyTests.m",
        "QueryTests.m",
        "RLMValueTests.m",
        "RealmConfigurationTests.mm",
        "RealmTests.mm",
        "ResultsTests.m",
        "SchemaTests.mm",
        "SectionedResultsTests.m",
        "SetPropertyTests.m",
        "ThreadSafeReferenceTests.m",
        "TransactionTests.m",
        "UnicodeTests.m",
        "UtilTests.mm"
      ],
      "target_dependencies" : [
        "Realm",
        "RealmTestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RealmTestSupport",
      "module_type" : "ClangTarget",
      "name" : "RealmTestSupport",
      "path" : "Realm/TestUtils",
      "sources" : [
        "RLMChildProcessEnvironment.m",
        "RLMMultiProcessTestCase.m",
        "RLMTestCase.m",
        "RLMTestObjects.m",
        "TestUtils.mm"
      ],
      "target_dependencies" : [
        "Realm"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RealmSyncTestSupport",
      "module_type" : "ClangTarget",
      "name" : "RealmSyncTestSupport",
      "path" : "Realm/ObjectServerTests",
      "sources" : [
        "RLMServerTestObjects.m",
        "RLMSyncTestCase.mm",
        "RLMUser+ObjectServerTests.mm",
        "RLMWatchTestUtility.m"
      ],
      "target_dependencies" : [
        "Realm",
        "RealmSwift",
        "RealmTestSupport"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RealmSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftTests",
      "path" : "RealmSwift/Tests",
      "sources" : [
        "AnyRealmValueTests.swift",
        "CodableTests.swift",
        "CombineTests.swift",
        "CompactionTests.swift",
        "CustomColumnNameTests.swift",
        "CustomObjectCreationTests.swift",
        "CustomPersistableTestObjects.swift",
        "Decimal128Tests.swift",
        "GeospatialTests.swift",
        "KVOTests.swift",
        "KeyPathTests.swift",
        "ListTests.swift",
        "MapTests.swift",
        "MigrationTests.swift",
        "MixedCollectionTest.swift",
        "ModernKVOTests.swift",
        "ModernObjectAccessorTests.swift",
        "ModernObjectCreationTests.swift",
        "ModernObjectTests.swift",
        "ModernTestObjects.swift",
        "MutableSetTests.swift",
        "ObjectAccessorTests.swift",
        "ObjectCreationTests.swift",
        "ObjectCustomPropertiesTests.swift",
        "ObjectIdTests.swift",
        "ObjectSchemaInitializationTests.swift",
        "ObjectSchemaTests.swift",
        "ObjectTests.swift",
        "ObjectiveCSupportTests.swift",
        "PerformanceTests.swift",
        "PrimitiveListTests.swift",
        "PrimitiveMapTests.swift",
        "PrimitiveMutableSetTests.swift",
        "ProjectedCollectTests.swift",
        "ProjectionTests.swift",
        "PropertyTests.swift",
        "QueryTests.swift",
        "RealmCollectionTypeTests.swift",
        "RealmConfigurationTests.swift",
        "RealmPropertyTests.swift",
        "RealmTests.swift",
        "SchemaTests.swift",
        "SectionedResultsTests.swift",
        "SortDescriptorTests.swift",
        "SwiftBSONTests.swift",
        "SwiftLinkTests.swift",
        "SwiftTestObjects.swift",
        "SwiftUITests.swift",
        "SwiftUnicodeTests.swift",
        "TestCase.swift",
        "TestValueFactory.swift",
        "ThreadSafeReferenceTests.swift"
      ],
      "target_dependencies" : [
        "RealmSwift",
        "RealmTestSupport",
        "RealmSwiftTestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RealmSwiftTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftTestSupport",
      "path" : "RealmSwift/Tests",
      "sources" : [
        "TestUtils.swift"
      ],
      "target_dependencies" : [
        "RealmSwift",
        "RealmTestSupport"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RealmSwiftSyncTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftSyncTestSupport",
      "path" : "Realm/ObjectServerTests",
      "sources" : [
        "RealmServer.swift",
        "SwiftServerObjects.swift",
        "SwiftSyncTestCase.swift",
        "TimeoutProxyServer.swift",
        "WatchTestUtility.swift"
      ],
      "target_dependencies" : [
        "RealmSwift",
        "RealmTestSupport",
        "RealmSyncTestSupport",
        "RealmSwiftTestSupport"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RealmSwift",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwift",
      "path" : "RealmSwift",
      "product_memberships" : [
        "RealmSwift"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/RealmSwift/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Aliases.swift",
        "AnyRealmValue.swift",
        "App.swift",
        "AsymmetricObject.swift",
        "BSON.swift",
        "Combine.swift",
        "CustomPersistable.swift",
        "Decimal128.swift",
        "EmbeddedObject.swift",
        "Error.swift",
        "Events.swift",
        "Geospatial.swift",
        "Impl/BasicTypes.swift",
        "Impl/CollectionAccess.swift",
        "Impl/ComplexTypes.swift",
        "Impl/KeyPathStrings.swift",
        "Impl/ObjcBridgeable.swift",
        "Impl/Persistable.swift",
        "Impl/PropertyAccessors.swift",
        "Impl/RealmCollectionImpl.swift",
        "Impl/SchemaDiscovery.swift",
        "LinkingObjects.swift",
        "List.swift",
        "Map.swift",
        "Migration.swift",
        "MongoClient.swift",
        "MutableSet.swift",
        "Object.swift",
        "ObjectId.swift",
        "ObjectSchema.swift",
        "ObjectiveCSupport+AnyRealmValue.swift",
        "ObjectiveCSupport+BSON.swift",
        "ObjectiveCSupport+Sync.swift",
        "ObjectiveCSupport.swift",
        "Optional.swift",
        "PersistedProperty.swift",
        "Projection.swift",
        "Property.swift",
        "Query.swift",
        "Realm.swift",
        "RealmCollection.swift",
        "RealmConfiguration.swift",
        "RealmKeyedCollection.swift",
        "RealmProperty.swift",
        "Results.swift",
        "Schema.swift",
        "SectionedResults.swift",
        "SortDescriptor.swift",
        "SwiftUI.swift",
        "Sync.swift",
        "SyncSubscription.swift",
        "ThreadSafeReference.swift",
        "Util.swift"
      ],
      "target_dependencies" : [
        "Realm"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RealmObjcSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "RealmObjcSwiftTests",
      "path" : "Realm/Tests/Swift",
      "sources" : [
        "RLMSupport.swift",
        "RLMTestCaseUtils.swift",
        "SwiftArrayPropertyTests.swift",
        "SwiftArrayTests.swift",
        "SwiftDynamicTests.swift",
        "SwiftLinkTests.swift",
        "SwiftObjectInterfaceTests.swift",
        "SwiftPropertyTypeTest.swift",
        "SwiftRLMDictionaryTests.swift",
        "SwiftRealmTests.swift",
        "SwiftSchemaTests.swift",
        "SwiftSetPropertyTests.swift",
        "SwiftSetTests.swift",
        "SwiftTestObjects.swift",
        "SwiftUnicodeTests.swift"
      ],
      "target_dependencies" : [
        "Realm",
        "RealmTestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Realm",
      "module_type" : "ClangTarget",
      "name" : "Realm",
      "path" : ".",
      "product_dependencies" : [
        "RealmCore"
      ],
      "product_memberships" : [
        "Realm",
        "RealmSwift"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Realm/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Realm/NSError+RLMSync.m",
        "Realm/RLMAPIKeyAuth.mm",
        "Realm/RLMAccessor.mm",
        "Realm/RLMAnalytics.mm",
        "Realm/RLMApp.mm",
        "Realm/RLMArray.mm",
        "Realm/RLMAsymmetricObject.mm",
        "Realm/RLMAsyncTask.mm",
        "Realm/RLMBSON.mm",
        "Realm/RLMClassInfo.mm",
        "Realm/RLMCollection.mm",
        "Realm/RLMConstants.m",
        "Realm/RLMCredentials.mm",
        "Realm/RLMDecimal128.mm",
        "Realm/RLMDictionary.mm",
        "Realm/RLMEmailPasswordAuth.mm",
        "Realm/RLMEmbeddedObject.mm",
        "Realm/RLMError.mm",
        "Realm/RLMEvent.mm",
        "Realm/RLMFindOneAndModifyOptions.mm",
        "Realm/RLMFindOptions.mm",
        "Realm/RLMGeospatial.mm",
        "Realm/RLMInitialSubscriptionsConfiguration.m",
        "Realm/RLMLogger.mm",
        "Realm/RLMManagedArray.mm",
        "Realm/RLMManagedDictionary.mm",
        "Realm/RLMManagedSet.mm",
        "Realm/RLMMigration.mm",
        "Realm/RLMMongoClient.mm",
        "Realm/RLMMongoCollection.mm",
        "Realm/RLMNetworkTransport.mm",
        "Realm/RLMObject.mm",
        "Realm/RLMObjectBase.mm",
        "Realm/RLMObjectId.mm",
        "Realm/RLMObjectSchema.mm",
        "Realm/RLMObjectStore.mm",
        "Realm/RLMObservation.mm",
        "Realm/RLMPredicateUtil.mm",
        "Realm/RLMProperty.mm",
        "Realm/RLMProviderClient.mm",
        "Realm/RLMPushClient.mm",
        "Realm/RLMQueryUtil.mm",
        "Realm/RLMRealm+Sync.mm",
        "Realm/RLMRealm.mm",
        "Realm/RLMRealmConfiguration.mm",
        "Realm/RLMRealmUtil.mm",
        "Realm/RLMResults.mm",
        "Realm/RLMScheduler.mm",
        "Realm/RLMSchema.mm",
        "Realm/RLMSectionedResults.mm",
        "Realm/RLMSet.mm",
        "Realm/RLMSwiftCollectionBase.mm",
        "Realm/RLMSwiftSupport.m",
        "Realm/RLMSwiftValueStorage.mm",
        "Realm/RLMSyncConfiguration.mm",
        "Realm/RLMSyncManager.mm",
        "Realm/RLMSyncSession.mm",
        "Realm/RLMSyncSubscription.mm",
        "Realm/RLMSyncUtil.mm",
        "Realm/RLMThreadSafeReference.mm",
        "Realm/RLMUUID.mm",
        "Realm/RLMUpdateChecker.mm",
        "Realm/RLMUpdateResult.mm",
        "Realm/RLMUser.mm",
        "Realm/RLMUserAPIKey.mm",
        "Realm/RLMUtil.mm",
        "Realm/RLMValue.mm"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjcObjectServerTests",
      "module_type" : "ClangTarget",
      "name" : "ObjcObjectServerTests",
      "path" : "Realm/ObjectServerTests",
      "sources" : [
        "RLMAsymmetricSyncServerTests.mm",
        "RLMBSONTests.mm",
        "RLMCollectionSyncTests.mm",
        "RLMFlexibleSyncServerTests.mm",
        "RLMMongoClientTests.mm",
        "RLMObjectServerPartitionTests.mm",
        "RLMObjectServerTests.mm",
        "RLMSubscriptionTests.mm"
      ],
      "target_dependencies" : [
        "RealmSwift",
        "RealmTestSupport",
        "RealmSyncTestSupport",
        "RealmSwiftSyncTestSupport"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.10"
}
warning: 'spi-builder-workspace': ignoring target 'RealmTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
warning: 'spi-builder-workspace': ignoring target 'ObjcObjectServerTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/realm/realm-core.git
[1/252494] Fetching realm-core
Fetched https://github.com/realm/realm-core.git from cache (16.22s)
Computing version for https://github.com/realm/realm-core.git
Computed https://github.com/realm/realm-core.git at 14.14.0 (16.99s)
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
warning: 'spi-builder-workspace': ignoring target 'RealmTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
warning: 'spi-builder-workspace': ignoring target 'ObjcObjectServerTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
warning: 'spi-builder-workspace': found 54 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/RealmSwift/Tests/PrimitiveMutableSetTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/TestValueFactory.swift
    /host/spi-builder-workspace/RealmSwift/Tests/AnyRealmValueTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/Decimal128Tests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CustomObjectCreationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectAccessorTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmCollectionTypeTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CodableTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectCreationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/KeyPathTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernTestObjects.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PropertyTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MutableSetTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PerformanceTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernObjectCreationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ListTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftTestObjects.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CombineTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MapTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CustomPersistableTestObjects.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MigrationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/QueryTests.swift.gyb
    /host/spi-builder-workspace/RealmSwift/Tests/TestCase.swift
    /host/spi-builder-workspace/RealmSwift/Tests/GeospatialTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernKVOTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectiveCSupportTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmPropertyTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftUnicodeTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectSchemaInitializationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftBSONTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PrimitiveMapTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmSwiftTests-Info.plist
    /host/spi-builder-workspace/RealmSwift/Tests/SchemaTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SectionedResultsTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftUITests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectSchemaTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MixedCollectionTest.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectCustomPropertiesTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftLinkTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ProjectionTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/QueryTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ProjectedCollectTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SortDescriptorTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmConfigurationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CompactionTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernObjectAccessorTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CustomColumnNameTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernObjectTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectIdTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PrimitiveListTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/KVOTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ThreadSafeReferenceTests.swift
Building for debugging...
In file included from /host/spi-builder-workspace/Realm/TestUtils/RLMChildProcessEnvironment.m:19:
/host/spi-builder-workspace/Realm/TestUtils/include/RLMChildProcessEnvironment.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/310] Compiling RealmTestSupport RLMChildProcessEnvironment.m
[0/310] Compiling alloc_slab.cpp
In file included from /host/spi-builder-workspace/Realm/TestUtils/TestUtils.mm:19:
/host/spi-builder-workspace/Realm/TestUtils/include/TestUtils.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/310] Compiling RealmTestSupport TestUtils.mm
In file included from /host/spi-builder-workspace/Realm/TestUtils/RLMTestObjects.m:19:
In file included from /host/spi-builder-workspace/Realm/TestUtils/include/RLMTestObjects.h:19:
/host/spi-builder-workspace/include/Realm/Realm.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/310] Compiling RealmTestSupport RLMTestObjects.m
[0/310] Compiling array.cpp
[0/310] Compiling array_backlink.cpp
In file included from /host/spi-builder-workspace/Realm/TestUtils/RLMTestCase.m:19:
/host/spi-builder-workspace/Realm/TestUtils/include/RLMTestCase.h:19:9: fatal error: 'XCTest/XCTest.h' file not found
   19 | #import <XCTest/XCTest.h>
      |         ^~~~~~~~~~~~~~~~~
[0/310] Compiling RealmTestSupport RLMTestCase.m
In file included from /host/spi-builder-workspace/Realm/TestUtils/RLMMultiProcessTestCase.m:19:
In file included from /host/spi-builder-workspace/Realm/TestUtils/include/RLMMultiProcessTestCase.h:19:
/host/spi-builder-workspace/Realm/TestUtils/include/RLMTestCase.h:19:9: fatal error: 'XCTest/XCTest.h' file not found
   19 | #import <XCTest/XCTest.h>
      |         ^~~~~~~~~~~~~~~~~
[0/310] Compiling RealmTestSupport RLMMultiProcessTestCase.m
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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': ignoring target 'RealmTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
warning: 'spi-builder-workspace': ignoring target 'ObjcObjectServerTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
warning: 'spi-builder-workspace': found 54 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectSchemaInitializationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernObjectTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ProjectedCollectTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectAccessorTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftUnicodeTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernObjectCreationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftTestObjects.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectCreationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectSchemaTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/QueryTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SchemaTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CustomObjectCreationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MapTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PerformanceTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CodableTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/TestValueFactory.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmConfigurationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MutableSetTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CombineTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmSwiftTests-Info.plist
    /host/spi-builder-workspace/RealmSwift/Tests/RealmTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectiveCSupportTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmCollectionTypeTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectIdTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/QueryTests.swift.gyb
    /host/spi-builder-workspace/RealmSwift/Tests/CompactionTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ProjectionTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CustomPersistableTestObjects.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SectionedResultsTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PrimitiveMutableSetTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SortDescriptorTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftBSONTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PrimitiveMapTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ObjectCustomPropertiesTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ThreadSafeReferenceTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PropertyTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/PrimitiveListTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/KVOTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/CustomColumnNameTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MigrationTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/MixedCollectionTest.swift
    /host/spi-builder-workspace/RealmSwift/Tests/AnyRealmValueTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernKVOTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/Decimal128Tests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/KeyPathTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ListTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernTestObjects.swift
    /host/spi-builder-workspace/RealmSwift/Tests/RealmPropertyTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/TestCase.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftLinkTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/SwiftUITests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/GeospatialTests.swift
    /host/spi-builder-workspace/RealmSwift/Tests/ModernObjectAccessorTests.swift
[0/1] Planning build
Building for debugging...
[0/310] Write sources
[1/310] Copying PrivacyInfo.xcprivacy
[5/310] Compiling mathlimits.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/util/math/mathutil.cc:11:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/util/math/mathutil.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[6/310] Compiling mathutil.cc
[6/310] Compiling s2geometry s2pointregion.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2r2rect.cc:3:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2r2rect.h:7:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
[6/310] Compiling s2geometry s2r2rect.cc
[6/310] Compiling s2geometry s2polygon.cc
[6/310] Compiling s2geometry s2polyline.cc
[6/310] Compiling s2geometry s2region.cc
[6/310] Compiling s2geometry s2polygonbuilder.cc
[6/310] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm