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 CertificatePinner, reference 1.0.0 (a7596b), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 15:12:31 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/micho233/certificate-pinner.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/micho233/certificate-pinner
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a7596b8 Release 1.0.0
Cloned https://github.com/micho233/certificate-pinner.git
Revision (git rev-parse @):
a7596b88bbb943be942ad7f65ad7f3d258ce868d
SUCCESS checkout https://github.com/micho233/certificate-pinner.git at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "certificate-pinner",
      "name": "CertificatePinner",
      "url": "https://github.com/micho233/certificate-pinner.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/certificate-pinner",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/micho233/certificate-pinner.git
[1/41] Fetching certificate-pinner
Fetched https://github.com/micho233/certificate-pinner.git from cache (0.75s)
Creating working copy for https://github.com/micho233/certificate-pinner.git
Working copy of https://github.com/micho233/certificate-pinner.git resolved at 1.0.0 (a7596b8)
warning: '.resolve-product-dependencies': dependency 'certificate-pinner' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/micho233/certificate-pinner.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling CertificatePinner SecTrust+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:36:26: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
 8 | import Foundation
 9 |
10 | public extension SecTrust {
   |        `- note: add @available attribute to enclosing extension
11 |     var certificateChain: [SecCertificate] {
12 |         if #available(iOS 15.0, macOS 12.0, *) {
   :
32 |     }
33 |
34 |     func canEvaluate() -> Bool {
   |          `- note: add @available attribute to enclosing instance method
35 |         if #available(iOS 12.0, *) {
36 |             let result = SecTrustEvaluateWithError(self, nil)
   |                          |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
   |                          `- note: add 'if #available' version check
37 |             return result
38 |         } else {
[4/12] Compiling CertificatePinner SecCertificate+Extension.swift
[5/12] Compiling CertificatePinner URLProtectionSpace+Extension.swift
[6/12] Compiling CertificatePinner RequestScheme.swift
[7/12] Compiling CertificatePinner URLAuthenticationChallenge+Extension.swift
[8/12] Compiling CertificatePinner SecKey+Extension.swift
[9/12] Compiling CertificatePinner CertificatePinner.swift
[10/12] Compiling CertificatePinner Data+Extension.swift
[11/12] Compiling CertificatePinner Asn1Header.swift
[12/12] Emitting module CertificatePinner
BUILD FAILURE 6.0 macosSpm