Build Information
Failed to build FastSpringStore, reference 2.1.0 (01c515
), with Swift 6.0 for Linux on 4 Nov 2024 23:46:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/FastSpringStore.git
Reference: 2.1.0
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/CleanCocoa/FastSpringStore
* tag 2.1.0 -> FETCH_HEAD
HEAD is now at 01c5151 add Privacy Manifest files
Cloned https://github.com/CleanCocoa/FastSpringStore.git
Revision (git rev-parse @):
01c515110fb69d3662bb1a5d736b69483dea612d
SUCCESS checkout https://github.com/CleanCocoa/FastSpringStore.git at 2.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/CleanCocoa/FastSpringStore.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/CleanCocoa/TrialLicensing.git
[1/745] Fetching triallicensing
Fetched https://github.com/CleanCocoa/TrialLicensing.git from cache (0.29s)
Computing version for https://github.com/CleanCocoa/TrialLicensing.git
Computed https://github.com/CleanCocoa/TrialLicensing.git at 3.4.0 (2.90s)
Fetching https://github.com/glebd/cocoafob
[1/1700] Fetching cocoafob
Fetched https://github.com/glebd/cocoafob from cache (0.24s)
Computing version for https://github.com/glebd/cocoafob
Computed https://github.com/glebd/cocoafob at 2.4.0 (1.30s)
Creating working copy for https://github.com/CleanCocoa/TrialLicensing.git
Working copy of https://github.com/CleanCocoa/TrialLicensing.git resolved at 3.4.0
Creating working copy for https://github.com/glebd/cocoafob
Working copy of https://github.com/glebd/cocoafob resolved at 2.4.0
[879/1998034] Downloading https://github.com/DivineDominion/FsprgEmbeddedStoreMac/releases/download/2.0.0/FsprgEmbeddedStore.xcframework.zip
Downloading binary artifact https://github.com/DivineDominion/FsprgEmbeddedStoreMac/releases/download/2.0.0/FsprgEmbeddedStore.xcframework.zip
Downloaded https://github.com/DivineDominion/FsprgEmbeddedStoreMac/releases/download/2.0.0/FsprgEmbeddedStore.xcframework.zip (0.75s)
Building for debugging...
[0/14] Copying PrivacyInfo.xcprivacy
[0/14] Write sources
[0/14] Copying PrivacyInfo.xcprivacy
[0/14] Write sources
[0/14] Copying FastSpringStoreWindowController.xib
[10/14] Write swift-version-24593BA9C3E375BF.txt
[12/39] Compiling FastSpringStore FastSpringStoreViewController.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[13/39] Compiling FastSpringStore FastSpringStoreWindowController.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[14/39] Compiling FastSpringStore NSView+constrainToSuperviewBounds.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[15/39] Compiling FastSpringStore NSLayoutConstraint+prioritized.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[16/40] Compiling FastSpringStore FastSpringStoreJavaScriptBridge.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[17/40] Compiling CocoaFob CocoaFobError.swift
[18/40] Compiling CocoaFob LicenseGenerator.swift
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:16:16: error: cannot find type 'SecKey' in scope
14 | public struct LicenseGenerator {
15 |
16 | var privKey: SecKey
| `- error: cannot find type 'SecKey' in scope
17 |
18 | // MARK: - Initialization
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:76:88: error: cannot find type 'SecGroupTransform' in scope
74 | // MARK: - Utility functions
75 |
76 | fileprivate func connectTransforms(_ signer: SecTransform, encoder: SecTransform) -> SecGroupTransform? {
| `- error: cannot find type 'SecGroupTransform' in scope
77 | guard let groupTransform = getGroupTransform() else { return nil }
78 | return SecTransformConnectTransforms(signer, kSecTransformOutputAttributeName, encoder, kSecTransformInputAttributeName, groupTransform, nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:76:48: error: cannot find type 'SecTransform' in scope
74 | // MARK: - Utility functions
75 |
76 | fileprivate func connectTransforms(_ signer: SecTransform, encoder: SecTransform) -> SecGroupTransform? {
| `- error: cannot find type 'SecTransform' in scope
77 | guard let groupTransform = getGroupTransform() else { return nil }
78 | return SecTransformConnectTransforms(signer, kSecTransformOutputAttributeName, encoder, kSecTransformInputAttributeName, groupTransform, nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:76:71: error: cannot find type 'SecTransform' in scope
74 | // MARK: - Utility functions
75 |
76 | fileprivate func connectTransforms(_ signer: SecTransform, encoder: SecTransform) -> SecGroupTransform? {
| `- error: cannot find type 'SecTransform' in scope
77 | guard let groupTransform = getGroupTransform() else { return nil }
78 | return SecTransformConnectTransforms(signer, kSecTransformOutputAttributeName, encoder, kSecTransformInputAttributeName, groupTransform, nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:81:43: error: cannot find type 'SecGroupTransform' in scope
79 | }
80 |
81 | fileprivate func getGroupTransform() -> SecGroupTransform? {
| `- error: cannot find type 'SecGroupTransform' in scope
82 | return SecTransformCreateGroupTransform()
83 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:89:39: error: cannot find type 'SecTransform' in scope
87 | }
88 |
89 | func getSigner(_ nameData: Data) -> SecTransform? {
| `- error: cannot find type 'SecTransform' in scope
90 | do {
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:100:36: error: cannot find type 'SecTransform' in scope
98 | }
99 |
100 | fileprivate func getEncoder() -> SecTransform? {
| `- error: cannot find type 'SecTransform' in scope
101 | do {
102 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:28:18: error: cannot find 'SecItemImportExportKeyParameters' in scope
26 | let emptyString = "" as NSString
27 | let password = Unmanaged.passUnretained(emptyString as AnyObject)
28 | var params = SecItemImportExportKeyParameters(
| `- error: cannot find 'SecItemImportExportKeyParameters' in scope
29 | version: UInt32(bitPattern: SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION),
30 | flags: SecKeyImportExportFlags.importOnlyOne,
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:29:35: error: cannot find 'SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION' in scope
27 | let password = Unmanaged.passUnretained(emptyString as AnyObject)
28 | var params = SecItemImportExportKeyParameters(
29 | version: UInt32(bitPattern: SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION),
| `- error: cannot find 'SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION' in scope
30 | flags: SecKeyImportExportFlags.importOnlyOne,
31 | passphrase: password,
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:30:14: error: cannot find 'SecKeyImportExportFlags' in scope
28 | var params = SecItemImportExportKeyParameters(
29 | version: UInt32(bitPattern: SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION),
30 | flags: SecKeyImportExportFlags.importOnlyOne,
| `- error: cannot find 'SecKeyImportExportFlags' in scope
31 | passphrase: password,
32 | alertTitle: Unmanaged.passUnretained(emptyString),
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:34:18: error: 'nil' requires a contextual type
32 | alertTitle: Unmanaged.passUnretained(emptyString),
33 | alertPrompt: Unmanaged.passUnretained(emptyString),
34 | accessRef: nil,
| `- error: 'nil' requires a contextual type
35 | keyUsage: nil,
36 | keyAttributes: nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:35:17: error: 'nil' requires a contextual type
33 | alertPrompt: Unmanaged.passUnretained(emptyString),
34 | accessRef: nil,
35 | keyUsage: nil,
| `- error: 'nil' requires a contextual type
36 | keyAttributes: nil)
37 | var keyFormat = SecExternalFormat.formatPEMSequence
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:36:22: error: 'nil' requires a contextual type
34 | accessRef: nil,
35 | keyUsage: nil,
36 | keyAttributes: nil)
| `- error: 'nil' requires a contextual type
37 | var keyFormat = SecExternalFormat.formatPEMSequence
38 | var keyType = SecExternalItemType.itemTypePrivateKey
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:37:21: error: cannot find 'SecExternalFormat' in scope
35 | keyUsage: nil,
36 | keyAttributes: nil)
37 | var keyFormat = SecExternalFormat.formatPEMSequence
| `- error: cannot find 'SecExternalFormat' in scope
38 | var keyType = SecExternalItemType.itemTypePrivateKey
39 | guard let keyData = privateKeyPEM.data(using: String.Encoding.utf8) else { return nil }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:38:19: error: cannot find 'SecExternalItemType' in scope
36 | keyAttributes: nil)
37 | var keyFormat = SecExternalFormat.formatPEMSequence
38 | var keyType = SecExternalItemType.itemTypePrivateKey
| `- error: cannot find 'SecExternalItemType' in scope
39 | guard let keyData = privateKeyPEM.data(using: String.Encoding.utf8) else { return nil }
40 | let keyBytes = [UInt8](keyData)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:41:21: error: cannot find 'CFDataCreate' in scope
39 | guard let keyData = privateKeyPEM.data(using: String.Encoding.utf8) else { return nil }
40 | let keyBytes = [UInt8](keyData)
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
| `- error: cannot find 'CFDataCreate' in scope
42 | var importArray: CFArray? = nil
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:41:34: error: 'nil' requires a contextual type
39 | guard let keyData = privateKeyPEM.data(using: String.Encoding.utf8) else { return nil }
40 | let keyBytes = [UInt8](keyData)
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
| `- error: 'nil' requires a contextual type
42 | var importArray: CFArray? = nil
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:42:22: error: cannot find type 'CFArray' in scope
40 | let keyBytes = [UInt8](keyData)
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
42 | var importArray: CFArray? = nil
| `- error: cannot find type 'CFArray' in scope
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
44 | withUnsafeMutablePointer(to: &keyType, { pKeyType in
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:45:9: error: cannot find 'SecItemImport' in scope
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
44 | withUnsafeMutablePointer(to: &keyType, { pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: cannot find 'SecItemImport' in scope
46 | })
47 | })
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:45:61: error: cannot find 'SecItemImportExportFlags' in scope
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
44 | withUnsafeMutablePointer(to: &keyType, { pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: cannot find 'SecItemImportExportFlags' in scope
46 | })
47 | })
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:43:76: error: cannot find type 'OSStatus' in scope
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
42 | var importArray: CFArray? = nil
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
| `- error: cannot find type 'OSStatus' in scope
44 | withUnsafeMutablePointer(to: &keyType, { pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:45:34: error: 'nil' requires a contextual type
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
44 | withUnsafeMutablePointer(to: &keyType, { pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: 'nil' requires a contextual type
46 | })
47 | })
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:45:109: error: 'nil' requires a contextual type
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat, {pKeyFormat -> OSStatus in
44 | withUnsafeMutablePointer(to: &keyType, { pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: 'nil' requires a contextual type
46 | })
47 | })
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:48:23: error: cannot find 'errSecSuccess' in scope
46 | })
47 | })
48 | guard osStatus == errSecSuccess, importArray != nil else { return nil }
| `- error: cannot find 'errSecSuccess' in scope
49 | let items = importArray! as NSArray
50 | guard items.count > 0 else { return nil }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:51:33: error: cannot find type 'SecKey' in scope
49 | let items = importArray! as NSArray
50 | guard items.count > 0 else { return nil }
51 | self.privKey = items[0] as! SecKey
| `- error: cannot find type 'SecKey' in scope
52 | }
53 |
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:22:78: error: cannot find type 'CFError' in scope
20 | }
21 |
22 | func cfTry<T>(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> T?) throws -> T {
| `- error: cannot find type 'CFError' in scope
23 | var cferr: Unmanaged<CFError>? = nil
24 | if let result = cfBlock(&cferr) {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:68:61: error: cannot find 'SecTransformExecute' in scope
66 | guard let encoder = getEncoder() else { throw CocoaFobError.error }
67 | guard let group = connectTransforms(signer, encoder: encoder) else { throw CocoaFobError.error }
68 | let regDataCF = try cfTry(CocoaFobError.error) { return SecTransformExecute(group, $0) }
| `- error: cannot find 'SecTransformExecute' in scope
69 | guard let regData = regDataCF as? Data else { throw CocoaFobError.error }
70 | guard let reg = String(data: regData, encoding: .utf8) else { throw CocoaFobError.error }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:75: error: cannot find type 'CFError' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'CFError' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:90: error: cannot find type 'DarwinBoolean' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'DarwinBoolean' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:91:47: error: cannot find 'SecSignTransformCreate' in scope
89 | func getSigner(_ nameData: Data) -> SecTransform? {
90 | do {
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
| `- error: cannot find 'SecSignTransformCreate' in scope
92 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:92:42: error: cannot find 'SecTransformSetAttribute' in scope
90 | do {
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
92 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
| `- error: cannot find 'SecTransformSetAttribute' in scope
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
94 | return signer
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:92:75: error: cannot find 'kSecTransformInputAttributeName' in scope
90 | do {
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
92 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
| `- error: cannot find 'kSecTransformInputAttributeName' in scope
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
94 | return signer
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:93:42: error: cannot find 'SecTransformSetAttribute' in scope
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
92 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
| `- error: cannot find 'SecTransformSetAttribute' in scope
94 | return signer
95 | } catch {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:93:75: error: cannot find 'kSecDigestTypeAttribute' in scope
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
92 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
| `- error: cannot find 'kSecDigestTypeAttribute' in scope
94 | return signer
95 | } catch {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:93:100: error: cannot find 'kSecDigestSHA1' in scope
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
92 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(signer, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
| `- error: cannot find 'kSecDigestSHA1' in scope
94 | return signer
95 | } catch {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:102:48: error: cannot find 'SecEncodeTransformCreate' in scope
100 | fileprivate func getEncoder() -> SecTransform? {
101 | do {
102 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
| `- error: cannot find 'SecEncodeTransformCreate' in scope
103 | return encoder
104 | } catch {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:102:73: error: cannot find 'kSecBase32Encoding' in scope
100 | fileprivate func getEncoder() -> SecTransform? {
101 | do {
102 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
| `- error: cannot find 'kSecBase32Encoding' in scope
103 | return encoder
104 | } catch {
[19/40] Compiling CocoaFob CFUtil.swift
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:75: error: cannot find type 'CFError' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'CFError' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:90: error: cannot find type 'DarwinBoolean' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'DarwinBoolean' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:22:78: error: cannot find type 'CFError' in scope
20 | }
21 |
22 | func cfTry<T>(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> T?) throws -> T {
| `- error: cannot find type 'CFError' in scope
23 | var cferr: Unmanaged<CFError>? = nil
24 | if let result = cfBlock(&cferr) {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:12:24: error: cannot find type 'CFError' in scope
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
12 | var cferr: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
13 | if !cfBlock(&cferr).boolValue {
14 | if let cferr = cferr?.takeRetainedValue() {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:23:24: error: cannot find type 'CFError' in scope
21 |
22 | func cfTry<T>(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> T?) throws -> T {
23 | var cferr: Unmanaged<CFError>? = nil
| `- error: cannot find type 'CFError' in scope
24 | if let result = cfBlock(&cferr) {
25 | return result
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/40] Emitting module CocoaFob
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:75: error: cannot find type 'CFError' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'CFError' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:90: error: cannot find type 'DarwinBoolean' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'DarwinBoolean' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:22:78: error: cannot find type 'CFError' in scope
20 | }
21 |
22 | func cfTry<T>(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> T?) throws -> T {
| `- error: cannot find type 'CFError' in scope
23 | var cferr: Unmanaged<CFError>? = nil
24 | if let result = cfBlock(&cferr) {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:16:16: error: cannot find type 'SecKey' in scope
14 | public struct LicenseGenerator {
15 |
16 | var privKey: SecKey
| `- error: cannot find type 'SecKey' in scope
17 |
18 | // MARK: - Initialization
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:76:88: error: cannot find type 'SecGroupTransform' in scope
74 | // MARK: - Utility functions
75 |
76 | fileprivate func connectTransforms(_ signer: SecTransform, encoder: SecTransform) -> SecGroupTransform? {
| `- error: cannot find type 'SecGroupTransform' in scope
77 | guard let groupTransform = getGroupTransform() else { return nil }
78 | return SecTransformConnectTransforms(signer, kSecTransformOutputAttributeName, encoder, kSecTransformInputAttributeName, groupTransform, nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:76:48: error: cannot find type 'SecTransform' in scope
74 | // MARK: - Utility functions
75 |
76 | fileprivate func connectTransforms(_ signer: SecTransform, encoder: SecTransform) -> SecGroupTransform? {
| `- error: cannot find type 'SecTransform' in scope
77 | guard let groupTransform = getGroupTransform() else { return nil }
78 | return SecTransformConnectTransforms(signer, kSecTransformOutputAttributeName, encoder, kSecTransformInputAttributeName, groupTransform, nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:76:71: error: cannot find type 'SecTransform' in scope
74 | // MARK: - Utility functions
75 |
76 | fileprivate func connectTransforms(_ signer: SecTransform, encoder: SecTransform) -> SecGroupTransform? {
| `- error: cannot find type 'SecTransform' in scope
77 | guard let groupTransform = getGroupTransform() else { return nil }
78 | return SecTransformConnectTransforms(signer, kSecTransformOutputAttributeName, encoder, kSecTransformInputAttributeName, groupTransform, nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:81:43: error: cannot find type 'SecGroupTransform' in scope
79 | }
80 |
81 | fileprivate func getGroupTransform() -> SecGroupTransform? {
| `- error: cannot find type 'SecGroupTransform' in scope
82 | return SecTransformCreateGroupTransform()
83 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:89:39: error: cannot find type 'SecTransform' in scope
87 | }
88 |
89 | func getSigner(_ nameData: Data) -> SecTransform? {
| `- error: cannot find type 'SecTransform' in scope
90 | do {
91 | let signer = try cfTry(.error) { return SecSignTransformCreate(self.privKey, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseGenerator.swift:100:36: error: cannot find type 'SecTransform' in scope
98 | }
99 |
100 | fileprivate func getEncoder() -> SecTransform? {
| `- error: cannot find type 'SecTransform' in scope
101 | do {
102 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:16:15: error: cannot find type 'SecKey' in scope
14 | public struct LicenseVerifier {
15 |
16 | var pubKey: SecKey
| `- error: cannot find type 'SecKey' in scope
17 |
18 | // MARK: - Initialization
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:85:60: error: cannot find type 'SecTransform' in scope
83 |
84 | // MARK: - Helper functions
85 | fileprivate func getEncoder(_ signature: Data) throws -> SecTransform {
| `- error: cannot find type 'SecTransform' in scope
86 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
87 | let _ = try cfTry(.error) { return SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, signature as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:91:58: error: cannot find type 'SecTransform' in scope
89 | }
90 |
91 | fileprivate func getDecoder(_ keyData: Data) throws -> SecTransform {
| `- error: cannot find type 'SecTransform' in scope
92 | let decoder = try cfTry(.error) { return SecDecodeTransformCreate(kSecBase32Encoding, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(decoder, kSecTransformInputAttributeName, keyData as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:97:96: error: cannot find type 'SecTransform' in scope
95 | }
96 |
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
| `- error: cannot find type 'SecTransform' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:97:45: error: cannot find type 'SecKey' in scope
95 | }
96 |
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
| `- error: cannot find type 'SecKey' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
[21/40] Compiling Trial TrialPeriod.swift
[22/40] Compiling Trial TrialWriter.swift
[23/40] Compiling Trial UserDefaultsTrialPeriodReader.swift
[24/40] Compiling Trial TrialTimer.swift
[25/40] Compiling Trial TrialProvider.swift
[26/41] Compiling FastSpringStore FastSpringStore.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/41] Emitting module FastSpringStore
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[28/41] Compiling FastSpringStore DynamicAppearanceWebView.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[29/41] Compiling FastSpringStore FastSpringPurchase.swift
/host/spi-builder-workspace/Sources/FastSpringStore/DynamicAppearanceWebView.swift:1:8: error: no such module 'Cocoa'
1 | import Cocoa
| `- error: no such module 'Cocoa'
2 | import WebKit
3 |
[30/41] Compiling CocoaFob LicenseVerifier.swift
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:16:15: error: cannot find type 'SecKey' in scope
14 | public struct LicenseVerifier {
15 |
16 | var pubKey: SecKey
| `- error: cannot find type 'SecKey' in scope
17 |
18 | // MARK: - Initialization
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:85:60: error: cannot find type 'SecTransform' in scope
83 |
84 | // MARK: - Helper functions
85 | fileprivate func getEncoder(_ signature: Data) throws -> SecTransform {
| `- error: cannot find type 'SecTransform' in scope
86 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
87 | let _ = try cfTry(.error) { return SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, signature as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:91:58: error: cannot find type 'SecTransform' in scope
89 | }
90 |
91 | fileprivate func getDecoder(_ keyData: Data) throws -> SecTransform {
| `- error: cannot find type 'SecTransform' in scope
92 | let decoder = try cfTry(.error) { return SecDecodeTransformCreate(kSecBase32Encoding, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(decoder, kSecTransformInputAttributeName, keyData as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:97:96: error: cannot find type 'SecTransform' in scope
95 | }
96 |
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
| `- error: cannot find type 'SecTransform' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:97:45: error: cannot find type 'SecKey' in scope
95 | }
96 |
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
| `- error: cannot find type 'SecKey' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:28:18: error: cannot find 'SecItemImportExportKeyParameters' in scope
26 | let emptyString = "" as NSString
27 | let password = Unmanaged.passUnretained(emptyString as AnyObject)
28 | var params = SecItemImportExportKeyParameters(
| `- error: cannot find 'SecItemImportExportKeyParameters' in scope
29 | version: UInt32(bitPattern: SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION),
30 | flags: SecKeyImportExportFlags.importOnlyOne,
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:29:35: error: cannot find 'SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION' in scope
27 | let password = Unmanaged.passUnretained(emptyString as AnyObject)
28 | var params = SecItemImportExportKeyParameters(
29 | version: UInt32(bitPattern: SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION),
| `- error: cannot find 'SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION' in scope
30 | flags: SecKeyImportExportFlags.importOnlyOne,
31 | passphrase: password,
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:30:14: error: cannot find 'SecKeyImportExportFlags' in scope
28 | var params = SecItemImportExportKeyParameters(
29 | version: UInt32(bitPattern: SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION),
30 | flags: SecKeyImportExportFlags.importOnlyOne,
| `- error: cannot find 'SecKeyImportExportFlags' in scope
31 | passphrase: password,
32 | alertTitle: Unmanaged.passUnretained(emptyString),
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:34:18: error: 'nil' requires a contextual type
32 | alertTitle: Unmanaged.passUnretained(emptyString),
33 | alertPrompt: Unmanaged.passUnretained(emptyString),
34 | accessRef: nil,
| `- error: 'nil' requires a contextual type
35 | keyUsage: nil,
36 | keyAttributes: nil)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:35:17: error: 'nil' requires a contextual type
33 | alertPrompt: Unmanaged.passUnretained(emptyString),
34 | accessRef: nil,
35 | keyUsage: nil,
| `- error: 'nil' requires a contextual type
36 | keyAttributes: nil)
37 | var keyFormat = SecExternalFormat.formatPEMSequence
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:36:22: error: 'nil' requires a contextual type
34 | accessRef: nil,
35 | keyUsage: nil,
36 | keyAttributes: nil)
| `- error: 'nil' requires a contextual type
37 | var keyFormat = SecExternalFormat.formatPEMSequence
38 | var keyType = SecExternalItemType.itemTypePublicKey
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:37:21: error: cannot find 'SecExternalFormat' in scope
35 | keyUsage: nil,
36 | keyAttributes: nil)
37 | var keyFormat = SecExternalFormat.formatPEMSequence
| `- error: cannot find 'SecExternalFormat' in scope
38 | var keyType = SecExternalItemType.itemTypePublicKey
39 | guard let keyData = publicKeyPEM.data(using: String.Encoding.utf8) else { return nil }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:38:19: error: cannot find 'SecExternalItemType' in scope
36 | keyAttributes: nil)
37 | var keyFormat = SecExternalFormat.formatPEMSequence
38 | var keyType = SecExternalItemType.itemTypePublicKey
| `- error: cannot find 'SecExternalItemType' in scope
39 | guard let keyData = publicKeyPEM.data(using: String.Encoding.utf8) else { return nil }
40 | let keyBytes = [UInt8](keyData)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:41:21: error: cannot find 'CFDataCreate' in scope
39 | guard let keyData = publicKeyPEM.data(using: String.Encoding.utf8) else { return nil }
40 | let keyBytes = [UInt8](keyData)
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
| `- error: cannot find 'CFDataCreate' in scope
42 | var importArray: CFArray? = nil
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:41:34: error: 'nil' requires a contextual type
39 | guard let keyData = publicKeyPEM.data(using: String.Encoding.utf8) else { return nil }
40 | let keyBytes = [UInt8](keyData)
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
| `- error: 'nil' requires a contextual type
42 | var importArray: CFArray? = nil
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:42:22: error: cannot find type 'CFArray' in scope
40 | let keyBytes = [UInt8](keyData)
41 | let keyDataCF = CFDataCreate(nil, keyBytes, keyData.count)!
42 | var importArray: CFArray? = nil
| `- error: cannot find type 'CFArray' in scope
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
44 | withUnsafeMutablePointer(to: &keyType, {pKeyType in
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:45:9: error: cannot find 'SecItemImport' in scope
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
44 | withUnsafeMutablePointer(to: &keyType, {pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: cannot find 'SecItemImport' in scope
46 | })
47 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:45:61: error: cannot find 'SecItemImportExportFlags' in scope
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
44 | withUnsafeMutablePointer(to: &keyType, {pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: cannot find 'SecItemImportExportFlags' in scope
46 | })
47 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:45:34: error: 'nil' requires a contextual type
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
44 | withUnsafeMutablePointer(to: &keyType, {pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: 'nil' requires a contextual type
46 | })
47 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:45:109: error: 'nil' requires a contextual type
43 | let osStatus = withUnsafeMutablePointer(to: &keyFormat) { pKeyFormat in
44 | withUnsafeMutablePointer(to: &keyType, {pKeyType in
45 | SecItemImport(keyDataCF, nil, pKeyFormat, pKeyType, SecItemImportExportFlags(rawValue: 0), ¶ms, nil, &importArray)
| `- error: 'nil' requires a contextual type
46 | })
47 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:48:23: error: cannot find 'errSecSuccess' in scope
46 | })
47 | }
48 | guard osStatus == errSecSuccess, importArray != nil else { return nil }
| `- error: cannot find 'errSecSuccess' in scope
49 | let items = importArray! as NSArray
50 | guard items.count > 0 else { return nil }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:51:32: error: cannot find type 'SecKey' in scope
49 | let items = importArray! as NSArray
50 | guard items.count > 0 else { return nil }
51 | self.pubKey = items[0] as! SecKey
| `- error: cannot find type 'SecKey' in scope
52 | }
53 |
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:22:78: error: cannot find type 'CFError' in scope
20 | }
21 |
22 | func cfTry<T>(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> T?) throws -> T {
| `- error: cannot find type 'CFError' in scope
23 | var cferr: Unmanaged<CFError>? = nil
24 | if let result = cfBlock(&cferr) {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:67:43: error: cannot find 'SecTransformExecute' in scope
65 | guard let nameData = name.data(using: String.Encoding.utf8) else { return false }
66 | let decoder = try getDecoder(keyData)
67 | let signature = try cfTry(.error) { SecTransformExecute(decoder, $0) }
| `- error: cannot find 'SecTransformExecute' in scope
68 |
69 | // reverse the signature to check for truncated data / additional data entered by the user
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:75: error: cannot find type 'CFError' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'CFError' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/CFUtil.swift:11:90: error: cannot find type 'DarwinBoolean' in scope
9 | import Foundation
10 |
11 | func cfTry(_ err: CocoaFobError, cfBlock: (UnsafeMutablePointer<Unmanaged<CFError>?>) -> DarwinBoolean) throws {
| `- error: cannot find type 'DarwinBoolean' in scope
12 | var cferr: Unmanaged<CFError>? = nil
13 | if !cfBlock(&cferr).boolValue {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:71:50: error: cannot find 'SecTransformExecute' in scope
69 | // reverse the signature to check for truncated data / additional data entered by the user
70 | let encoder = try getEncoder(signature as! Data)
71 | let reverseSignature = try cfTry(.error) { SecTransformExecute(encoder, $0) }
| `- error: cannot find 'SecTransformExecute' in scope
72 | let reverseSignatureString = String(decoding: reverseSignature as! Data, as: UTF8.self).replacingOccurrences(of: "=", with: "")
73 | if(reverseSignatureString != keyString) { return false }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:76:40: error: cannot find 'SecTransformExecute' in scope
74 |
75 | let verifier = try getVerifier(self.pubKey, signature: signature as! Data, nameData: nameData)
76 | let result = try cfTry(.error) { SecTransformExecute(verifier, $0) }
| `- error: cannot find 'SecTransformExecute' in scope
77 | let boolResult = result as! CFBoolean
78 | return Bool(truncating: boolResult)
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:77:35: error: cannot find type 'CFBoolean' in scope
75 | let verifier = try getVerifier(self.pubKey, signature: signature as! Data, nameData: nameData)
76 | let result = try cfTry(.error) { SecTransformExecute(verifier, $0) }
77 | let boolResult = result as! CFBoolean
| `- error: cannot find type 'CFBoolean' in scope
78 | return Bool(truncating: boolResult)
79 | } catch {
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:86:46: error: cannot find 'SecEncodeTransformCreate' in scope
84 | // MARK: - Helper functions
85 | fileprivate func getEncoder(_ signature: Data) throws -> SecTransform {
86 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
| `- error: cannot find 'SecEncodeTransformCreate' in scope
87 | let _ = try cfTry(.error) { return SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, signature as CFTypeRef, $0) }
88 | return encoder
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:86:71: error: cannot find 'kSecBase32Encoding' in scope
84 | // MARK: - Helper functions
85 | fileprivate func getEncoder(_ signature: Data) throws -> SecTransform {
86 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
| `- error: cannot find 'kSecBase32Encoding' in scope
87 | let _ = try cfTry(.error) { return SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, signature as CFTypeRef, $0) }
88 | return encoder
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:87:40: error: cannot find 'SecTransformSetAttribute' in scope
85 | fileprivate func getEncoder(_ signature: Data) throws -> SecTransform {
86 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
87 | let _ = try cfTry(.error) { return SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, signature as CFTypeRef, $0) }
| `- error: cannot find 'SecTransformSetAttribute' in scope
88 | return encoder
89 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:87:74: error: cannot find 'kSecTransformInputAttributeName' in scope
85 | fileprivate func getEncoder(_ signature: Data) throws -> SecTransform {
86 | let encoder = try cfTry(.error) { return SecEncodeTransformCreate(kSecBase32Encoding, $0) }
87 | let _ = try cfTry(.error) { return SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, signature as CFTypeRef, $0) }
| `- error: cannot find 'kSecTransformInputAttributeName' in scope
88 | return encoder
89 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:92:46: error: cannot find 'SecDecodeTransformCreate' in scope
90 |
91 | fileprivate func getDecoder(_ keyData: Data) throws -> SecTransform {
92 | let decoder = try cfTry(.error) { return SecDecodeTransformCreate(kSecBase32Encoding, $0) }
| `- error: cannot find 'SecDecodeTransformCreate' in scope
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(decoder, kSecTransformInputAttributeName, keyData as CFTypeRef, $0) }
94 | return decoder
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:92:71: error: cannot find 'kSecBase32Encoding' in scope
90 |
91 | fileprivate func getDecoder(_ keyData: Data) throws -> SecTransform {
92 | let decoder = try cfTry(.error) { return SecDecodeTransformCreate(kSecBase32Encoding, $0) }
| `- error: cannot find 'kSecBase32Encoding' in scope
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(decoder, kSecTransformInputAttributeName, keyData as CFTypeRef, $0) }
94 | return decoder
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:93:40: error: cannot find 'SecTransformSetAttribute' in scope
91 | fileprivate func getDecoder(_ keyData: Data) throws -> SecTransform {
92 | let decoder = try cfTry(.error) { return SecDecodeTransformCreate(kSecBase32Encoding, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(decoder, kSecTransformInputAttributeName, keyData as CFTypeRef, $0) }
| `- error: cannot find 'SecTransformSetAttribute' in scope
94 | return decoder
95 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:93:74: error: cannot find 'kSecTransformInputAttributeName' in scope
91 | fileprivate func getDecoder(_ keyData: Data) throws -> SecTransform {
92 | let decoder = try cfTry(.error) { return SecDecodeTransformCreate(kSecBase32Encoding, $0) }
93 | let _ = try cfTry(.error) { return SecTransformSetAttribute(decoder, kSecTransformInputAttributeName, keyData as CFTypeRef, $0) }
| `- error: cannot find 'kSecTransformInputAttributeName' in scope
94 | return decoder
95 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:98:47: error: cannot find 'SecVerifyTransformCreate' in scope
96 |
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
| `- error: cannot find 'SecVerifyTransformCreate' in scope
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
100 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:99:40: error: cannot find 'SecTransformSetAttribute' in scope
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
| `- error: cannot find 'SecTransformSetAttribute' in scope
100 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
101 | return verifier
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:99:75: error: cannot find 'kSecTransformInputAttributeName' in scope
97 | fileprivate func getVerifier(_ publicKey: SecKey, signature: Data, nameData: Data) throws -> SecTransform {
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
| `- error: cannot find 'kSecTransformInputAttributeName' in scope
100 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
101 | return verifier
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:100:40: error: cannot find 'SecTransformSetAttribute' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
100 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
| `- error: cannot find 'SecTransformSetAttribute' in scope
101 | return verifier
102 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:100:75: error: cannot find 'kSecDigestTypeAttribute' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
100 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
| `- error: cannot find 'kSecDigestTypeAttribute' in scope
101 | return verifier
102 | }
/host/spi-builder-workspace/.build/checkouts/cocoafob/swift5/CocoaFob/LicenseVerifier.swift:100:100: error: cannot find 'kSecDigestSHA1' in scope
98 | let verifier = try cfTry(.error) { return SecVerifyTransformCreate(publicKey, signature as CFData?, $0) }
99 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecTransformInputAttributeName, nameData as CFTypeRef, $0) }
100 | let _ = try cfTry(.error) { return SecTransformSetAttribute(verifier, kSecDigestTypeAttribute, kSecDigestSHA1, $0) }
| `- error: cannot find 'kSecDigestSHA1' in scope
101 | return verifier
102 | }
[31/41] Compiling CocoaFob String+CocoaFob.swift
[34/41] Emitting module Trial
[35/41] Compiling Trial Days.swift
[36/41] Compiling Trial Trial.swift
BUILD FAILURE 6.0 linux