Build Information
Failed to build Aptabase, reference main (cfd67f
), with Swift 5.10 for Linux on 6 Oct 2024 07:25:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptabase/aptabase-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/aptabase/aptabase-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cfd67fa Merge pull request #27 from aptabase/fix/debug-only-data
Cloned https://github.com/aptabase/aptabase-swift.git
Revision (git rev-parse @):
cfd67fac2a228d448d9d2ac92ffc71589cc3ef00
SUCCESS checkout https://github.com/aptabase/aptabase-swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/aptabase/aptabase-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:6c25c99211d1e15148b101a61df2563575f50d0f624cb6ce5a573a0b53fb5dca
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2038] Fetching swift-docc-plugin
[246/5147] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.36s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.37s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.43s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.46s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/5] Write sources
[2/5] Copying PrivacyInfo.xcprivacy
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/14] Compiling Aptabase EventDispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
func data(for: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:81:27: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: apiUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:87:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[7/15] Compiling Aptabase Value.swift
[8/15] Compiling Aptabase TrackingMode.swift
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:4:2: error: Objective-C interoperability is disabled
@objc public class TrackingMode: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:6: error: Objective-C interoperability is disabled
@objc public static let asDebug = TrackingMode(rawValue: 0)
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:6: error: Objective-C interoperability is disabled
@objc public static let asRelease = TrackingMode(rawValue: 1)
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:6: error: Objective-C interoperability is disabled
@objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:15:6: error: Objective-C interoperability is disabled
@objc public var isDebug: Bool {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:19:6: error: Objective-C interoperability is disabled
@objc public var isRelease: Bool {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:23:6: error: Objective-C interoperability is disabled
@objc public var isReadFromEnvironment: Bool {
~^~~~~
[9/15] Compiling Aptabase ConcurrentQueue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/15] Emitting module Aptabase
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
@objc public static let shared = Aptabase()
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:71:6: error: Objective-C interoperability is disabled
@objc public func initialize(appKey: String) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
@objc public func initialize(appKey: String, options: InitOptions?) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
@objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
@objc public func flush() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
@objc private func startPolling() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
@objc private func stopPolling() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
@objc private func timerFlushSync() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {}
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
func data(for: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
@objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:4:2: error: Objective-C interoperability is disabled
@objc public class TrackingMode: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:6: error: Objective-C interoperability is disabled
@objc public static let asDebug = TrackingMode(rawValue: 0)
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:6: error: Objective-C interoperability is disabled
@objc public static let asRelease = TrackingMode(rawValue: 1)
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:6: error: Objective-C interoperability is disabled
@objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:15:6: error: Objective-C interoperability is disabled
@objc public var isDebug: Bool {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:19:6: error: Objective-C interoperability is disabled
@objc public var isRelease: Bool {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:23:6: error: Objective-C interoperability is disabled
@objc public var isReadFromEnvironment: Bool {
~^~~~~
[11/15] Compiling Aptabase Aptabase.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: warning: unknown operating system for build configuration 'os'
#if os(tvOS) || os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'iOS'?
#if os(tvOS) || os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'Windows'?
#if os(tvOS) || os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
@objc public static let shared = Aptabase()
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:71:6: error: Objective-C interoperability is disabled
@objc public func initialize(appKey: String) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
@objc public func initialize(appKey: String, options: InitOptions?) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
@objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
@objc public func flush() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
@objc private func startPolling() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
@objc private func stopPolling() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
@objc private func timerFlushSync() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
flushTimer = Timer.scheduledTimer(timeInterval: flushInterval, target: self, selector: #selector(timerFlushSync), userInfo: nil, repeats: true)
^
[12/15] Compiling Aptabase AptabaseClient.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: warning: unknown operating system for build configuration 'os'
#if os(tvOS) || os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'iOS'?
#if os(tvOS) || os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'Windows'?
#if os(tvOS) || os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
@objc public static let shared = Aptabase()
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:71:6: error: Objective-C interoperability is disabled
@objc public func initialize(appKey: String) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
@objc public func initialize(appKey: String, options: InitOptions?) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
@objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
@objc public func flush() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
@objc private func startPolling() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
@objc private func stopPolling() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
@objc private func timerFlushSync() {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
flushTimer = Timer.scheduledTimer(timeInterval: flushInterval, target: self, selector: #selector(timerFlushSync), userInfo: nil, repeats: true)
^
[13/15] Compiling Aptabase EnvironmentInfo.swift
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:57:20: warning: unknown operating system for build configuration 'os'
#elseif os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:57:20: note: did you mean 'iOS'?
#elseif os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:57:20: note: did you mean 'Windows'?
#elseif os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:68:43: warning: unknown operating system for build configuration 'os'
#elseif os(iOS) || os(tvOS) || os(visionOS)
^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:68:43: note: did you mean 'iOS'?
#elseif os(iOS) || os(tvOS) || os(visionOS)
^~~~~~~~
iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:68:43: note: did you mean 'Windows'?
#elseif os(iOS) || os(tvOS) || os(visionOS)
^~~~~~~~
Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:94:43: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
if let simulatorModelIdentifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] {
^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
override internal init()
^
[14/15] Compiling Aptabase InitOptions.swift
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
@objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
~^~~~~
[15/15] Compiling Aptabase resource_bundle_accessor.swift
error: fatalError
BUILD FAILURE 5.10 linux