The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Aptabase, reference main (cfd67f), with Swift 5.8 for Linux on 6 Oct 2024 07:24:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptabase/aptabase-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/aptabase/aptabase-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cfd67fa Merge pull request #27 from aptabase/fix/debug-only-data
Cloned https://github.com/aptabase/aptabase-swift.git
Revision (git rev-parse @):
cfd67fac2a228d448d9d2ac92ffc71589cc3ef00
SUCCESS checkout https://github.com/aptabase/aptabase-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $PWD
https://github.com/aptabase/aptabase-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.8-latest: Pulling from finestructure/spi-images
Digest: sha256:a5e57d1af25c3272f87123c7a264de6fd88dcc01acef91f1006945662a9fd14a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.8-latest
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
[246/5147] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.41s)
Fetched https://github.com/apple/swift-docc-plugin (0.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.36s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.38s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/3] Copying PrivacyInfo.xcprivacy
[4/12] Compiling Aptabase ConcurrentQueue.swift
[5/12] Compiling Aptabase EnvironmentInfo.swift
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
                  ^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:57:20: warning: unknown operating system for build configuration 'os'
        #elseif os(visionOS)
                   ^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:57:20: note: did you mean 'iOS'?
        #elseif os(visionOS)
                   ^~~~~~~~
                   iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:57:20: note: did you mean 'Windows'?
        #elseif os(visionOS)
                   ^~~~~~~~
                   Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:68:43: warning: unknown operating system for build configuration 'os'
        #elseif os(iOS) || os(tvOS) || os(visionOS)
                                          ^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:68:43: note: did you mean 'iOS'?
        #elseif os(iOS) || os(tvOS) || os(visionOS)
                                          ^~~~~~~~
                                          iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:68:43: note: did you mean 'Windows'?
        #elseif os(iOS) || os(tvOS) || os(visionOS)
                                          ^~~~~~~~
                                          Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:94:43: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
        if let simulatorModelIdentifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] {
                                          ^
Foundation.ProcessInfo (internal):3:23: note: 'init()' declared here
    override internal init()
                      ^
[6/13] Compiling Aptabase Value.swift
[7/13] Compiling Aptabase TrackingMode.swift
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:4:2: error: Objective-C interoperability is disabled
@objc public class TrackingMode: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:6: error: Objective-C interoperability is disabled
    @objc public static let asDebug = TrackingMode(rawValue: 0)
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:6: error: Objective-C interoperability is disabled
    @objc public static let asRelease = TrackingMode(rawValue: 1)
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:6: error: Objective-C interoperability is disabled
    @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:15:6: error: Objective-C interoperability is disabled
    @objc public var isDebug: Bool {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:19:6: error: Objective-C interoperability is disabled
    @objc public var isRelease: Bool {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:23:6: error: Objective-C interoperability is disabled
    @objc public var isReadFromEnvironment: Bool {
    ~^~~~~

[8/13] Compiling Aptabase InitOptions.swift
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
    @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
    ~^~~~~

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:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
                  ^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  Windows
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
                  ^
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  iOS
/host/spi-builder-workspace/Sources/Aptabase/EnvironmentInfo.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
    @objc public static let shared = Aptabase()
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:71:6: error: Objective-C interoperability is disabled
    @objc public func initialize(appKey: String) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
    @objc public func initialize(appKey: String, options: InitOptions?) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
    @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
    @objc public func flush() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
    @objc private func startPolling() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
    @objc private func stopPolling() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
    @objc private func timerFlushSync() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {}
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
    func data(for: URLRequest) async throws -> (Data, URLResponse)
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func data(for: URLRequest) async throws -> (Data, URLResponse)
                                                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
                                                                                              ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Aptabase/InitOptions.swift:13:6: error: Objective-C interoperability is disabled
    @objc public init(host: String? = nil, flushInterval: NSNumber? = nil, trackingMode: TrackingMode = .readFromEnvironment) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:4:2: error: Objective-C interoperability is disabled
@objc public class TrackingMode: NSObject {
~^~~~~
/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:6: error: Objective-C interoperability is disabled
    @objc public static let asDebug = TrackingMode(rawValue: 0)
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:6: error: Objective-C interoperability is disabled
    @objc public static let asRelease = TrackingMode(rawValue: 1)
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:6: error: Objective-C interoperability is disabled
    @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:15:6: error: Objective-C interoperability is disabled
    @objc public var isDebug: Bool {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:19:6: error: Objective-C interoperability is disabled
    @objc public var isRelease: Bool {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:23:6: error: Objective-C interoperability is disabled
    @objc public var isReadFromEnvironment: Bool {
    ~^~~~~

[10/13] Compiling Aptabase Aptabase.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
                  ^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: warning: unknown operating system for build configuration 'os'
        #if os(tvOS) || os(iOS) || os(visionOS)
                                      ^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'iOS'?
        #if os(tvOS) || os(iOS) || os(visionOS)
                                      ^~~~~~~~
                                      iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'Windows'?
        #if os(tvOS) || os(iOS) || os(visionOS)
                                      ^~~~~~~~
                                      Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
    @objc public static let shared = Aptabase()
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:71:6: error: Objective-C interoperability is disabled
    @objc public func initialize(appKey: String) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
    @objc public func initialize(appKey: String, options: InitOptions?) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
    @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
    @objc public func flush() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
    @objc private func startPolling() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
    @objc private func stopPolling() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
    @objc private func timerFlushSync() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
        flushTimer = Timer.scheduledTimer(timeInterval: flushInterval, target: self, selector: #selector(timerFlushSync), userInfo: nil, repeats: true)
                                                                                               ^
[11/13] Compiling Aptabase AptabaseClient.swift
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(visionOS)
                  ^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'iOS'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:3:19: note: did you mean 'Windows'?
#if os(iOS) || os(visionOS)
                  ^~~~~~~~
                  Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: warning: unknown operating system for build configuration 'os'
        #if os(tvOS) || os(iOS) || os(visionOS)
                                      ^
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'iOS'?
        #if os(tvOS) || os(iOS) || os(visionOS)
                                      ^~~~~~~~
                                      iOS
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:43:39: note: did you mean 'Windows'?
        #if os(tvOS) || os(iOS) || os(visionOS)
                                      ^~~~~~~~
                                      Windows
/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:6: error: Objective-C interoperability is disabled
    @objc public static let shared = Aptabase()
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:71:6: error: Objective-C interoperability is disabled
    @objc public func initialize(appKey: String) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:79:6: error: Objective-C interoperability is disabled
    @objc public func initialize(appKey: String, options: InitOptions?) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:87:6: error: Objective-C interoperability is disabled
    @objc public func trackEvent(_ eventName: String, with props: [String: Any] = [:]) {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:96:6: error: Objective-C interoperability is disabled
    @objc public func flush() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:110:6: error: Objective-C interoperability is disabled
    @objc private func startPolling() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:114:6: error: Objective-C interoperability is disabled
    @objc private func stopPolling() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:73:6: error: Objective-C interoperability is disabled
    @objc private func timerFlushSync() {
    ~^~~~~

/host/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:50:96: error: '#selector' can only be used with the Objective-C runtime
        flushTimer = Timer.scheduledTimer(timeInterval: flushInterval, target: self, selector: #selector(timerFlushSync), userInfo: nil, repeats: true)
                                                                                               ^
[12/13] Compiling Aptabase resource_bundle_accessor.swift
[13/13] Compiling Aptabase EventDispatcher.swift
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {}
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:20: error: cannot find type 'URLRequest' in scope
    func data(for: URLRequest) async throws -> (Data, URLResponse)
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:23:55: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func data(for: URLRequest) async throws -> (Data, URLResponse)
                                                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:35:106: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    init(appKey: String, baseUrl: String, env: EnvironmentInfo, session: URLSessionProtocol = URLSession.shared) {
                                                                                              ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:81:27: error: cannot find 'URLRequest' in scope
            var request = URLRequest(url: apiUrl)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:87:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
BUILD FAILURE 5.8 linux