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 with Swift 5.9 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.34.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/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $workDir
https://github.com/micho233/certificate-pinner.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/9] Compiling CertificatePinner SecCertificate+Extension.swift
[2/9] Compiling CertificatePinner URLAuthenticationChallenge+Extension.swift
[3/9] Compiling CertificatePinner SecTrust+Extension.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:36:26: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
            let result = SecTrustEvaluateWithError(self, nil)
                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:36:26: note: add 'if #available' version check
            let result = SecTrustEvaluateWithError(self, nil)
                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:34:10: note: add @available attribute to enclosing instance method
    func canEvaluate() -> Bool {
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:10:8: note: add @available attribute to enclosing extension
public extension SecTrust {
       ^
[4/10] Compiling CertificatePinner URLProtectionSpace+Extension.swift
[5/10] Compiling CertificatePinner Data+Extension.swift
[6/10] Compiling CertificatePinner Asn1Header.swift
[7/10] Compiling CertificatePinner CertificatePinner.swift
[8/10] Emitting module CertificatePinner
[9/10] Compiling CertificatePinner SecKey+Extension.swift
[10/10] Compiling CertificatePinner RequestScheme.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[1/2] Compiling CertificatePinner SecTrust+Extension.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:36:26: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
            let result = SecTrustEvaluateWithError(self, nil)
                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:36:26: note: add 'if #available' version check
            let result = SecTrustEvaluateWithError(self, nil)
                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:34:10: note: add @available attribute to enclosing instance method
    func canEvaluate() -> Bool {
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CertificatePinner/Extensions/SecTrust+Extension.swift:10:8: note: add @available attribute to enclosing extension
public extension SecTrust {
       ^
[2/2] Emitting module CertificatePinner
error: fatalError
BUILD FAILURE 5.9 macosSpm