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: main
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/micho233/certificate-pinner
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ff03993 Create swift.yml
Cloned https://github.com/micho233/certificate-pinner.git
Revision (git rev-parse @):
ff03993bdd8a592dac8c79b77ceaefcc214667b0
SUCCESS checkout https://github.com/micho233/certificate-pinner.git at main
========================================
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 SecTrust+Extension.swift
/Users/builder/builds/UKfvDsi8u/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/UKfvDsi8u/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/UKfvDsi8u/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/UKfvDsi8u/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/10] Compiling CertificatePinner URLAuthenticationChallenge+Extension.swift
[3/10] Compiling CertificatePinner SecCertificate+Extension.swift
[4/10] Compiling CertificatePinner Data+Extension.swift
[5/10] Compiling CertificatePinner URLProtectionSpace+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] Emitting module CertificatePinner
[2/2] Compiling CertificatePinner SecTrust+Extension.swift
/Users/builder/builds/UKfvDsi8u/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/UKfvDsi8u/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/UKfvDsi8u/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/UKfvDsi8u/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 {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm