Build Information
Failed to build swift-log-supabase with Swift 5.8 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/binaryscraping/swift-log-supabase.git
Reference: 0.1.0
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/binaryscraping/swift-log-supabase
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 2b9e87d Rename library
Cloned https://github.com/binaryscraping/swift-log-supabase.git
Revision (git rev-parse @):
2b9e87db89132a0edde2174279ec3c3338d1bd52
SUCCESS checkout https://github.com/binaryscraping/swift-log-supabase.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/apple/swift-log
[1/3152] Fetching swift-log
Fetched https://github.com/apple/swift-log (0.46s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.4.2 (0.33s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.4.2
Building for debugging...
[1/4] Emitting module Logging
[2/4] Compiling Logging LogHandler.swift
[3/4] Compiling Logging Locks.swift
[4/4] Compiling Logging Logging.swift
[7/10] Compiling SupabaseLogging SupabaseLogHandler.swift
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
@objc func appWillTerminate() {
~^~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:115:17: error: '#selector' can only be used with the Objective-C runtime
selector: #selector(checkForLogsAndSend), userInfo: nil, repeats: true)
^
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:138:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:145:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let config = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:147:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: config)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:157:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200..<300 ~= httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling SupabaseLogging LogsCache.swift
[9/10] Compiling SupabaseLogging LogEntry.swift
[10/10] Emitting module SupabaseLogging
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
@objc func appWillTerminate() {
~^~~~~
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module SupabaseLogging
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
@objc func appWillTerminate() {
~^~~~~
[2/2] Compiling SupabaseLogging SupabaseLogHandler.swift
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
@objc func appWillTerminate() {
~^~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:115:17: error: '#selector' can only be used with the Objective-C runtime
selector: #selector(checkForLogsAndSend), userInfo: nil, repeats: true)
^
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:138:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:145:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let config = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:147:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: config)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:157:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200..<300 ~= httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
BUILD FAILURE 5.8 linux