The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Realtime with Swift 5.9 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.25.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/realtime-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/supabase-community/realtime-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5ea1fd2 Update README.md
Cloned https://github.com/supabase-community/realtime-swift.git
Revision (git rev-parse @):
5ea1fd24469191d5dd7421d3dbf42c88c5c0d5ba
SUCCESS checkout https://github.com/supabase-community/realtime-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/11] Compiling Realtime SocketError.swift
[2/12] Compiling Realtime StateChangeCallbacks.swift
[3/12] Compiling Realtime TimeoutTimer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/12] Compiling Realtime Channel.swift
[5/12] Compiling Realtime Defaults.swift
[6/12] Emitting module Realtime
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:715:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

[7/12] Compiling Realtime Message.swift
[8/12] Compiling Realtime Push.swift
[9/12] Compiling Realtime Delegated.swift
[10/12] Compiling Realtime HeartbeatTimer.swift
[11/12] Compiling Realtime RealtimeClient.swift
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:715:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

[12/12] Compiling Realtime Transport.swift
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:200:29: error: extra trailing closure passed in call
    task?.send(.data(data)) { _ in
                            ^~~~~~
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:245:19: error: extra trailing closure passed in call
    task?.receive { result in
                  ^~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/3] Emitting module Realtime
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:715:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

[2/3] Compiling Realtime Transport.swift
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:200:29: error: extra trailing closure passed in call
    task?.send(.data(data)) { _ in
                            ^~~~~~
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:245:19: error: extra trailing closure passed in call
    task?.receive { result in
                  ^~~~~~~~~~~
[3/3] Compiling Realtime RealtimeClient.swift
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:715:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1