The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftRestRequests, reference 1.7.1 (8c1c54), with Swift 6.1 for Linux on 17 Nov 2025 19:53:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkausch/SwiftRestRequests.git
Reference: 1.7.1
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/tkausch/SwiftRestRequests
 * tag               1.7.1      -> FETCH_HEAD
HEAD is now at 8c1c54a Merge pull request #24 from tkausch/sendableConformity
Cloned https://github.com/tkausch/SwiftRestRequests.git
Revision (git rev-parse @):
8c1c54a571be7e7ac7b49951b1355b29c2c5f7bc
SUCCESS checkout https://github.com/tkausch/SwiftRestRequests.git at 1.7.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tkausch/SwiftRestRequests.git
https://github.com/tkausch/SwiftRestRequests.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    },
    {
      "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" : "SwiftRestRequests",
  "name" : "SwiftRestRequests",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftRestRequests",
      "targets" : [
        "SwiftRestRequests"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRestRequestsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRestRequestsTests",
      "path" : "Tests/SwiftRestRequestsTests",
      "sources" : [
        "AbstractRestApiCallerTests.swift",
        "RestApiCallerSecurityTests.swift",
        "RestApiCallerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftRestRequests"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRestRequests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRestRequests",
      "path" : "Sources/SwiftRestRequests",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "SwiftRestRequests"
      ],
      "sources" : [
        "Deserializer.swift",
        "RestApiCaller.swift",
        "RestError.swift",
        "RestOptions.swift",
        "http/HTTPStatusCode.swift",
        "http/HTTPUtil.swift",
        "interceptors/LogNetworkInterceptor.swift",
        "linux/URLSession+Linux.swift",
        "logging/Logger+Extension.swift",
        "logging/OSLogHandler.swift",
        "security/AuthorizerInterceptor.swift",
        "security/CertificateCAPinning.swift",
        "security/PublicKeyServerPinning.swift",
        "security/TrustValidation.swift",
        "security/URLRequestAuthorizer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:808cb2b2a6cec76654a3acbd283c6c2205bc60d2b29562c95b9f5147612f6d32
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-log
Fetching https://github.com/apple/swift-docc-plugin
[1/2158] Fetching swift-docc-plugin
[217/6556] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log from cache (0.42s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.43s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.4 (0.96s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (2.59s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3578] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.80s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.51s)
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.5
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
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.4
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/10] Compiling Logging LogHandler.swift
[7/10] Compiling Logging MetadataProvider.swift
[8/10] Emitting module Logging
[9/10] Compiling Logging Locks.swift
[10/10] Compiling Logging Logging.swift
[12/26] Compiling SwiftRestRequests Logger+Extension.swift
[13/26] Compiling SwiftRestRequests OSLogHandler.swift
[14/26] Compiling SwiftRestRequests PublicKeyServerPinning.swift
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:31:59: error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
   |                                                           `- error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
33 |             return nil
FoundationNetworking.URLProtectionSpace.serverTrust:3:14: note: 'serverTrust' has been explicitly marked unavailable here
1 | class URLProtectionSpace {
2 | @available(*, unavailable, message: "swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.")
3 |   public var serverTrust: Any? { get }}
  |              `- note: 'serverTrust' has been explicitly marked unavailable here
4 |
[15/26] Compiling SwiftRestRequests TrustValidation.swift
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:31:59: error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
   |                                                           `- error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
33 |             return nil
FoundationNetworking.URLProtectionSpace.serverTrust:3:14: note: 'serverTrust' has been explicitly marked unavailable here
1 | class URLProtectionSpace {
2 | @available(*, unavailable, message: "swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.")
3 |   public var serverTrust: Any? { get }}
  |              `- note: 'serverTrust' has been explicitly marked unavailable here
4 |
[16/27] Compiling SwiftRestRequests AuthorizerInterceptor.swift
[17/27] Compiling SwiftRestRequests CertificateCAPinning.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/27] Compiling SwiftRestRequests Deserializer.swift
[19/27] Compiling SwiftRestRequests RestApiCaller.swift
[20/27] Emitting module SwiftRestRequests
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
[21/27] Compiling SwiftRestRequests RestError.swift
[22/27] Compiling SwiftRestRequests RestOptions.swift
[23/27] Compiling SwiftRestRequests LogNetworkInterceptor.swift
[24/27] Compiling SwiftRestRequests URLSession+Linux.swift
[25/27] Compiling SwiftRestRequests HTTPStatusCode.swift
[26/27] Compiling SwiftRestRequests HTTPUtil.swift
[27/27] Compiling SwiftRestRequests URLRequestAuthorizer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:808cb2b2a6cec76654a3acbd283c6c2205bc60d2b29562c95b9f5147612f6d32
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/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging LogHandler.swift
[6/8] Compiling Logging Locks.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Logging.swift
[10/24] Compiling SwiftRestRequests AuthorizerInterceptor.swift
[11/24] Compiling SwiftRestRequests CertificateCAPinning.swift
[12/25] Compiling SwiftRestRequests PublicKeyServerPinning.swift
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:31:59: error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
   |                                                           `- error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
33 |             return nil
FoundationNetworking.URLProtectionSpace.serverTrust:3:14: note: 'serverTrust' has been explicitly marked unavailable here
1 | class URLProtectionSpace {
2 | @available(*, unavailable, message: "swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.")
3 |   public var serverTrust: Any? { get }}
  |              `- note: 'serverTrust' has been explicitly marked unavailable here
4 |
[13/25] Compiling SwiftRestRequests TrustValidation.swift
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:31:59: error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
   |                                                           `- error: 'serverTrust' is unavailable: swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
33 |             return nil
FoundationNetworking.URLProtectionSpace.serverTrust:3:14: note: 'serverTrust' has been explicitly marked unavailable here
1 | class URLProtectionSpace {
2 | @available(*, unavailable, message: "swift-corelibs-foundation does not support methods of authentication that rely on the Darwin Security framework.")
3 |   public var serverTrust: Any? { get }}
  |              `- note: 'serverTrust' has been explicitly marked unavailable here
4 |
[14/25] Compiling SwiftRestRequests Logger+Extension.swift
[15/25] Compiling SwiftRestRequests OSLogHandler.swift
[16/25] Compiling SwiftRestRequests HTTPStatusCode.swift
[17/25] Compiling SwiftRestRequests HTTPUtil.swift
[18/25] Compiling SwiftRestRequests LogNetworkInterceptor.swift
[19/25] Compiling SwiftRestRequests URLSession+Linux.swift
[20/25] Compiling SwiftRestRequests URLRequestAuthorizer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/25] Compiling SwiftRestRequests Deserializer.swift
[22/25] Compiling SwiftRestRequests RestApiCaller.swift
[23/25] Compiling SwiftRestRequests RestError.swift
[24/25] Compiling SwiftRestRequests RestOptions.swift
[25/25] Emitting module SwiftRestRequests
/host/spi-builder-workspace/Sources/SwiftRestRequests/security/TrustValidation.swift:30:99: error: cannot find type 'SecTrust' in scope
28 |
29 | enum TrustValidation {
30 |     static func extractServerTrust(from challenge: URLAuthenticationChallenge, logger: Logger) -> SecTrust? {
   |                                                                                                   `- error: cannot find type 'SecTrust' in scope
31 |         guard let serverTrust = challenge.protectionSpace.serverTrust else {
32 |             logger.error("Security: serverTrust is missing; cancelling authentication challenge.")
BUILD FAILURE 6.1 linux