The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AlamofireNetworkActivityLogger, reference master (8db9d4), with Swift 6.1 for Android on 28 May 2025 05:10:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/konkab/AlamofireNetworkActivityLogger.git
https://github.com/konkab/AlamofireNetworkActivityLogger.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.4.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    }
  ],
  "manifest_display_name" : "AlamofireNetworkActivityLogger",
  "name" : "AlamofireNetworkActivityLogger",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "AlamofireNetworkActivityLogger",
      "targets" : [
        "AlamofireNetworkActivityLogger"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "AlamofireNetworkActivityLogger",
      "module_type" : "SwiftTarget",
      "name" : "AlamofireNetworkActivityLogger",
      "path" : "Source",
      "product_dependencies" : [
        "Alamofire"
      ],
      "product_memberships" : [
        "AlamofireNetworkActivityLogger"
      ],
      "sources" : [
        "NetworkActivityLogger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/Alamofire/Alamofire.git
[1/30141] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.81s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (4.79s)
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] Write sources
[0/4] Copying PrivacyInfo.xcprivacy
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/43] Emitting module Alamofire
[6/48] Compiling Alamofire RetryPolicy.swift
[7/48] Compiling Alamofire ServerTrustEvaluation.swift
[8/48] Compiling Alamofire URLEncodedFormEncoder.swift
[9/48] Compiling Alamofire Validation.swift
[10/48] Compiling Alamofire resource_bundle_accessor.swift
[11/48] Compiling Alamofire Alamofire.swift
[12/48] Compiling Alamofire AFError.swift
[13/48] Compiling Alamofire DataRequest.swift
[14/48] Compiling Alamofire DataStreamRequest.swift
[15/48] Compiling Alamofire DownloadRequest.swift
[16/48] Compiling Alamofire HTTPHeaders.swift
[17/48] Compiling Alamofire RequestTaskMap.swift
[18/48] Compiling Alamofire Response.swift
[19/48] Compiling Alamofire Session.swift
[20/48] Compiling Alamofire SessionDelegate.swift
[21/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[22/48] Compiling Alamofire UploadRequest.swift
[23/48] Compiling Alamofire NetworkReachabilityManager.swift
[24/48] Compiling Alamofire RedirectHandler.swift
[25/48] Compiling Alamofire RequestCompression.swift
[26/48] Compiling Alamofire RequestInterceptor.swift
[27/48] Compiling Alamofire ResponseSerialization.swift
[28/48] Compiling Alamofire HTTPMethod.swift
[29/48] Compiling Alamofire Notifications.swift
[30/48] Compiling Alamofire ParameterEncoder.swift
[31/48] Compiling Alamofire ParameterEncoding.swift
[32/48] Compiling Alamofire Protected.swift
[33/48] Compiling Alamofire Request.swift
[34/48] Compiling Alamofire WebSocketRequest.swift
[35/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[36/48] Compiling Alamofire OperationQueue+Alamofire.swift
[37/48] Compiling Alamofire Result+Alamofire.swift
[38/48] Compiling Alamofire StringEncoding+Alamofire.swift
[39/48] Compiling Alamofire URLRequest+Alamofire.swift
[40/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[41/48] Compiling Alamofire AlamofireExtended.swift
[42/48] Compiling Alamofire AuthenticationInterceptor.swift
[43/48] Compiling Alamofire CachedResponseHandler.swift
[44/48] Compiling Alamofire Combine.swift
[45/48] Compiling Alamofire Concurrency.swift
[46/48] Compiling Alamofire EventMonitor.swift
[47/48] Compiling Alamofire MultipartFormData.swift
[48/48] Compiling Alamofire MultipartUpload.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:56:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 | /// `NetworkActivityLogger` logs requests and responses made by Alamofire.SessionManager, with an adjustable level of detail.
 52 | public class NetworkActivityLogger {
    |              `- note: class 'NetworkActivityLogger' does not conform to the 'Sendable' protocol
 53 |     // MARK: - Properties
 54 |
 55 |     /// The shared network activity logger for the system.
 56 |     public static let shared = NetworkActivityLogger()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityLogger' 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
 57 |
 58 |     /// The level of logging detail. See NetworkActivityLoggerLevel enum for possible values. .info by default.
/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:56:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 | /// `NetworkActivityLogger` logs requests and responses made by Alamofire.SessionManager, with an adjustable level of detail.
 52 | public class NetworkActivityLogger {
    |              `- note: class 'NetworkActivityLogger' does not conform to the 'Sendable' protocol
 53 |     // MARK: - Properties
 54 |
 55 |     /// The shared network activity logger for the system.
 56 |     public static let shared = NetworkActivityLogger()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityLogger' 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
 57 |
 58 |     /// The level of logging detail. See NetworkActivityLoggerLevel enum for possible values. .info by default.
/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
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
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:117:38: warning: capture of 'self' with non-sendable type 'NetworkActivityLogger' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 50 |
 51 | /// `NetworkActivityLogger` logs requests and responses made by Alamofire.SessionManager, with an adjustable level of detail.
 52 | public class NetworkActivityLogger {
    |              `- note: class 'NetworkActivityLogger' does not conform to the 'Sendable' protocol
 53 |     // MARK: - Properties
 54 |
    :
115 |             }
116 |
117 |             if let filterPredicate = self.filterPredicate, filterPredicate.evaluate(with: request) {
    |                                      `- warning: capture of 'self' with non-sendable type 'NetworkActivityLogger' in a '@Sendable' closure; this is an error in the Swift 6 language mode
118 |                 return
119 |             }
/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
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
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
/host/spi-builder-workspace/Source/NetworkActivityLogger.swift:152:38: warning: capture of 'self' with non-sendable type 'NetworkActivityLogger' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 50 |
 51 | /// `NetworkActivityLogger` logs requests and responses made by Alamofire.SessionManager, with an adjustable level of detail.
 52 | public class NetworkActivityLogger {
    |              `- note: class 'NetworkActivityLogger' does not conform to the 'Sendable' protocol
 53 |     // MARK: - Properties
 54 |
    :
150 |             }
151 |
152 |             if let filterPredicate = self.filterPredicate, filterPredicate.evaluate(with: request) {
    |                                      `- warning: capture of 'self' with non-sendable type 'NetworkActivityLogger' in a '@Sendable' closure; this is an error in the Swift 6 language mode
153 |                 return
154 |             }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/40] Compiling Alamofire WebSocketRequest.swift
[3/40] Compiling Alamofire DispatchQueue+Alamofire.swift
[4/40] Compiling Alamofire OperationQueue+Alamofire.swift
[5/40] Compiling Alamofire Result+Alamofire.swift
[6/40] Compiling Alamofire StringEncoding+Alamofire.swift
[7/45] Compiling Alamofire URLRequest+Alamofire.swift
[8/45] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[9/45] Compiling Alamofire AlamofireExtended.swift
[10/45] Compiling Alamofire AuthenticationInterceptor.swift
[11/45] Compiling Alamofire CachedResponseHandler.swift
[12/45] Compiling Alamofire NetworkReachabilityManager.swift
[13/45] Compiling Alamofire RedirectHandler.swift
[14/45] Compiling Alamofire RequestCompression.swift
[15/45] Compiling Alamofire RequestInterceptor.swift
[16/45] Compiling Alamofire ResponseSerialization.swift
[17/45] Emitting module Alamofire
[18/45] Compiling Alamofire RequestTaskMap.swift
[19/45] Compiling Alamofire Response.swift
[20/45] Compiling Alamofire Session.swift
[21/45] Compiling Alamofire SessionDelegate.swift
[22/45] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[23/45] Compiling Alamofire UploadRequest.swift
[24/45] Compiling Alamofire HTTPMethod.swift
[25/45] Compiling Alamofire Notifications.swift
[26/45] Compiling Alamofire ParameterEncoder.swift
[27/45] Compiling Alamofire ParameterEncoding.swift
[28/45] Compiling Alamofire Protected.swift
[29/45] Compiling Alamofire Request.swift
[30/45] Compiling Alamofire RetryPolicy.swift
[31/45] Compiling Alamofire ServerTrustEvaluation.swift
[32/45] Compiling Alamofire URLEncodedFormEncoder.swift
[33/45] Compiling Alamofire Validation.swift
[34/45] Compiling Alamofire resource_bundle_accessor.swift
[35/45] Compiling Alamofire Combine.swift
[36/45] Compiling Alamofire Concurrency.swift
[37/45] Compiling Alamofire EventMonitor.swift
[38/45] Compiling Alamofire MultipartFormData.swift
[39/45] Compiling Alamofire MultipartUpload.swift
[40/45] Compiling Alamofire Alamofire.swift
[41/45] Compiling Alamofire AFError.swift
[42/45] Compiling Alamofire DataRequest.swift
[43/45] Compiling Alamofire DataStreamRequest.swift
[44/45] Compiling Alamofire DownloadRequest.swift
[45/45] Compiling Alamofire HTTPHeaders.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/48] 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,
[48/48] 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
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
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
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
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
BUILD FAILURE 6.1 android