Build Information
Failed to build Aptabase, reference main (a1ee53), with Swift 6.3 for Linux on 25 Oct 2026 05:58:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
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 a1ee53e chore: release 0.4.0
Cloned https://github.com/aptabase/aptabase-swift.git
Revision (git rev-parse @):
a1ee53e99478921cd166c40f59f2e41271032776
SUCCESS checkout https://github.com/aptabase/aptabase-swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/aptabase/aptabase-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:caade26a8dd5b9e237c5c17486feb4a843d699145c768feadca9f1b811831234
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.65s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.82s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3848] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.59s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.79s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Copying PrivacyInfo.xcprivacy
[3/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/18] Compiling Aptabase Value.swift
[7/19] Compiling Aptabase resource_bundle_accessor.swift
[8/19] Compiling Aptabase TrackingMode.swift
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:4:2: error: Objective-C interoperability is disabled
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- error: Objective-C interoperability is disabled
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:6: error: Objective-C interoperability is disabled
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
| `- error: Objective-C interoperability is disabled
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:6: error: Objective-C interoperability is disabled
4 | @objc public class TrackingMode: NSObject {
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
| `- error: Objective-C interoperability is disabled
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
8 |
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:6: error: Objective-C interoperability is disabled
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
| `- error: Objective-C interoperability is disabled
8 |
9 | private let rawValue: Int
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:15:6: error: Objective-C interoperability is disabled
13 | }
14 |
15 | @objc public var isDebug: Bool {
| `- error: Objective-C interoperability is disabled
16 | return self.rawValue == 0
17 | }
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:19:6: error: Objective-C interoperability is disabled
17 | }
18 |
19 | @objc public var isRelease: Bool {
| `- error: Objective-C interoperability is disabled
20 | return self.rawValue == 1
21 | }
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:23:6: error: Objective-C interoperability is disabled
21 | }
22 |
23 | @objc public var isReadFromEnvironment: Bool {
| `- error: Objective-C interoperability is disabled
24 | return self.rawValue == 2
25 | }
[9/19] Compiling Aptabase EventDispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:13:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | internal let encoder = makeDispatcherEncoder()
12 |
13 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | self.session = session
15 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:31:27: error: cannot find 'URLRequest' in scope
29 | let body = try encoder.encode(items)
30 |
31 | var request = URLRequest(url: apiUrl)
| `- error: cannot find 'URLRequest' in scope
32 | request.httpMethod = "POST"
33 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:37:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |
36 | let (data, response) = try await session.data(for: request)
37 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | if statusCode < 300 {
39 | return
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:15:6: error: Objective-C interoperability is disabled
13 | /// - trackingMode: Use TrackingMode.asDebug for debug events, TrackingMode.asRelease for release events, or TrackingMode.readFromEnvironment to use the environment setting. Defaults to .readFromEnvironment if omitted.
14 | /// - appVersion: Override the app version. If none (or an empty string) provided will use the version from the app bundle.
15 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment, appVersion: String? = nil) {
| `- error: Objective-C interoperability is disabled
16 | self.host = host
17 | self.flushInterval = flushInterval?.doubleValue
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:27:6: error: Objective-C interoperability is disabled
25 |
26 | /// Kept so existing Objective-C callers of `initWithHost:flushInterval:trackingMode:` keep compiling.
27 | @objc public convenience init(host: String?, flushInterval: NSNumber?, trackingMode: TrackingMode) {
| `- error: Objective-C interoperability is disabled
28 | self.init(host: host, flushInterval: flushInterval, trackingMode: trackingMode, appVersion: nil)
29 | }
[10/19] Compiling Aptabase InitOptions.swift
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:13:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | internal let encoder = makeDispatcherEncoder()
12 |
13 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | self.session = session
15 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:31:27: error: cannot find 'URLRequest' in scope
29 | let body = try encoder.encode(items)
30 |
31 | var request = URLRequest(url: apiUrl)
| `- error: cannot find 'URLRequest' in scope
32 | request.httpMethod = "POST"
33 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:37:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |
36 | let (data, response) = try await session.data(for: request)
37 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | if statusCode < 300 {
39 | return
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:15:6: error: Objective-C interoperability is disabled
13 | /// - trackingMode: Use TrackingMode.asDebug for debug events, TrackingMode.asRelease for release events, or TrackingMode.readFromEnvironment to use the environment setting. Defaults to .readFromEnvironment if omitted.
14 | /// - appVersion: Override the app version. If none (or an empty string) provided will use the version from the app bundle.
15 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment, appVersion: String? = nil) {
| `- error: Objective-C interoperability is disabled
16 | self.host = host
17 | self.flushInterval = flushInterval?.doubleValue
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:27:6: error: Objective-C interoperability is disabled
25 |
26 | /// Kept so existing Objective-C callers of `initWithHost:flushInterval:trackingMode:` keep compiling.
27 | @objc public convenience init(host: String?, flushInterval: NSNumber?, trackingMode: TrackingMode) {
| `- error: Objective-C interoperability is disabled
28 | self.init(host: host, flushInterval: flushInterval, trackingMode: trackingMode, appVersion: nil)
29 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/19] Compiling Aptabase ErrorReport.swift
[12/19] Compiling Aptabase Event.swift
[13/19] Compiling Aptabase EnvironmentInfo.swift
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:94:43: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
92 | #endif
93 |
94 | if let simulatorModelIdentifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] {
| `- error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
95 | return simulatorModelIdentifier
96 | } else {
FoundationEssentials.ProcessInfo.init:2:10: note: 'init()' declared here
1 | class ProcessInfo {
2 | internal init()}
| `- note: 'init()' declared here
3 |
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:20:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let maximumQueueSize = 25
19 |
20 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | apiUrl = URL(string: "\(baseUrl)/api/v0/error")!
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:51:27: error: cannot find 'URLRequest' in scope
49 | let body = try encoder.encode(errorReport)
50 |
51 | var request = URLRequest(url: apiUrl)
| `- error: cannot find 'URLRequest' in scope
52 | request.httpMethod = "POST"
53 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:57:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |
56 | let (data, response) = try await session.data(for: request)
57 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | if statusCode < 300 {
59 | return
[14/19] Compiling Aptabase ErrorDispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:94:43: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
92 | #endif
93 |
94 | if let simulatorModelIdentifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] {
| `- error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
95 | return simulatorModelIdentifier
96 | } else {
FoundationEssentials.ProcessInfo.init:2:10: note: 'init()' declared here
1 | class ProcessInfo {
2 | internal init()}
| `- note: 'init()' declared here
3 |
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:20:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let maximumQueueSize = 25
19 |
20 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | apiUrl = URL(string: "\(baseUrl)/api/v0/error")!
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:51:27: error: cannot find 'URLRequest' in scope
49 | let body = try encoder.encode(errorReport)
50 |
51 | var request = URLRequest(url: apiUrl)
| `- error: cannot find 'URLRequest' in scope
52 | request.httpMethod = "POST"
53 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:57:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |
56 | let (data, response) = try await session.data(for: request)
57 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | if statusCode < 300 {
59 | return
[15/19] Emitting module Aptabase
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| `- error: Objective-C interoperability is disabled
20 |
21 | /// Initializes the client with given App Key.
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:84:6: error: Objective-C interoperability is disabled
82 | /// Initializes the client with given App Key.
83 | /// - Parameter appKey: The App Key to use.
84 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
85 | initialize(appKey: appKey, with: nil)
86 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:92:6: error: Objective-C interoperability is disabled
90 | /// - appKey: The App Key to use.
91 | /// - options: Optional initialization options.
92 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
93 | initialize(appKey: appKey, with: options)
94 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:100:6: error: Objective-C interoperability is disabled
98 | /// - eventName: The name of the event to track.
99 | /// - props: Additional given properties.
100 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
101 | guard let codable = toCodableProps(from: props) else {
102 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:112:6: error: Objective-C interoperability is disabled
110 | /// - error: The error to report.
111 | /// - fatal: Whether the app can recover from the error. Fatal errors are reported with severity `fatal` and kind `crash`.
112 | @objc public func trackError(_ error: NSError, fatal: Bool = false) {
| `- error: Objective-C interoperability is disabled
113 | enqueueErrorReport(error, fatal: fatal)
114 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:117:6: error: Objective-C interoperability is disabled
115 |
116 | /// Forces all queued events to be sent to the server asynchronously. Returns before the events have been sent.
117 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
118 | Task {
119 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:144:6: error: Objective-C interoperability is disabled
142 | }
143 |
144 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
145 | client?.startPolling()
146 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:148:6: error: Objective-C interoperability is disabled
146 | }
147 |
148 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
149 | client?.stopPolling()
150 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:17:129: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | private var pauseFlushTimer: Bool = false
16 |
17 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, options: InitOptions?, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | flushInterval = options?.flushInterval ?? (env.isDebug ? 2.0 : 60.0)
19 | self.env = env
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:113:6: error: Objective-C interoperability is disabled
111 | }
112 |
113 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
114 | if !pauseFlushTimer {
115 | Task {
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
5 | }
6 |
7 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
8 |
9 | protocol Dispatcher<Item>: Actor where Item: Encodable {
/host/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:20:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let maximumQueueSize = 25
19 |
20 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | apiUrl = URL(string: "\(baseUrl)/api/v0/error")!
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:13:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | internal let encoder = makeDispatcherEncoder()
12 |
13 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | self.session = session
15 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:15:6: error: Objective-C interoperability is disabled
13 | /// - trackingMode: Use TrackingMode.asDebug for debug events, TrackingMode.asRelease for release events, or TrackingMode.readFromEnvironment to use the environment setting. Defaults to .readFromEnvironment if omitted.
14 | /// - appVersion: Override the app version. If none (or an empty string) provided will use the version from the app bundle.
15 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment, appVersion: String? = nil) {
| `- error: Objective-C interoperability is disabled
16 | self.host = host
17 | self.flushInterval = flushInterval?.doubleValue
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:27:6: error: Objective-C interoperability is disabled
25 |
26 | /// Kept so existing Objective-C callers of `initWithHost:flushInterval:trackingMode:` keep compiling.
27 | @objc public convenience init(host: String?, flushInterval: NSNumber?, trackingMode: TrackingMode) {
| `- error: Objective-C interoperability is disabled
28 | self.init(host: host, flushInterval: flushInterval, trackingMode: trackingMode, appVersion: nil)
29 | }
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:4:2: error: Objective-C interoperability is disabled
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- error: Objective-C interoperability is disabled
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:6: error: Objective-C interoperability is disabled
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
| `- error: Objective-C interoperability is disabled
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:6: error: Objective-C interoperability is disabled
4 | @objc public class TrackingMode: NSObject {
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
| `- error: Objective-C interoperability is disabled
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
8 |
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:6: error: Objective-C interoperability is disabled
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
| `- error: Objective-C interoperability is disabled
8 |
9 | private let rawValue: Int
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:15:6: error: Objective-C interoperability is disabled
13 | }
14 |
15 | @objc public var isDebug: Bool {
| `- error: Objective-C interoperability is disabled
16 | return self.rawValue == 0
17 | }
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:19:6: error: Objective-C interoperability is disabled
17 | }
18 |
19 | @objc public var isRelease: Bool {
| `- error: Objective-C interoperability is disabled
20 | return self.rawValue == 1
21 | }
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:23:6: error: Objective-C interoperability is disabled
21 | }
22 |
23 | @objc public var isReadFromEnvironment: Bool {
| `- error: Objective-C interoperability is disabled
24 | return self.rawValue == 2
25 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[16/19] Compiling Aptabase Aptabase.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| `- error: Objective-C interoperability is disabled
20 |
21 | /// Initializes the client with given App Key.
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:84:6: error: Objective-C interoperability is disabled
82 | /// Initializes the client with given App Key.
83 | /// - Parameter appKey: The App Key to use.
84 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
85 | initialize(appKey: appKey, with: nil)
86 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:92:6: error: Objective-C interoperability is disabled
90 | /// - appKey: The App Key to use.
91 | /// - options: Optional initialization options.
92 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
93 | initialize(appKey: appKey, with: options)
94 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:100:6: error: Objective-C interoperability is disabled
98 | /// - eventName: The name of the event to track.
99 | /// - props: Additional given properties.
100 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
101 | guard let codable = toCodableProps(from: props) else {
102 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:112:6: error: Objective-C interoperability is disabled
110 | /// - error: The error to report.
111 | /// - fatal: Whether the app can recover from the error. Fatal errors are reported with severity `fatal` and kind `crash`.
112 | @objc public func trackError(_ error: NSError, fatal: Bool = false) {
| `- error: Objective-C interoperability is disabled
113 | enqueueErrorReport(error, fatal: fatal)
114 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:117:6: error: Objective-C interoperability is disabled
115 |
116 | /// Forces all queued events to be sent to the server asynchronously. Returns before the events have been sent.
117 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
118 | Task {
119 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:144:6: error: Objective-C interoperability is disabled
142 | }
143 |
144 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
145 | client?.startPolling()
146 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:148:6: error: Objective-C interoperability is disabled
146 | }
147 |
148 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
149 | client?.stopPolling()
150 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:17:129: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | private var pauseFlushTimer: Bool = false
16 |
17 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, options: InitOptions?, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | flushInterval = options?.flushInterval ?? (env.isDebug ? 2.0 : 60.0)
19 | self.env = env
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:113:6: error: Objective-C interoperability is disabled
111 | }
112 |
113 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
114 | if !pauseFlushTimer {
115 | Task {
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:81:96: error: '#selector' can only be used with the Objective-C runtime
79 | stopPolling()
80 |
81 | flushTimer = Timer.scheduledTimer(timeInterval: flushInterval, target: self, selector: #selector(timerFlushSync), userInfo: nil, repeats: true)
| `- error: '#selector' can only be used with the Objective-C runtime
82 | }
83 |
[17/19] Compiling Aptabase AptabaseClient.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| `- error: Objective-C interoperability is disabled
20 |
21 | /// Initializes the client with given App Key.
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:84:6: error: Objective-C interoperability is disabled
82 | /// Initializes the client with given App Key.
83 | /// - Parameter appKey: The App Key to use.
84 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
85 | initialize(appKey: appKey, with: nil)
86 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:92:6: error: Objective-C interoperability is disabled
90 | /// - appKey: The App Key to use.
91 | /// - options: Optional initialization options.
92 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
93 | initialize(appKey: appKey, with: options)
94 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:100:6: error: Objective-C interoperability is disabled
98 | /// - eventName: The name of the event to track.
99 | /// - props: Additional given properties.
100 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
101 | guard let codable = toCodableProps(from: props) else {
102 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:112:6: error: Objective-C interoperability is disabled
110 | /// - error: The error to report.
111 | /// - fatal: Whether the app can recover from the error. Fatal errors are reported with severity `fatal` and kind `crash`.
112 | @objc public func trackError(_ error: NSError, fatal: Bool = false) {
| `- error: Objective-C interoperability is disabled
113 | enqueueErrorReport(error, fatal: fatal)
114 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:117:6: error: Objective-C interoperability is disabled
115 |
116 | /// Forces all queued events to be sent to the server asynchronously. Returns before the events have been sent.
117 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
118 | Task {
119 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:144:6: error: Objective-C interoperability is disabled
142 | }
143 |
144 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
145 | client?.startPolling()
146 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:148:6: error: Objective-C interoperability is disabled
146 | }
147 |
148 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
149 | client?.stopPolling()
150 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:17:129: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | private var pauseFlushTimer: Bool = false
16 |
17 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, options: InitOptions?, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | flushInterval = options?.flushInterval ?? (env.isDebug ? 2.0 : 60.0)
19 | self.env = env
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:113:6: error: Objective-C interoperability is disabled
111 | }
112 |
113 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
114 | if !pauseFlushTimer {
115 | Task {
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:81:96: error: '#selector' can only be used with the Objective-C runtime
79 | stopPolling()
80 |
81 | flushTimer = Timer.scheduledTimer(timeInterval: flushInterval, target: self, selector: #selector(timerFlushSync), userInfo: nil, repeats: true)
| `- error: '#selector' can only be used with the Objective-C runtime
82 | }
83 |
[18/19] Compiling Aptabase ConcurrentQueue.swift
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
5 | }
6 |
7 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
8 |
9 | protocol Dispatcher<Item>: Actor where Item: Encodable {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[19/19] Compiling Aptabase Dispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:20: error: cannot find type 'URLRequest' in scope
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:4:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | protocol URLSessionProtocol {
4 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Aptabase/Dispatcher.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
5 | }
6 |
7 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
8 |
9 | protocol Dispatcher<Item>: Actor where Item: Encodable {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 linux