Build Information
Failed to build CertificatePinner, reference main (ff0399
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 15:12:26 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: main
Initialized empty Git repository in /Users/admin/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
========================================
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.73s)
Creating working copy for https://github.com/micho233/certificate-pinner.git
Working copy of https://github.com/micho233/certificate-pinner.git resolved at main (ff03993)
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 URLAuthenticationChallenge+Extension.swift
[4/12] Compiling CertificatePinner RequestScheme.swift
[5/12] Compiling CertificatePinner URLProtectionSpace+Extension.swift
[6/12] Compiling CertificatePinner SecCertificate+Extension.swift
[7/12] Compiling CertificatePinner CertificatePinner.swift
[8/12] Compiling CertificatePinner SecKey+Extension.swift
[9/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 {
[10/12] Compiling CertificatePinner Asn1Header.swift
[11/12] Emitting module CertificatePinner
[12/12] Compiling CertificatePinner Data+Extension.swift
BUILD FAILURE 6.0 macosSpm