The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SynheartSession, reference main (02ddd5), with Swift 6.2 for Wasm on 9 Oct 2026 10:42:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/synheart-ai/synheart-session-swift.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/synheart-ai/synheart-session-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 02ddd59 Merge pull request #3 from synheart-ai/docs/readme-synheartsession-api
Cloned https://github.com/synheart-ai/synheart-session-swift.git
Revision (git rev-parse @):
02ddd59649f1b827706572fafa4585e33db1e7a5
SUCCESS checkout https://github.com/synheart-ai/synheart-session-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/synheart-ai/synheart-session-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/synheart-ai/synheart-wear-swift.git
Fetching https://github.com/synheart-ai/synheart-behavior-swift.git
[1/350] Fetching synheart-behavior-swift
[197/700] Fetching synheart-behavior-swift, synheart-wear-swift
Fetched https://github.com/synheart-ai/synheart-wear-swift.git from cache (1.97s)
Fetched https://github.com/synheart-ai/synheart-behavior-swift.git from cache (2.00s)
Computing version for https://github.com/synheart-ai/synheart-wear-swift.git
Computed https://github.com/synheart-ai/synheart-wear-swift.git at 0.4.1 (2.23s)
Fetching https://github.com/grpc/grpc-swift.git
Fetching https://github.com/apple/swift-protobuf.git
[1/51604] Fetching grpc-swift
[20643/106523] Fetching grpc-swift, swift-protobuf
Fetched https://github.com/grpc/grpc-swift.git from cache (2.07s)
[23616/54919] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf.git from cache (4.76s)
Computing version for https://github.com/synheart-ai/synheart-behavior-swift.git
Computed https://github.com/synheart-ai/synheart-behavior-swift.git at 0.5.0 (4.90s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.27.6 (1.00s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
[1/8257] Fetching swift-log
[84/11124] Fetching swift-log, swift-nio-transport-services
[9360/17826] Fetching swift-log, swift-nio-transport-services, swift-nio-extras
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.52s)
Fetching https://github.com/apple/swift-atomics.git
[13619/14959] Fetching swift-log, swift-nio-extras
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Fetching https://github.com/apple/swift-nio-http2.git
[1/16857] Fetching swift-nio-ssl
[13319/45548] Fetching swift-nio-ssl, swift-collections
[22310/131910] Fetching swift-nio-ssl, swift-collections, swift-nio
[24901/144198] Fetching swift-nio-ssl, swift-collections, swift-nio, swift-nio-http2
[25476/146083] Fetching swift-nio-ssl, swift-collections, swift-nio, swift-nio-http2, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.05s)
[111381/144198] Fetching swift-nio-ssl, swift-collections, swift-nio, swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.14s)
[103411/131910] Fetching swift-nio-ssl, swift-collections, swift-nio
Fetched https://github.com/apple/swift-nio-extras.git from cache (3.43s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.44s)
Fetched https://github.com/apple/swift-collections.git from cache (3.44s)
Fetched https://github.com/apple/swift-nio.git from cache (3.47s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (3.62s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.16s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.16s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.38.1 (0.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.2 (0.23s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (0.27s)
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/1939] Fetching swift-http-types
[98/3192] Fetching swift-http-types, swift-http-structured-headers
[1719/9356] Fetching swift-http-types, swift-http-structured-headers, swift-algorithms
[2018/11351] Fetching swift-http-types, swift-http-structured-headers, swift-algorithms, swift-asn1
[4052/18157] Fetching swift-http-types, swift-http-structured-headers, swift-algorithms, swift-asn1, swift-async-algorithms
Fetched https://github.com/apple/swift-asn1.git from cache (0.51s)
[13100/16162] Fetching swift-http-types, swift-http-structured-headers, swift-algorithms, swift-async-algorithms
Fetching https://github.com/apple/swift-certificates.git
[16163/19029] Fetching swift-http-types, swift-http-structured-headers, swift-algorithms, swift-async-algorithms, swift-service-lifecycle
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.58s)
[9557/12223] Fetching swift-http-types, swift-http-structured-headers, swift-algorithms, swift-service-lifecycle
Fetched https://github.com/apple/swift-http-types.git from cache (0.77s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.77s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.77s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.77s)
[1/7609] Fetching swift-certificates
Fetched https://github.com/apple/swift-certificates.git from cache (0.59s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.98s)
Fetching https://github.com/apple/swift-numerics.git
[1/6717] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.11s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (1.25s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.12.1 (0.14s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.1 (0.15s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.20s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.14s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.17s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.18s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.18s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (0.34s)
Fetching https://github.com/apple/swift-system.git
[1/7241] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.73s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.93s)
Fetching https://github.com/apple/swift-crypto.git
[1/18603] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.41s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (1.59s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.0.0 (0.49s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 5.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.27.6
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.1
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.38.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/synheart-ai/synheart-wear-swift.git
Working copy of https://github.com/synheart-ai/synheart-wear-swift.git resolved at 0.4.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/synheart-ai/synheart-behavior-swift.git
Working copy of https://github.com/synheart-ai/synheart-behavior-swift.git resolved at 0.5.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.12.1
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin GRPCSwiftPlugin
Building for debugging...
[2/448] Write sources
[30/448] Compiling CNIOWindows WSAStartup.c
[30/448] Compiling _AtomicsShims.c
[30/448] Compiling CNIOOpenBSD shim.c
[30/448] Compiling CNIOLinux shim.c
[34/448] Compiling CNIOPosix event_loop_id.c
[35/448] Compiling CNIOWASI CNIOWASI.c
[36/448] Compiling CNIOWindows shim.c
[37/448] Compiling CNIOFreeBSD shim.c
[38/448] Compiling CNIODarwin shim.c
[39/448] Compiling CNIOLinux liburing_shims.c
[40/448] Compiling CNIOLLHTTP c_nio_http.c
[41/448] Compiling fiat_p256_adx_sqr.S
[42/448] Compiling fiat_p256_adx_mul.S
[43/448] Write swift-version-24593BA9C3E375BF.txt
[44/448] Compiling fiat_curve25519_adx_square.S
[45/448] Compiling CNIOLLHTTP c_nio_api.c
[46/448] Compiling fiat_curve25519_adx_mul.S
[47/464] Compiling CNIOBoringSSLShims shims.c
[48/479] Compiling CNIOLLHTTP c_nio_llhttp.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[50/563] Emitting module SynheartBehavior
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:31: error: cannot find 'DispatchQueue' in scope
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                               `- error: cannot find 'DispatchQueue' in scope
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:96: error: cannot infer contextual base in reference to member 'concurrent'
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:29:42: error: cannot find type 'DispatchWorkItem' in scope
 27 |     private weak var sessionManager: SessionManager?
 28 |     private var tracker = NotificationOutcomeTracker()
 29 |     private var pendingIgnored: [String: DispatchWorkItem] = [:]
    |                                          `- error: cannot find type 'DispatchWorkItem' in scope
 30 |     private var enabled: Bool
 31 |     private let installDelegate: Bool
[50/564] Compiling tls_method.cc
[51/564] Compiling tls_record.cc
[52/574] Compiling tls13_server.cc
[54/603] Emitting module InternalCollectionsUtilities
[54/606] Compiling tls13_enc.cc
[56/606] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[57/606] Compiling InternalCollectionsUtilities String+Padding.swift
[58/606] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[59/606] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[60/606] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[61/606] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[62/606] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[63/606] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[64/606] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[65/606] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[66/606] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[67/606] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[68/606] Compiling InternalCollectionsUtilities _SortedCollection.swift
[69/606] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[70/606] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[71/606] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[72/606] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[73/606] Compiling InternalCollectionsUtilities Span+Extras.swift
[74/606] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[75/606] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[76/606] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[77/606] Compiling InternalCollectionsUtilities MutableRef.swift
[78/606] Emitting module _NIOBase64
[79/606] Compiling _NIOBase64 Base64.swift
[80/607] Compiling Logging LoggingSystem.swift
[82/608] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[83/608] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[84/608] Compiling InternalCollectionsUtilities Debugging.swift
[85/608] Compiling InternalCollectionsUtilities Descriptions.swift
[86/608] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[87/608] Compiling InternalCollectionsUtilities Integer rank.swift
[88/608] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[89/608] Compiling InternalCollectionsUtilities UInt+reversed.swift
[90/609] Compiling Logging Logger.swift
[94/609] Compiling Logging Logger+Attributes.swift
[95/609] Compiling Logging Logger+With.swift
[96/609] Compiling _NIODataStructures _TinyArray.swift
[97/609] Emitting module SwiftProtobuf
[100/620] Emitting module Logging
[103/620] Compiling Logging MetadataProvider.swift
[106/621] Emitting module _NIODataStructures
[107/621] Compiling _NIODataStructures Heap.swift
[108/621] Compiling _NIODataStructures PriorityQueue.swift
[109/622] Compiling SynheartSession SessionEvent.swift
[112/623] Compiling SynheartBehavior SynheartBehavior.swift
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:31: error: cannot find 'DispatchQueue' in scope
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                               `- error: cannot find 'DispatchQueue' in scope
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:96: error: cannot infer contextual base in reference to member 'concurrent'
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:29:42: error: cannot find type 'DispatchWorkItem' in scope
 27 |     private weak var sessionManager: SessionManager?
 28 |     private var tracker = NotificationOutcomeTracker()
 29 |     private var pendingIgnored: [String: DispatchWorkItem] = [:]
    |                                          `- error: cannot find type 'DispatchWorkItem' in scope
 30 |     private var enabled: Bool
 31 |     private let installDelegate: Bool
[113/627] Compiling SynheartSession SampleRingBuffer.swift
[114/627] Emitting module SpanPreview
[117/627] Compiling SynheartSession SessionError.swift
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:31: error: cannot find 'DispatchQueue' in scope
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                               `- error: cannot find 'DispatchQueue' in scope
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:96: error: cannot infer contextual base in reference to member 'concurrent'
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:67:35: error: cannot infer contextual base in reference to member 'barrier'
 65 |     func startSession(startMs: Double) {
 66 |         sessionStartMs = startMs
 67 |         sampleQueue.async(flags: .barrier) {
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
 68 |             self.samples.removeAll()
 69 |             self.lastBatchEndMs = startMs
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:86:35: error: cannot infer contextual base in reference to member 'barrier'
 84 |         stopBatchTimer()
 85 |         batchHandler = nil
 86 |         sampleQueue.async(flags: .barrier) { self.samples.removeAll() }
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
 87 |     }
 88 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:91:35: error: cannot infer contextual base in reference to member 'barrier'
 89 |     /// Feed one sample already in m/s². Used by the platform source and by tests.
 90 |     func ingest(tsMs: Double, x: Double, y: Double, z: Double) {
 91 |         sampleQueue.async(flags: .barrier) {
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
 92 |             self.samples.append((tsMs, x, y, z))
 93 |         }
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:145:9: error: cannot find 'DispatchQueue' in scope
143 |     private func startBatchTimer() {
144 |         let interval = Self.batchIntervalMs / 1_000
145 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
146 |             guard let self else { return }
147 |             self.batchTimer?.invalidate()
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:155:9: error: cannot find 'DispatchQueue' in scope
153 |
154 |     private func stopBatchTimer() {
155 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
156 |             self?.batchTimer?.invalidate()
157 |             self?.batchTimer = nil
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:165:59: error: cannot infer contextual base in reference to member 'barrier'
163 |     func flushBatch(nowMs: Double = Date().timeIntervalSince1970 * 1_000) {
164 |         guard let handler = batchHandler, config.emitRawMotionSamples else { return }
165 |         let batch: [RawSample] = sampleQueue.sync(flags: .barrier) {
    |                                                           `- error: cannot infer contextual base in reference to member 'barrier'
166 |             let since = lastBatchEndMs
167 |             let recent = samples.filter { $0.ts > since && $0.ts <= nowMs }
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:174:9: error: cannot find 'DispatchQueue' in scope
172 |         }
173 |         if batch.isEmpty { return }
174 |         DispatchQueue.main.async { handler(batch) }
    |         `- error: cannot find 'DispatchQueue' in scope
175 |     }
176 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:29:42: error: cannot find type 'DispatchWorkItem' in scope
 27 |     private weak var sessionManager: SessionManager?
 28 |     private var tracker = NotificationOutcomeTracker()
 29 |     private var pendingIgnored: [String: DispatchWorkItem] = [:]
    |                                          `- error: cannot find type 'DispatchWorkItem' in scope
 30 |     private var enabled: Bool
 31 |     private let installDelegate: Bool
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:89:20: error: cannot find 'DispatchWorkItem' in scope
 87 |         guard tracker.received(id: id, atMs: nowMs) else { return }
 88 |         emit(action: "received")
 89 |         let task = DispatchWorkItem { [weak self] in
    |                    `- error: cannot find 'DispatchWorkItem' in scope
 90 |             guard let self else { return }
 91 |             self.pendingIgnored[id] = nil
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |         pendingIgnored[id]?.cancel()
 95 |         pendingIgnored[id] = task
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + ignoredThresholdMs / 1_000, execute: task)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |         pendingIgnored[id]?.cancel()
 95 |         pendingIgnored[id] = task
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + ignoredThresholdMs / 1_000, execute: task)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:31: error: cannot find 'DispatchQueue' in scope
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                               `- error: cannot find 'DispatchQueue' in scope
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:29:96: error: cannot infer contextual base in reference to member 'concurrent'
 27 |     private var isCollecting = false
 28 |
 29 |     private let sampleQueue = DispatchQueue(label: "ai.synheart.behavior.motion", attributes: .concurrent)
    |                                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 30 |     private var samples: [(ts: Double, x: Double, y: Double, z: Double)] = []
 31 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:67:35: error: cannot infer contextual base in reference to member 'barrier'
 65 |     func startSession(startMs: Double) {
 66 |         sessionStartMs = startMs
 67 |         sampleQueue.async(flags: .barrier) {
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
 68 |             self.samples.removeAll()
 69 |             self.lastBatchEndMs = startMs
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:86:35: error: cannot infer contextual base in reference to member 'barrier'
 84 |         stopBatchTimer()
 85 |         batchHandler = nil
 86 |         sampleQueue.async(flags: .barrier) { self.samples.removeAll() }
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
 87 |     }
 88 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:91:35: error: cannot infer contextual base in reference to member 'barrier'
 89 |     /// Feed one sample already in m/s². Used by the platform source and by tests.
 90 |     func ingest(tsMs: Double, x: Double, y: Double, z: Double) {
 91 |         sampleQueue.async(flags: .barrier) {
    |                                   `- error: cannot infer contextual base in reference to member 'barrier'
 92 |             self.samples.append((tsMs, x, y, z))
 93 |         }
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:145:9: error: cannot find 'DispatchQueue' in scope
143 |     private func startBatchTimer() {
144 |         let interval = Self.batchIntervalMs / 1_000
145 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
146 |             guard let self else { return }
147 |             self.batchTimer?.invalidate()
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:155:9: error: cannot find 'DispatchQueue' in scope
153 |
154 |     private func stopBatchTimer() {
155 |         DispatchQueue.main.async { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
156 |             self?.batchTimer?.invalidate()
157 |             self?.batchTimer = nil
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:165:59: error: cannot infer contextual base in reference to member 'barrier'
163 |     func flushBatch(nowMs: Double = Date().timeIntervalSince1970 * 1_000) {
164 |         guard let handler = batchHandler, config.emitRawMotionSamples else { return }
165 |         let batch: [RawSample] = sampleQueue.sync(flags: .barrier) {
    |                                                           `- error: cannot infer contextual base in reference to member 'barrier'
166 |             let since = lastBatchEndMs
167 |             let recent = samples.filter { $0.ts > since && $0.ts <= nowMs }
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/MotionSignalCollector.swift:174:9: error: cannot find 'DispatchQueue' in scope
172 |         }
173 |         if batch.isEmpty { return }
174 |         DispatchQueue.main.async { handler(batch) }
    |         `- error: cannot find 'DispatchQueue' in scope
175 |     }
176 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:29:42: error: cannot find type 'DispatchWorkItem' in scope
 27 |     private weak var sessionManager: SessionManager?
 28 |     private var tracker = NotificationOutcomeTracker()
 29 |     private var pendingIgnored: [String: DispatchWorkItem] = [:]
    |                                          `- error: cannot find type 'DispatchWorkItem' in scope
 30 |     private var enabled: Bool
 31 |     private let installDelegate: Bool
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:89:20: error: cannot find 'DispatchWorkItem' in scope
 87 |         guard tracker.received(id: id, atMs: nowMs) else { return }
 88 |         emit(action: "received")
 89 |         let task = DispatchWorkItem { [weak self] in
    |                    `- error: cannot find 'DispatchWorkItem' in scope
 90 |             guard let self else { return }
 91 |             self.pendingIgnored[id] = nil
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |         pendingIgnored[id]?.cancel()
 95 |         pendingIgnored[id] = task
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + ignoredThresholdMs / 1_000, execute: task)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/synheart-behavior-swift/Sources/SynheartBehavior/NotificationCollector.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |         pendingIgnored[id]?.cancel()
 95 |         pendingIgnored[id] = task
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + ignoredThresholdMs / 1_000, execute: task)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
[128/627] Compiling SynheartSession SynheartSession.swift
/host/spi-builder-workspace/Sources/SynheartSession/SynheartSession.swift:100:22: error: value of type 'RunLoop' has no member 'add'
 98 |             self?.emitFrame()
 99 |         }
100 |         RunLoop.main.add(frameTimer, forMode: .common)
    |                      `- error: value of type 'RunLoop' has no member 'add'
101 |         emitTimer = frameTimer
102 |
/host/spi-builder-workspace/Sources/SynheartSession/SynheartSession.swift:100:48: error: cannot infer contextual base in reference to member 'common'
 98 |             self?.emitFrame()
 99 |         }
100 |         RunLoop.main.add(frameTimer, forMode: .common)
    |                                                `- error: cannot infer contextual base in reference to member 'common'
101 |         emitTimer = frameTimer
102 |
/host/spi-builder-workspace/Sources/SynheartSession/SynheartSession.swift:108:22: error: value of type 'RunLoop' has no member 'add'
106 |             self.doStop(sessionId: cfg.sessionId)
107 |         }
108 |         RunLoop.main.add(durTimer, forMode: .common)
    |                      `- error: value of type 'RunLoop' has no member 'add'
109 |         durationTimer = durTimer
110 |
/host/spi-builder-workspace/Sources/SynheartSession/SynheartSession.swift:108:46: error: cannot infer contextual base in reference to member 'common'
106 |             self.doStop(sessionId: cfg.sessionId)
107 |         }
108 |         RunLoop.main.add(durTimer, forMode: .common)
    |                                              `- error: cannot infer contextual base in reference to member 'common'
109 |         durationTimer = durTimer
110 |
/host/spi-builder-workspace/Sources/SynheartSession/SynheartSession.swift:118:26: error: value of type 'RunLoop' has no member 'add'
116 |                 self?.emitBiosignalFrame()
117 |             }
118 |             RunLoop.main.add(rawTimer, forMode: .common)
    |                          `- error: value of type 'RunLoop' has no member 'add'
119 |             rawEmitTimer = rawTimer
120 |         }
/host/spi-builder-workspace/Sources/SynheartSession/SynheartSession.swift:118:50: error: cannot infer contextual base in reference to member 'common'
116 |                 self?.emitBiosignalFrame()
117 |             }
118 |             RunLoop.main.add(rawTimer, forMode: .common)
    |                                                  `- error: cannot infer contextual base in reference to member 'common'
119 |             rawEmitTimer = rawTimer
120 |         }
[129/627] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[130/627] Compiling SpanPreview InputSpan.swift
[135/627] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[136/627] Emitting module SynheartSession
[136/628] Compiling ssl_x509.cc
[136/628] Compiling tls13_both.cc
[136/628] Compiling t1_enc.cc
[136/628] Compiling tls13_client.cc
BUILD FAILURE 6.2 wasm