Build Information
Failed to build Aptabase, reference main (cfd67f
), with Swift 6.1 for Linux on 29 Apr 2025 13:32:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
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: 6.1
Building package at path: $PWD
https://github.com/aptabase/aptabase-swift.git
https://github.com/aptabase/aptabase-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "Aptabase",
"name" : "Aptabase",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Aptabase",
"targets" : [
"Aptabase"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AptabaseTests",
"module_type" : "SwiftTarget",
"name" : "AptabaseTests",
"path" : "Tests/AptabaseTests",
"sources" : [
"ConcurrentQueueTests.swift",
"EventDispatcherTests.swift"
],
"target_dependencies" : [
"Aptabase"
],
"type" : "test"
},
{
"c99name" : "Aptabase",
"module_type" : "SwiftTarget",
"name" : "Aptabase",
"path" : "Sources/Aptabase",
"product_memberships" : [
"Aptabase"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/Aptabase/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Aptabase.swift",
"AptabaseClient.swift",
"ConcurrentQueue.swift",
"EnvironmentInfo.swift",
"EventDispatcher.swift",
"InitOptions.swift",
"TrackingMode.swift",
"Value.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.64s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.58s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3376] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.58s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.54s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
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/14] Compiling Aptabase InitOptions.swift
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
11 | /// - flushInterval: Defines a custom interval for flushing events.
12 | /// - 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.
13 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
| `- error: Objective-C interoperability is disabled
14 | self.host = host
15 | self.flushInterval = flushInterval?.doubleValue
[7/15] Compiling Aptabase ConcurrentQueue.swift
/host/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:9:13: warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
7 | func enqueue(_ element: T) {
8 | queue.async(flags: .barrier) {
9 | self.elements.append(element)
| `- warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
10 | }
11 | }
/host/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:9:34: warning: capture of 'element' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
7 | func enqueue(_ element: T) {
8 | queue.async(flags: .barrier) {
9 | self.elements.append(element)
| `- warning: capture of 'element' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
10 | }
11 | }
/host/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:15:13: warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
13 | func enqueue(contentsOf newElements: [T]) {
14 | queue.async(flags: .barrier) {
15 | self.elements.append(contentsOf: newElements)
| `- warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 | }
/host/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:15:46: warning: capture of 'newElements' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
13 | func enqueue(contentsOf newElements: [T]) {
14 | queue.async(flags: .barrier) {
15 | self.elements.append(contentsOf: newElements)
| `- warning: capture of 'newElements' with non-sendable type '[T]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
16 | }
17 | }
[8/15] Compiling Aptabase EventDispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |
22 | protocol URLSessionProtocol {
23 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/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.
21 |
22 | protocol URLSessionProtocol {
23 | 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.
24 | }
25 |
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/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
28 | public class EventDispatcher {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:81:27: error: cannot find 'URLRequest' in scope
79 | let body = try encoder.encode(events)
80 |
81 | var request = URLRequest(url: apiUrl)
| `- error: cannot find 'URLRequest' in scope
82 | request.httpMethod = "POST"
83 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:87:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
85 |
86 | let (data, response) = try await session.data(for: request)
87 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 | if statusCode < 300 {
89 | return
[9/15] 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 |
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:19:29: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Aptabase client used to track events.
14 | public class Aptabase: NSObject {
| `- note: class 'Aptabase' does not conform to the 'Sendable' protocol
15 | private var env = EnvironmentInfo.current()
16 | private var client: AptabaseClient?
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /// Initializes the client with given App Key.
/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:71:6: error: Objective-C interoperability is disabled
69 | /// Initializes the client with given App Key.
70 | /// - Parameter appKey: The App Key to use.
71 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
72 | initialize(appKey: appKey, with: nil)
73 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
77 | /// - appKey: The App Key to use.
78 | /// - options: Optional initialization options.
79 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
80 | initialize(appKey: appKey, with: options)
81 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
85 | /// - eventName: The name of the event to track.
86 | /// - props: Additional given properties.
87 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
88 | guard let codable = toCodableProps(from: props) else {
89 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
94 |
95 | /// Forces all queued events to be sent to the server
96 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
97 | Task {
98 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
108 | }
109 |
110 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
111 | client?.startPolling()
112 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
112 | }
113 |
114 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
115 | client?.stopPolling()
116 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
71 | }
72 |
73 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
74 | if !pauseFlushTimer {
75 | Task {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |
22 | protocol URLSessionProtocol {
23 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/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.
21 |
22 | protocol URLSessionProtocol {
23 | 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.
24 | }
25 |
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/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
28 | public class EventDispatcher {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
11 | /// - flushInterval: Defines a custom interval for flushing events.
12 | /// - 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.
13 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
| `- error: Objective-C interoperability is disabled
14 | self.host = host
15 | self.flushInterval = flushInterval?.doubleValue
/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:29: warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
| |- warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asDebug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: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:29: warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
| |- warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asRelease' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
8 |
/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:29: warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
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)
| |- warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'readFromEnvironment' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | private let rawValue: Int
/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 | }
[11/15] Compiling Aptabase Aptabase.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:29: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Aptabase client used to track events.
14 | public class Aptabase: NSObject {
| `- note: class 'Aptabase' does not conform to the 'Sendable' protocol
15 | private var env = EnvironmentInfo.current()
16 | private var client: AptabaseClient?
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /// Initializes the client with given App Key.
/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:71:6: error: Objective-C interoperability is disabled
69 | /// Initializes the client with given App Key.
70 | /// - Parameter appKey: The App Key to use.
71 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
72 | initialize(appKey: appKey, with: nil)
73 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
77 | /// - appKey: The App Key to use.
78 | /// - options: Optional initialization options.
79 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
80 | initialize(appKey: appKey, with: options)
81 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
85 | /// - eventName: The name of the event to track.
86 | /// - props: Additional given properties.
87 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
88 | guard let codable = toCodableProps(from: props) else {
89 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
94 |
95 | /// Forces all queued events to be sent to the server
96 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
97 | Task {
98 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
108 | }
109 |
110 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
111 | client?.startPolling()
112 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
112 | }
113 |
114 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
115 | client?.stopPolling()
116 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
71 | }
72 |
73 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
74 | if !pauseFlushTimer {
75 | Task {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
48 | stopPolling()
49 |
50 | 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
51 | }
52 |
[12/15] Compiling Aptabase AptabaseClient.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:29: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Aptabase client used to track events.
14 | public class Aptabase: NSObject {
| `- note: class 'Aptabase' does not conform to the 'Sendable' protocol
15 | private var env = EnvironmentInfo.current()
16 | private var client: AptabaseClient?
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /// Initializes the client with given App Key.
/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:71:6: error: Objective-C interoperability is disabled
69 | /// Initializes the client with given App Key.
70 | /// - Parameter appKey: The App Key to use.
71 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
72 | initialize(appKey: appKey, with: nil)
73 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
77 | /// - appKey: The App Key to use.
78 | /// - options: Optional initialization options.
79 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
80 | initialize(appKey: appKey, with: options)
81 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
85 | /// - eventName: The name of the event to track.
86 | /// - props: Additional given properties.
87 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
88 | guard let codable = toCodableProps(from: props) else {
89 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
94 |
95 | /// Forces all queued events to be sent to the server
96 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
97 | Task {
98 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
108 | }
109 |
110 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
111 | client?.startPolling()
112 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
112 | }
113 |
114 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
115 | client?.stopPolling()
116 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
71 | }
72 |
73 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
74 | if !pauseFlushTimer {
75 | Task {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
48 | stopPolling()
49 |
50 | 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
51 | }
52 |
[13/15] 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:29: warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
| |- warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asDebug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: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:29: warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
| |- warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asRelease' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
8 |
/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:29: warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
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)
| |- warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'readFromEnvironment' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | private let rawValue: Int
/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 | }
[14/15] Compiling Aptabase Value.swift
[15/15] Compiling Aptabase resource_bundle_accessor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/12] 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 | }
[5/13] 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 |
[6/13] 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:71:6: error: Objective-C interoperability is disabled
69 | /// Initializes the client with given App Key.
70 | /// - Parameter appKey: The App Key to use.
71 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
72 | initialize(appKey: appKey, with: nil)
73 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
77 | /// - appKey: The App Key to use.
78 | /// - options: Optional initialization options.
79 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
80 | initialize(appKey: appKey, with: options)
81 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
85 | /// - eventName: The name of the event to track.
86 | /// - props: Additional given properties.
87 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
88 | guard let codable = toCodableProps(from: props) else {
89 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
94 |
95 | /// Forces all queued events to be sent to the server
96 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
97 | Task {
98 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
108 | }
109 |
110 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
111 | client?.startPolling()
112 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
112 | }
113 |
114 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
115 | client?.stopPolling()
116 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
71 | }
72 |
73 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
74 | if !pauseFlushTimer {
75 | Task {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
48 | stopPolling()
49 |
50 | 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
51 | }
52 |
[7/13] 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:71:6: error: Objective-C interoperability is disabled
69 | /// Initializes the client with given App Key.
70 | /// - Parameter appKey: The App Key to use.
71 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
72 | initialize(appKey: appKey, with: nil)
73 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
77 | /// - appKey: The App Key to use.
78 | /// - options: Optional initialization options.
79 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
80 | initialize(appKey: appKey, with: options)
81 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
85 | /// - eventName: The name of the event to track.
86 | /// - props: Additional given properties.
87 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
88 | guard let codable = toCodableProps(from: props) else {
89 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
94 |
95 | /// Forces all queued events to be sent to the server
96 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
97 | Task {
98 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
108 | }
109 |
110 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
111 | client?.startPolling()
112 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
112 | }
113 |
114 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
115 | client?.stopPolling()
116 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
71 | }
72 |
73 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
74 | if !pauseFlushTimer {
75 | Task {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
48 | stopPolling()
49 |
50 | 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
51 | }
52 |
[8/13] Compiling Aptabase ConcurrentQueue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/13] 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:71:6: error: Objective-C interoperability is disabled
69 | /// Initializes the client with given App Key.
70 | /// - Parameter appKey: The App Key to use.
71 | @objc public func initialize(appKey: String) {
| `- error: Objective-C interoperability is disabled
72 | initialize(appKey: appKey, with: nil)
73 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
77 | /// - appKey: The App Key to use.
78 | /// - options: Optional initialization options.
79 | @objc public func initialize(appKey: String, options: InitOptions?) {
| `- error: Objective-C interoperability is disabled
80 | initialize(appKey: appKey, with: options)
81 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
85 | /// - eventName: The name of the event to track.
86 | /// - props: Additional given properties.
87 | @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
| `- error: Objective-C interoperability is disabled
88 | guard let codable = toCodableProps(from: props) else {
89 | return
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
94 |
95 | /// Forces all queued events to be sent to the server
96 | @objc public func flush() {
| `- error: Objective-C interoperability is disabled
97 | Task {
98 | await self.client?.flush()
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
108 | }
109 |
110 | @objc private func startPolling() {
| `- error: Objective-C interoperability is disabled
111 | client?.startPolling()
112 | }
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
112 | }
113 |
114 | @objc private func stopPolling() {
| `- error: Objective-C interoperability is disabled
115 | client?.stopPolling()
116 | }
/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
71 | }
72 |
73 | @objc private func timerFlushSync() {
| `- error: Objective-C interoperability is disabled
74 | if !pauseFlushTimer {
75 | Task {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |
22 | protocol URLSessionProtocol {
23 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/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.
21 |
22 | protocol URLSessionProtocol {
23 | 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.
24 | }
25 |
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/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
28 | public class EventDispatcher {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
11 | /// - flushInterval: Defines a custom interval for flushing events.
12 | /// - 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.
13 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
| `- error: Objective-C interoperability is disabled
14 | self.host = host
15 | self.flushInterval = flushInterval?.doubleValue
/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 | }
[10/13] Compiling Aptabase Value.swift
[11/13] Compiling Aptabase EventDispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |
22 | protocol URLSessionProtocol {
23 | func data(for: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/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.
21 |
22 | protocol URLSessionProtocol {
23 | 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.
24 | }
25 |
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/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
28 | public class EventDispatcher {
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 | private let session: URLSessionProtocol
34 |
35 | init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | self.session = session
37 | apiUrl = URL(string: "\(baseUrl)/api/v0/events")!
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:81:27: error: cannot find 'URLRequest' in scope
79 | let body = try encoder.encode(events)
80 |
81 | var request = URLRequest(url: apiUrl)
| `- error: cannot find 'URLRequest' in scope
82 | request.httpMethod = "POST"
83 | request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:87:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
85 |
86 | let (data, response) = try await session.data(for: request)
87 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 | if statusCode < 300 {
89 | return
[12/13] Compiling Aptabase InitOptions.swift
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
11 | /// - flushInterval: Defines a custom interval for flushing events.
12 | /// - 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.
13 | @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
| `- error: Objective-C interoperability is disabled
14 | self.host = host
15 | self.flushInterval = flushInterval?.doubleValue
[13/13] Compiling Aptabase resource_bundle_accessor.swift
BUILD FAILURE 6.1 linux