The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AlamofireNetworkActivityLogger, reference master (8db9d4), with Swift 6.2 for Linux on 19 Jun 2025 09:34:09 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/konkab/AlamofireNetworkActivityLogger.git
Reference: master
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/konkab/AlamofireNetworkActivityLogger
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8db9d4e Update to Alamofire 5.4
Submodule path 'Carthage/Checkouts/Alamofire': checked out '9e0328127dfb801cefe8ac53a13c0c90a7770448'
Submodule 'Carthage/Checkouts/Alamofire' (https://github.com/Alamofire/Alamofire.git) registered for path 'Carthage/Checkouts/Alamofire'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Alamofire'...
Cloned https://github.com/konkab/AlamofireNetworkActivityLogger.git
Revision (git rev-parse @):
8db9d4e27176905298e7215e3d800e349cdfa30b
SUCCESS checkout https://github.com/konkab/AlamofireNetworkActivityLogger.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/konkab/AlamofireNetworkActivityLogger.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/Alamofire/Alamofire.git
[1/30141] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.32s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (3.81s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
Building for debugging...
[0/4] Copying PrivacyInfo.xcprivacy
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/43] Emitting module Alamofire
[6/48] Compiling Alamofire NetworkReachabilityManager.swift
[7/48] Compiling Alamofire RedirectHandler.swift
[8/48] Compiling Alamofire RequestCompression.swift
[9/48] Compiling Alamofire RequestInterceptor.swift
[10/48] Compiling Alamofire ResponseSerialization.swift
[11/48] Compiling Alamofire URLRequest+Alamofire.swift
[12/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[13/48] Compiling Alamofire AlamofireExtended.swift
[14/48] Compiling Alamofire AuthenticationInterceptor.swift
[15/48] Compiling Alamofire CachedResponseHandler.swift
[16/48] Compiling Alamofire Combine.swift
[17/48] Compiling Alamofire Concurrency.swift
[18/48] Compiling Alamofire EventMonitor.swift
[19/48] Compiling Alamofire MultipartFormData.swift
[20/48] Compiling Alamofire MultipartUpload.swift
[21/48] Compiling Alamofire WebSocketRequest.swift
[22/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[23/48] Compiling Alamofire OperationQueue+Alamofire.swift
[24/48] Compiling Alamofire Result+Alamofire.swift
[25/48] Compiling Alamofire StringEncoding+Alamofire.swift
[26/48] Compiling Alamofire HTTPMethod.swift
[27/48] Compiling Alamofire Notifications.swift
[28/48] Compiling Alamofire ParameterEncoder.swift
[29/48] Compiling Alamofire ParameterEncoding.swift
[30/48] Compiling Alamofire Protected.swift
[31/48] Compiling Alamofire Request.swift
[32/48] Compiling Alamofire RequestTaskMap.swift
[33/48] Compiling Alamofire Response.swift
[34/48] Compiling Alamofire Session.swift
[35/48] Compiling Alamofire SessionDelegate.swift
[36/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[37/48] Compiling Alamofire UploadRequest.swift
[38/48] Compiling Alamofire RetryPolicy.swift
[39/48] Compiling Alamofire ServerTrustEvaluation.swift
[40/48] Compiling Alamofire URLEncodedFormEncoder.swift
[41/48] Compiling Alamofire Validation.swift
[42/48] Compiling Alamofire resource_bundle_accessor.swift
[43/48] Compiling Alamofire Alamofire.swift
[44/48] Compiling Alamofire AFError.swift
[45/48] Compiling Alamofire DataRequest.swift
[46/48] Compiling Alamofire DataStreamRequest.swift
[47/48] Compiling Alamofire DownloadRequest.swift
[48/48] Compiling Alamofire HTTPHeaders.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[50/51] Emitting module AlamofireNetworkActivityLogger
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:106:6: error: Objective-C interoperability is disabled
104 |     // MARK: - Private - Notifications
105 |
106 |     @objc private func requestDidStart(notification: Notification) {
    |      `- error: Objective-C interoperability is disabled
107 |         queue.async {
108 |             guard let dataRequest = notification.request as? DataRequest,
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:140:6: error: Objective-C interoperability is disabled
138 |     }
139 |
140 |     @objc private func requestDidFinish(notification: Notification) {
    |      `- error: Objective-C interoperability is disabled
141 |         queue.async {
142 |             guard let dataRequest = notification.request as? DataRequest,
[51/51] Compiling AlamofireNetworkActivityLogger NetworkActivityLogger.swift
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:106:6: error: Objective-C interoperability is disabled
104 |     // MARK: - Private - Notifications
105 |
106 |     @objc private func requestDidStart(notification: Notification) {
    |      `- error: Objective-C interoperability is disabled
107 |         queue.async {
108 |             guard let dataRequest = notification.request as? DataRequest,
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:140:6: error: Objective-C interoperability is disabled
138 |     }
139 |
140 |     @objc private func requestDidFinish(notification: Notification) {
    |      `- error: Objective-C interoperability is disabled
141 |         queue.async {
142 |             guard let dataRequest = notification.request as? DataRequest,
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:86:23: error: '#selector' can only be used with the Objective-C runtime
 84 |         notificationCenter.addObserver(
 85 |             self,
 86 |             selector: #selector(NetworkActivityLogger.requestDidStart(notification:)),
    |                       `- error: '#selector' can only be used with the Objective-C runtime
 87 |             name: Request.didResumeNotification,
 88 |             object: nil
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:93:23: error: '#selector' can only be used with the Objective-C runtime
 91 |         notificationCenter.addObserver(
 92 |             self,
 93 |             selector: #selector(NetworkActivityLogger.requestDidFinish(notification:)),
    |                       `- error: '#selector' can only be used with the Objective-C runtime
 94 |             name: Request.didFinishNotification,
 95 |             object: nil
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:108:37: warning: capture of 'notification' with non-Sendable type 'Notification' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
106 |     @objc private func requestDidStart(notification: Notification) {
107 |         queue.async {
108 |             guard let dataRequest = notification.request as? DataRequest,
    |                                     `- warning: capture of 'notification' with non-Sendable type 'Notification' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
109 |                 let task = dataRequest.task,
110 |                 let request = task.originalRequest,
Foundation.Notification:1:15: note: struct 'Notification' does not conform to the 'Sendable' protocol
 1 | public struct Notification : ReferenceConvertible, Equatable, Hashable {
   |               `- note: struct 'Notification' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSNotification
 3 |     public var name: Notification.Name
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:142:37: warning: capture of 'notification' with non-Sendable type 'Notification' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
140 |     @objc private func requestDidFinish(notification: Notification) {
141 |         queue.async {
142 |             guard let dataRequest = notification.request as? DataRequest,
    |                                     `- warning: capture of 'notification' with non-Sendable type 'Notification' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
143 |                 let task = dataRequest.task,
144 |                 let metrics = dataRequest.metrics,
Foundation.Notification:1:15: note: struct 'Notification' does not conform to the 'Sendable' protocol
 1 | public struct Notification : ReferenceConvertible, Equatable, Hashable {
   |               `- note: struct 'Notification' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSNotification
 3 |     public var name: Notification.Name
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
BUILD FAILURE 6.2 linux