Build Information
Failed to build Blessed with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/Blessed.git
Reference: main
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/trilemma-dev/Blessed
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fc7c930 Update README.md
Cloned https://github.com/trilemma-dev/Blessed.git
Revision (git rev-parse @):
fc7c930f3cc1894a2481e1f884c336007712e6a8
SUCCESS checkout https://github.com/trilemma-dev/Blessed.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/trilemma-dev/Blessed.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Fetching https://github.com/trilemma-dev/Required.git
Fetching https://github.com/trilemma-dev/Authorized.git
Fetching https://github.com/trilemma-dev/EmbeddedPropertyList.git
[1/36] Fetching authorized
[37/312] Fetching authorized, required
[289/469] Fetching authorized, required, embeddedpropertylist
Fetched https://github.com/trilemma-dev/Required.git from cache (0.38s)
Fetched https://github.com/trilemma-dev/EmbeddedPropertyList.git from cache (0.38s)
Fetched https://github.com/trilemma-dev/Authorized.git from cache (0.39s)
Computing version for https://github.com/trilemma-dev/Authorized.git
Computed https://github.com/trilemma-dev/Authorized.git at 1.0.0 (0.51s)
Computing version for https://github.com/trilemma-dev/Required.git
Computed https://github.com/trilemma-dev/Required.git at 0.1.1 (0.53s)
Computing version for https://github.com/trilemma-dev/EmbeddedPropertyList.git
Computed https://github.com/trilemma-dev/EmbeddedPropertyList.git at 2.0.2 (0.53s)
Creating working copy for https://github.com/trilemma-dev/Required.git
Working copy of https://github.com/trilemma-dev/Required.git resolved at 0.1.1
Creating working copy for https://github.com/trilemma-dev/EmbeddedPropertyList.git
Working copy of https://github.com/trilemma-dev/EmbeddedPropertyList.git resolved at 2.0.2
Creating working copy for https://github.com/trilemma-dev/Authorized.git
Working copy of https://github.com/trilemma-dev/Authorized.git resolved at 1.0.0
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/53] Emitting module EmbeddedPropertyList
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
200 | /// - mustSwap: Whether the data representing the fat header must have it endianness swapped.
201 | /// - Returns: A dictionary of CPU types to mach headers within the executable. Only 64-bit CPU types are included.
202 | private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
| `- error: cannot find type 'cpu_type_t' in scope
203 | // To populate with offsets
204 | var archOffsets = [cpu_type_t : UInt32]()
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
243 |
244 | /// Returns the corresponding Darwin `cpu_type_t` for this enum value.
245 | fileprivate func asDarwinType() throws -> cpu_type_t {
| `- error: cannot find type 'cpu_type_t' in scope
246 | switch self {
247 | case .x86_64:
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
258 | /// This relies on two `sysctl` calls. More information can be found via `man sysctl`. In particular `sysctl -a` will list all available commands on
259 | /// the system which should include both `hw.cputype` and `hw.cpu64bit_capable`.
260 | private func cpuType() throws -> cpu_type_t {
| `- error: cannot find type 'cpu_type_t' in scope
261 | // Retrieve CPU type
262 | var cpuType = cpu_type_t()
[7/53] Compiling Required ParenthesesRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[8/53] Compiling Required Parser.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[9/53] Compiling Required ParserError.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[10/53] Compiling Required Requirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[11/53] Compiling Required RequirementSet.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[12/53] Compiling Required InfoConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[13/53] Compiling Required KeyExpression.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[14/53] Compiling Required MatchExpression.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[15/53] Compiling Required NegationRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[16/53] Compiling Required OrRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[17/58] Compiling Required Symbols.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[18/58] Compiling Required WildcardString.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[19/58] Compiling Required Token.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[20/58] Compiling Required TokenizationError.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[21/58] Compiling Required Tokenizer.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[22/58] Compiling EmbeddedPropertyList ReadError.swift
[23/58] Compiling Authorized AuthorizationPolicyDatabase.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
140 |
141 | /// The user must be an administrator.
142 | public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
| `- error: cannot find 'kAuthorizationRuleIsAdmin' in scope
143 | /// The user must authenticate as an administrator.
144 | public static let authenticateAsAdmin: AuthorizationRightRule =
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
143 | /// The user must authenticate as an administrator.
144 | public static let authenticateAsAdmin: AuthorizationRightRule =
145 | AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
| `- error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
146 | /// The user must authenticate as the session owner (logged-in user).
147 | public static let authenticateAsSessionUser: AuthorizationRightRule =
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
146 | /// The user must authenticate as the session owner (logged-in user).
147 | public static let authenticateAsSessionUser: AuthorizationRightRule =
148 | AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
| `- error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
149 | /// Always allows the specified right.
150 | public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
148 | AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 | /// Always allows the specified right.
150 | public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
| `- error: cannot find 'kAuthorizationRuleClassAllow' in scope
151 | /// Always denies the specified right.
152 | public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
150 | public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
151 | /// Always denies the specified right.
152 | public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
| `- error: cannot find 'kAuthorizationRuleClassDeny' in scope
153 | }
154 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
204 | public let entries: [String : Any]
205 |
206 | fileprivate init(entries: CFDictionary) {
| `- error: cannot find type 'CFDictionary' in scope
207 | var castEntries = [String: Any]()
208 | for (key, value) in entries as NSDictionary {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
298 |
299 | /// Undocumented, but in practice appears to be the designated requirement of the application which created the right definition.
300 | public var requirement: SecRequirement? {
| `- error: cannot find type 'SecRequirement' in scope
301 | var requirement: SecRequirement?
302 | if let requirementString = self.entries["requirement"] as? String {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:26:26: error: cannot find 'AuthorizationRightGet' in scope
24 | let definition: AuthorizationRightDefinition?
25 | var entries: CFDictionary?
26 | let result = AuthorizationRightGet(namePointer, &entries)
| `- error: cannot find 'AuthorizationRightGet' in scope
27 | if result == errAuthorizationSuccess, let entries = entries {
28 | definition = AuthorizationRightDefinition(entries: entries)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:27:26: error: cannot find 'errAuthorizationSuccess' in scope
25 | var entries: CFDictionary?
26 | let result = AuthorizationRightGet(namePointer, &entries)
27 | if result == errAuthorizationSuccess, let entries = entries {
| `- error: cannot find 'errAuthorizationSuccess' in scope
28 | definition = AuthorizationRightDefinition(entries: entries)
29 | } else if result == errAuthorizationDenied {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:29:33: error: cannot find 'errAuthorizationDenied' in scope
27 | if result == errAuthorizationSuccess, let entries = entries {
28 | definition = AuthorizationRightDefinition(entries: entries)
29 | } else if result == errAuthorizationDenied {
| `- error: cannot find 'errAuthorizationDenied' in scope
30 | definition = nil
31 | } else {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:25:26: error: cannot find type 'CFDictionary' in scope
23 | return try self.name.withCString { namePointer in
24 | let definition: AuthorizationRightDefinition?
25 | var entries: CFDictionary?
| `- error: cannot find type 'CFDictionary' in scope
26 | let result = AuthorizationRightGet(namePointer, &entries)
27 | if result == errAuthorizationSuccess, let entries = entries {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:23:30: error: type of expression is ambiguous without a type annotation
21 | // From the documentation for AuthorizationRightGet:
22 | // - errAuthorizationDenied -60005 No definition found.
23 | return try self.name.withCString { namePointer in
| `- error: type of expression is ambiguous without a type annotation
24 | let definition: AuthorizationRightDefinition?
25 | var entries: CFDictionary?
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:26: error: cannot find 'AuthorizationRightGet' in scope
46 | return try self.name.withCString { namePointer in
47 | let exists: Bool
48 | let result = AuthorizationRightGet(namePointer, nil)
| `- error: cannot find 'AuthorizationRightGet' in scope
49 | if result == errAuthorizationSuccess {
50 | exists = true
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:49:26: error: cannot find 'errAuthorizationSuccess' in scope
47 | let exists: Bool
48 | let result = AuthorizationRightGet(namePointer, nil)
49 | if result == errAuthorizationSuccess {
| `- error: cannot find 'errAuthorizationSuccess' in scope
50 | exists = true
51 | } else if result == errAuthorizationDenied {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:51:33: error: cannot find 'errAuthorizationDenied' in scope
49 | if result == errAuthorizationSuccess {
50 | exists = true
51 | } else if result == errAuthorizationDenied {
| `- error: cannot find 'errAuthorizationDenied' in scope
52 | exists = false
53 | } else {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:61: error: 'nil' requires a contextual type
46 | return try self.name.withCString { namePointer in
47 | let exists: Bool
48 | let result = AuthorizationRightGet(namePointer, nil)
| `- error: 'nil' requires a contextual type
49 | if result == errAuthorizationSuccess {
50 | exists = true
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:85:28: error: cannot find 'CFBundleCreate' in scope
83 | var cfBundle: CFBundle?
84 | if let bundle = bundle {
85 | cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
| `- error: cannot find 'CFBundleCreate' in scope
86 | }
87 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:91:33: error: cannot find 'kAuthorizationRightRule' in scope
89 | let rightDefinition = NSMutableDictionary(capacity: rules.count + (comment == nil ? 0 : 1))
90 | for rule in rules {
91 | rightDefinition[kAuthorizationRightRule] = rule.name
| `- error: cannot find 'kAuthorizationRightRule' in scope
92 | }
93 | if let comment = comment {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:94:33: error: cannot find 'kAuthorizationComment' in scope
92 | }
93 | if let comment = comment {
94 | rightDefinition[kAuthorizationComment] = comment
| `- error: cannot find 'kAuthorizationComment' in scope
95 | }
96 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:106:17: error: cannot find 'AuthorizationRightSet' in scope
104 |
105 | try AuthorizationError.throwIfFailure {
106 | AuthorizationRightSet(auth.authorizationRef,
| `- error: cannot find 'AuthorizationRightSet' in scope
107 | namePointer,
108 | rightDefinition,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:83:27: error: cannot find type 'CFBundle' in scope
81 | try self.name.withCString { namePointer in
82 | // Convert from Bundle to CFBundle
83 | var cfBundle: CFBundle?
| `- error: cannot find type 'CFBundle' in scope
84 | if let bundle = bundle {
85 | cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:81:23: error: type of expression is ambiguous without a type annotation
79 | localeTableName: String? = nil,
80 | comment: String? = nil) throws {
81 | try self.name.withCString { namePointer in
| `- error: type of expression is ambiguous without a type annotation
82 | // Convert from Bundle to CFBundle
83 | var cfBundle: CFBundle?
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:125:17: error: cannot find 'AuthorizationRightRemove' in scope
123 | try self.name.withCString { namePointer in
124 | try AuthorizationError.throwIfFailure {
125 | AuthorizationRightRemove(authorization.authorizationRef, namePointer)
| `- error: cannot find 'AuthorizationRightRemove' in scope
126 | }
127 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 | /// Wrap an authorization function which requires a parameter to be populated. An ``AuthorizationError`` will be thrown unless the result
69 | /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 | internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
| `- error: cannot find type 'OSStatus' in scope
71 | var value: T?
72 | let result = authorizationFunction(&value)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 | /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 | internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
| `- error: cannot find type 'OSStatus' in scope
62 | let result = authorizationFunction()
63 | if result != errSecSuccess {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
38 | ///
39 | /// This reference is only valid during the lifetime of its enclosing ``Authorization`` instance's lifetime.
40 | public let authorizationRef: AuthorizationRef
| `- error: cannot find type 'AuthorizationRef' in scope
41 |
42 | /// Creates a new instance with no rights.
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:251:22: error: cannot find 'kAuthorizationComment' in scope
249 | /// This entry **is** publicly documented.
250 | public var comment: String? {
251 | self.entries[kAuthorizationComment] as? String
| `- error: cannot find 'kAuthorizationComment' in scope
252 | }
253 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:259:44: error: cannot find 'kAuthorizationRightRule' in scope
257 | public var rule: [AuthorizationRight]? {
258 | var ruleRights: [AuthorizationRight]?
259 | if let ruleElements = self.entries[kAuthorizationRightRule] as? [String] {
| `- error: cannot find 'kAuthorizationRightRule' in scope
260 | ruleRights = [AuthorizationRight]()
261 | for element in ruleElements {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:301:26: error: cannot find type 'SecRequirement' in scope
299 | /// Undocumented, but in practice appears to be the designated requirement of the application which created the right definition.
300 | public var requirement: SecRequirement? {
301 | var requirement: SecRequirement?
| `- error: cannot find type 'SecRequirement' in scope
302 | if let requirementString = self.entries["requirement"] as? String {
303 | SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:13: error: cannot find 'SecRequirementCreateWithString' in scope
301 | var requirement: SecRequirement?
302 | if let requirementString = self.entries["requirement"] as? String {
303 | SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
| `- error: cannot find 'SecRequirementCreateWithString' in scope
304 | }
305 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:75: error: cannot find 'SecCSFlags' in scope
301 | var requirement: SecRequirement?
302 | if let requirementString = self.entries["requirement"] as? String {
303 | SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
| `- error: cannot find 'SecCSFlags' in scope
304 | }
305 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:65: error: cannot find type 'CFString' in scope
301 | var requirement: SecRequirement?
302 | if let requirementString = self.entries["requirement"] as? String {
303 | SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
| `- error: cannot find type 'CFString' in scope
304 | }
305 |
[24/58] Compiling Authorized AuthorizationOption.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
32 |
33 | internal extension Set where Element == AuthorizationOption {
34 | func asAuthorizationFlags() -> AuthorizationFlags {
| `- error: cannot find type 'AuthorizationFlags' in scope
35 | var flags = [AuthorizationFlags]()
36 | for element in self {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:35:22: error: cannot find 'AuthorizationFlags' in scope
33 | internal extension Set where Element == AuthorizationOption {
34 | func asAuthorizationFlags() -> AuthorizationFlags {
35 | var flags = [AuthorizationFlags]()
| `- error: cannot find 'AuthorizationFlags' in scope
36 | for element in self {
37 | switch element {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:35:21: error: cannot call value of non-function type '[Any]'
33 | internal extension Set where Element == AuthorizationOption {
34 | func asAuthorizationFlags() -> AuthorizationFlags {
35 | var flags = [AuthorizationFlags]()
| `- error: cannot call value of non-function type '[Any]'
36 | for element in self {
37 | switch element {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:38:58: error: cannot find 'AuthorizationFlags' in scope
36 | for element in self {
37 | switch element {
38 | case .interactionAllowed: flags.append(AuthorizationFlags.interactionAllowed)
| `- error: cannot find 'AuthorizationFlags' in scope
39 | case .extendRights: flags.append(AuthorizationFlags.extendRights)
40 | case .partialRights: flags.append(AuthorizationFlags.partialRights)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:39:58: error: cannot find 'AuthorizationFlags' in scope
37 | switch element {
38 | case .interactionAllowed: flags.append(AuthorizationFlags.interactionAllowed)
39 | case .extendRights: flags.append(AuthorizationFlags.extendRights)
| `- error: cannot find 'AuthorizationFlags' in scope
40 | case .partialRights: flags.append(AuthorizationFlags.partialRights)
41 | case .destroyRights: flags.append(AuthorizationFlags.destroyRights)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:40:58: error: cannot find 'AuthorizationFlags' in scope
38 | case .interactionAllowed: flags.append(AuthorizationFlags.interactionAllowed)
39 | case .extendRights: flags.append(AuthorizationFlags.extendRights)
40 | case .partialRights: flags.append(AuthorizationFlags.partialRights)
| `- error: cannot find 'AuthorizationFlags' in scope
41 | case .destroyRights: flags.append(AuthorizationFlags.destroyRights)
42 | case .preAuthorize: flags.append(AuthorizationFlags.preAuthorize)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:41:58: error: cannot find 'AuthorizationFlags' in scope
39 | case .extendRights: flags.append(AuthorizationFlags.extendRights)
40 | case .partialRights: flags.append(AuthorizationFlags.partialRights)
41 | case .destroyRights: flags.append(AuthorizationFlags.destroyRights)
| `- error: cannot find 'AuthorizationFlags' in scope
42 | case .preAuthorize: flags.append(AuthorizationFlags.preAuthorize)
43 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:42:58: error: cannot find 'AuthorizationFlags' in scope
40 | case .partialRights: flags.append(AuthorizationFlags.partialRights)
41 | case .destroyRights: flags.append(AuthorizationFlags.destroyRights)
42 | case .preAuthorize: flags.append(AuthorizationFlags.preAuthorize)
| `- error: cannot find 'AuthorizationFlags' in scope
43 | }
44 | }
[25/58] Compiling Required SecStaticCode+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[26/58] Compiling Required SecTask+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[27/58] Compiling Required SecurityCommon.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[28/58] Compiling Required SecurityError.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[29/58] Compiling Required AndRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[30/58] Compiling Required CertificateConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[31/58] Compiling Required CodeDirectoryHashConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[32/58] Compiling Required Constraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[33/58] Compiling Required EntitlementConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[34/58] Compiling Required IdentifierConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[35/58] Compiling EmbeddedPropertyList BundleVersion.swift
[36/58] Compiling EmbeddedPropertyList EmbeddedPropertyListReader.swift
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
200 | /// - mustSwap: Whether the data representing the fat header must have it endianness swapped.
201 | /// - Returns: A dictionary of CPU types to mach headers within the executable. Only 64-bit CPU types are included.
202 | private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
| `- error: cannot find type 'cpu_type_t' in scope
203 | // To populate with offsets
204 | var archOffsets = [cpu_type_t : UInt32]()
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
243 |
244 | /// Returns the corresponding Darwin `cpu_type_t` for this enum value.
245 | fileprivate func asDarwinType() throws -> cpu_type_t {
| `- error: cannot find type 'cpu_type_t' in scope
246 | switch self {
247 | case .x86_64:
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
258 | /// This relies on two `sysctl` calls. More information can be found via `man sysctl`. In particular `sysctl -a` will list all available commands on
259 | /// the system which should include both `hw.cputype` and `hw.cpu64bit_capable`.
260 | private func cpuType() throws -> cpu_type_t {
| `- error: cannot find type 'cpu_type_t' in scope
261 | // Retrieve CPU type
262 | var cpuType = cpu_type_t()
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
42 | defer { dlclose(handle) }
43 |
44 | guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
| `- error: cannot find 'MH_EXECUTE_SYM' in scope
45 | throw ReadError.machHeaderExecuteSymbolUnretrievable
46 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:47:78: error: cannot find 'mach_header_64' in scope
45 | throw ReadError.machHeaderExecuteSymbolUnretrievable
46 | }
47 | let mhExecuteBoundPointer = mhExecutePointer.assumingMemoryBound(to: mach_header_64.self)
| `- error: cannot find 'mach_header_64' in scope
48 |
49 | var size: UInt = 0
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:50:29: error: cannot find 'getsectiondata' in scope
48 |
49 | var size: UInt = 0
50 | guard let section = getsectiondata(mhExecuteBoundPointer, "__TEXT", self.sectionName, &size) else {
| `- error: cannot find 'getsectiondata' in scope
51 | throw ReadError.sectionNotFound
52 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:56: error: cannot find 'mach_header_64' in scope
112 | let offsetData = data[Data.Index(machHeaderOffset)..<data.count]
113 | let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 | let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
| `- error: cannot find 'mach_header_64' in scope
115 | guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
116 | throw ReadError.sectionNotFound
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:115:40: error: cannot find 'getsectbynamefromheader_64' in scope
113 | let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 | let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
115 | guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
| `- error: cannot find 'getsectbynamefromheader_64' in scope
116 | throw ReadError.sectionNotFound
117 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:41: error: generic parameter 'T' could not be inferred
112 | let offsetData = data[Data.Index(machHeaderOffset)..<data.count]
113 | let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 | let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
| `- error: generic parameter 'T' could not be inferred
115 | guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
116 | throw ReadError.sectionNotFound
Swift.UnsafeRawBufferPointer:15:28: note: in call to function 'bindMemory(to:)'
13 | @inlinable public var baseAddress: UnsafeRawPointer? { get }
14 | @discardableResult
15 | @inlinable public func bindMemory<T>(to type: T.Type) -> UnsafeBufferPointer<T> where T : ~Copyable
| `- note: in call to function 'bindMemory(to:)'
16 | public func withMemoryRebound<T, E, Result>(to type: T.Type, _ body: (_ buffer: UnsafeBufferPointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
17 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafeBufferPointer<T> where T : ~Copyable
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:26: error: cannot find 'MH_MAGIC' in scope
160 | /// - Returns: Whether the magic value represents a 32-bit architecture executable.
161 | private func isMagic32(_ magic: UInt32) -> Bool {
162 | return (magic == MH_MAGIC) || (magic == MH_CIGAM)
| `- error: cannot find 'MH_MAGIC' in scope
163 | }
164 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:49: error: cannot find 'MH_CIGAM' in scope
160 | /// - Returns: Whether the magic value represents a 32-bit architecture executable.
161 | private func isMagic32(_ magic: UInt32) -> Bool {
162 | return (magic == MH_MAGIC) || (magic == MH_CIGAM)
| `- error: cannot find 'MH_CIGAM' in scope
163 | }
164 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:26: error: cannot find 'MH_MAGIC_64' in scope
172 | /// - Returns: Whether the magic value represents a 64-bit architecture executable.
173 | private func isMagic64(_ magic: UInt32) -> Bool {
174 | return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
| `- error: cannot find 'MH_MAGIC_64' in scope
175 | }
176 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:52: error: cannot find 'MH_CIGAM_64' in scope
172 | /// - Returns: Whether the magic value represents a 64-bit architecture executable.
173 | private func isMagic64(_ magic: UInt32) -> Bool {
174 | return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
| `- error: cannot find 'MH_CIGAM_64' in scope
175 | }
176 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:24: error: cannot find 'FAT_MAGIC' in scope
181 | /// - Returns: Whether the magic value represents a fat executable (universal binary).
182 | private func isMagicFat(_ magic: UInt32) -> Bool {
183 | return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
| `- error: cannot find 'FAT_MAGIC' in scope
184 | }
185 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:48: error: cannot find 'FAT_CIGAM' in scope
181 | /// - Returns: Whether the magic value represents a fat executable (universal binary).
182 | private func isMagicFat(_ magic: UInt32) -> Bool {
183 | return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
| `- error: cannot find 'FAT_CIGAM' in scope
184 | }
185 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:26: error: cannot find 'MH_CIGAM' in scope
190 | /// - Returns: Whether the magic value represents the oppositie endianness.
191 | private func mustSwapEndianness(magic: UInt32) -> Bool {
192 | return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
| `- error: cannot find 'MH_CIGAM' in scope
193 | }
194 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:49: error: cannot find 'MH_CIGAM_64' in scope
190 | /// - Returns: Whether the magic value represents the oppositie endianness.
191 | private func mustSwapEndianness(magic: UInt32) -> Bool {
192 | return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
| `- error: cannot find 'MH_CIGAM_64' in scope
193 | }
194 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:75: error: cannot find 'FAT_CIGAM' in scope
190 | /// - Returns: Whether the magic value represents the oppositie endianness.
191 | private func mustSwapEndianness(magic: UInt32) -> Bool {
192 | return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
| `- error: cannot find 'FAT_CIGAM' in scope
193 | }
194 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:28: error: cannot find 'cpu_type_t' in scope
202 | private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
203 | // To populate with offsets
204 | var archOffsets = [cpu_type_t : UInt32]()
| `- error: cannot find 'cpu_type_t' in scope
205 |
206 | // In practice the fat header and fat arch data is always in big-endian byte order while x86_64 (Intel) and
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:27: error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
202 | private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
203 | // To populate with offsets
204 | var archOffsets = [cpu_type_t : UInt32]()
| `- error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
205 |
206 | // In practice the fat header and fat arch data is always in big-endian byte order while x86_64 (Intel) and
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:37: error: cannot find 'fat_header' in scope
207 | // arm64 (Apple Silicon) are little-endian. So the byte orders are always going to need to be swapped. The code
208 | // here does not assume this to be true, but it's helpful to keep in mind if ever debugging this code.
209 | var header = read(data, as: fat_header.self, fromByteOffset: 0)
| `- error: cannot find 'fat_header' in scope
210 | if mustSwap {
211 | swap_fat_header(&header, NXHostByteOrder())
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:22: error: type of expression is ambiguous without a type annotation
207 | // arm64 (Apple Silicon) are little-endian. So the byte orders are always going to need to be swapped. The code
208 | // here does not assume this to be true, but it's helpful to keep in mind if ever debugging this code.
209 | var header = read(data, as: fat_header.self, fromByteOffset: 0)
| `- error: type of expression is ambiguous without a type annotation
210 | if mustSwap {
211 | swap_fat_header(&header, NXHostByteOrder())
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:13: error: cannot find 'swap_fat_header' in scope
209 | var header = read(data, as: fat_header.self, fromByteOffset: 0)
210 | if mustSwap {
211 | swap_fat_header(&header, NXHostByteOrder())
| `- error: cannot find 'swap_fat_header' in scope
212 | }
213 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:38: error: cannot find 'NXHostByteOrder' in scope
209 | var header = read(data, as: fat_header.self, fromByteOffset: 0)
210 | if mustSwap {
211 | swap_fat_header(&header, NXHostByteOrder())
| `- error: cannot find 'NXHostByteOrder' in scope
212 | }
213 |
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:216:39: error: cannot find type 'fat_header' in scope
214 | // Loop through all of the architecture descriptions in the fat executable (in practice there will typically be
215 | // 2). These descriptions start immediately after the fat header, so start the offset there.
216 | var archOffset = MemoryLayout<fat_header>.size
| `- error: cannot find type 'fat_header' in scope
217 | for _ in 0..<header.nfat_arch {
218 | var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:262:27: error: cannot find 'cpu_type_t' in scope
260 | private func cpuType() throws -> cpu_type_t {
261 | // Retrieve CPU type
262 | var cpuType = cpu_type_t()
| `- error: cannot find 'cpu_type_t' in scope
263 | var size = MemoryLayout<cpu_type_t>.size
264 | guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:263:37: error: cannot find type 'cpu_type_t' in scope
261 | // Retrieve CPU type
262 | var cpuType = cpu_type_t()
263 | var size = MemoryLayout<cpu_type_t>.size
| `- error: cannot find type 'cpu_type_t' in scope
264 | guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
265 | throw ReadError.architectureNotDetermined
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:19: error: cannot find 'sysctlbyname' in scope
262 | var cpuType = cpu_type_t()
263 | var size = MemoryLayout<cpu_type_t>.size
264 | guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
| `- error: cannot find 'sysctlbyname' in scope
265 | throw ReadError.architectureNotDetermined
266 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:63: error: 'nil' requires a contextual type
262 | var cpuType = cpu_type_t()
263 | var size = MemoryLayout<cpu_type_t>.size
264 | guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
| `- error: 'nil' requires a contextual type
265 | throw ReadError.architectureNotDetermined
266 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:19: error: cannot find 'sysctlbyname' in scope
269 | var capable64bit = Int32()
270 | size = MemoryLayout<Int32>.size
271 | guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
| `- error: cannot find 'sysctlbyname' in scope
272 | throw ReadError.architectureNotDetermined
273 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:77: error: 'nil' requires a contextual type
269 | var capable64bit = Int32()
270 | size = MemoryLayout<Int32>.size
271 | guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
| `- error: 'nil' requires a contextual type
272 | throw ReadError.architectureNotDetermined
273 | }
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:276:56: error: cannot find 'CPU_ARCH_ABI64' in scope
274 |
275 | // If this 64-bit then adjust accordingly to match the definitions for CPU_TYPE_X86_64 and CPU_TYPE_ARM64
276 | cpuType = (capable64bit == 1) ? (cpuType | CPU_ARCH_ABI64) : cpuType
| `- error: cannot find 'CPU_ARCH_ABI64' in scope
277 |
278 | return cpuType
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/58] Emitting module Authorized
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
38 | ///
39 | /// This reference is only valid during the lifetime of its enclosing ``Authorization`` instance's lifetime.
40 | public let authorizationRef: AuthorizationRef
| `- error: cannot find type 'AuthorizationRef' in scope
41 |
42 | /// Creates a new instance with no rights.
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
65 | }
66 |
67 | private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
| `- error: cannot find 'AuthorizationExternalForm' in scope
68 |
69 | /// Deserializes a `Data` instance into an `AuthorizationRef`.
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
68 |
69 | /// Deserializes a `Data` instance into an `AuthorizationRef`.
70 | private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
| `- error: cannot find type 'AuthorizationRef' in scope
71 | // The encoded data is only valid if the count matches that of the AuthorizationExternalForm's bytes tuple
72 | if serialization.count != externalFormChildrenCount {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
21 | ///
22 | /// A closure must be used to because the memory pointers referenced are only valid within the closure.
23 | func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'AuthorizationItemSet' in scope
24 | return try self.name.withCString { namePointer in
25 | var mutableValue = value
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
211 |
212 | internal extension Set where Element: AuthorizationElement {
213 | func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'AuthorizationItemSet' in scope
214 | try Set<Element>.convertRecursively(wrappers: Array<Element>(self), items: [], body: body)
215 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
220 | private static func convertRecursively<Result>(
221 | wrappers: [AuthorizationElement],
222 | items: [AuthorizationItem],
| `- error: cannot find type 'AuthorizationItem' in scope
223 | body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
224 | ) rethrows -> Result {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
221 | wrappers: [AuthorizationElement],
222 | items: [AuthorizationItem],
223 | body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
| `- error: cannot find type 'AuthorizationItemSet' in scope
224 | ) rethrows -> Result {
225 | // One or more wrappers to be converted
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
254 | }
255 |
256 | internal extension AuthorizationItem {
| `- error: cannot find type 'AuthorizationItem' in scope
257 | func wrap<T>(type: T.Type) -> T where T: AuthorizationElement {
258 | let name = String(cString: self.name)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
270 | }
271 |
272 | internal extension AuthorizationItemSet {
| `- error: cannot find type 'AuthorizationItemSet' in scope
273 | func wrap<T>(type: T.Type) -> [T] where T: AuthorizationElement {
274 | var items = [T]()
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
39 | case badAddress
40 | /// Represents other errors.
41 | case other(OSStatus)
| `- error: cannot find type 'OSStatus' in scope
42 |
43 | private static let mapping = [
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
42 |
43 | private static let mapping = [
44 | errAuthorizationInvalidSet: invalidSet,
| `- error: cannot find 'errAuthorizationInvalidSet' in scope
45 | errAuthorizationInvalidRef: invalidRef,
46 | errAuthorizationInvalidTag: invalidTag,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
43 | private static let mapping = [
44 | errAuthorizationInvalidSet: invalidSet,
45 | errAuthorizationInvalidRef: invalidRef,
| `- error: cannot find 'errAuthorizationInvalidRef' in scope
46 | errAuthorizationInvalidTag: invalidTag,
47 | errAuthorizationInvalidPointer: invalidPointer,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
44 | errAuthorizationInvalidSet: invalidSet,
45 | errAuthorizationInvalidRef: invalidRef,
46 | errAuthorizationInvalidTag: invalidTag,
| `- error: cannot find 'errAuthorizationInvalidTag' in scope
47 | errAuthorizationInvalidPointer: invalidPointer,
48 | errAuthorizationDenied: denied,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
45 | errAuthorizationInvalidRef: invalidRef,
46 | errAuthorizationInvalidTag: invalidTag,
47 | errAuthorizationInvalidPointer: invalidPointer,
| `- error: cannot find 'errAuthorizationInvalidPointer' in scope
48 | errAuthorizationDenied: denied,
49 | errAuthorizationCanceled: canceled,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
46 | errAuthorizationInvalidTag: invalidTag,
47 | errAuthorizationInvalidPointer: invalidPointer,
48 | errAuthorizationDenied: denied,
| `- error: cannot find 'errAuthorizationDenied' in scope
49 | errAuthorizationCanceled: canceled,
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
47 | errAuthorizationInvalidPointer: invalidPointer,
48 | errAuthorizationDenied: denied,
49 | errAuthorizationCanceled: canceled,
| `- error: cannot find 'errAuthorizationCanceled' in scope
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
51 | errAuthorizationInternal: internalError,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
48 | errAuthorizationDenied: denied,
49 | errAuthorizationCanceled: canceled,
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
| `- error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
51 | errAuthorizationInternal: internalError,
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
49 | errAuthorizationCanceled: canceled,
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
51 | errAuthorizationInternal: internalError,
| `- error: cannot find 'errAuthorizationInternal' in scope
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
51 | errAuthorizationInternal: internalError,
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
| `- error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
54 | errAuthorizationInvalidFlags: invalidFlags,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
51 | errAuthorizationInternal: internalError,
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
| `- error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
54 | errAuthorizationInvalidFlags: invalidFlags,
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
54 | errAuthorizationInvalidFlags: invalidFlags,
| `- error: cannot find 'errAuthorizationInvalidFlags' in scope
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
54 | errAuthorizationInvalidFlags: invalidFlags,
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
| `- error: cannot find 'errAuthorizationToolExecuteFailure' in scope
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
57 | errAuthorizationBadAddress: badAddress
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
54 | errAuthorizationInvalidFlags: invalidFlags,
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
| `- error: cannot find 'errAuthorizationToolEnvironmentError' in scope
57 | errAuthorizationBadAddress: badAddress
58 | ]
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
57 | errAuthorizationBadAddress: badAddress
| `- error: cannot find 'errAuthorizationBadAddress' in scope
58 | ]
59 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 | /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 | internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
| `- error: cannot find type 'OSStatus' in scope
62 | let result = authorizationFunction()
63 | if result != errSecSuccess {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 | /// Wrap an authorization function which requires a parameter to be populated. An ``AuthorizationError`` will be thrown unless the result
69 | /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 | internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
| `- error: cannot find type 'OSStatus' in scope
71 | var value: T?
72 | let result = authorizationFunction(&value)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
80 | /// Returns the corresponding ``AuthorizationError`` case for `result` or ``AuthorizationError/other(_:)`` if the value has no
81 | /// corresponding case.
82 | internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
| `- error: cannot find type 'OSStatus' in scope
83 | let error: AuthorizationError
84 | if let mappedError = mapping[result] {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
32 |
33 | internal extension Set where Element == AuthorizationOption {
34 | func asAuthorizationFlags() -> AuthorizationFlags {
| `- error: cannot find type 'AuthorizationFlags' in scope
35 | var flags = [AuthorizationFlags]()
36 | for element in self {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
140 |
141 | /// The user must be an administrator.
142 | public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
| `- error: cannot find 'kAuthorizationRuleIsAdmin' in scope
143 | /// The user must authenticate as an administrator.
144 | public static let authenticateAsAdmin: AuthorizationRightRule =
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
143 | /// The user must authenticate as an administrator.
144 | public static let authenticateAsAdmin: AuthorizationRightRule =
145 | AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
| `- error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
146 | /// The user must authenticate as the session owner (logged-in user).
147 | public static let authenticateAsSessionUser: AuthorizationRightRule =
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
146 | /// The user must authenticate as the session owner (logged-in user).
147 | public static let authenticateAsSessionUser: AuthorizationRightRule =
148 | AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
| `- error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
149 | /// Always allows the specified right.
150 | public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
148 | AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 | /// Always allows the specified right.
150 | public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
| `- error: cannot find 'kAuthorizationRuleClassAllow' in scope
151 | /// Always denies the specified right.
152 | public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
150 | public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
151 | /// Always denies the specified right.
152 | public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
| `- error: cannot find 'kAuthorizationRuleClassDeny' in scope
153 | }
154 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
204 | public let entries: [String : Any]
205 |
206 | fileprivate init(entries: CFDictionary) {
| `- error: cannot find type 'CFDictionary' in scope
207 | var castEntries = [String: Any]()
208 | for (key, value) in entries as NSDictionary {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
298 |
299 | /// Undocumented, but in practice appears to be the designated requirement of the application which created the right definition.
300 | public var requirement: SecRequirement? {
| `- error: cannot find type 'SecRequirement' in scope
301 | var requirement: SecRequirement?
302 | if let requirementString = self.entries["requirement"] as? String {
[38/58] Compiling Required Requirement+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[39/58] Compiling Required Data+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[40/58] Compiling Required SecCertificate+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[41/58] Compiling Required SecCode+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[42/58] Compiling Required SecRequirement+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[43/58] Compiling Required IdentifierConstraint+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[44/58] Compiling Required InfoConstraint+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[45/58] Compiling Required MatchExpression+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[46/58] Compiling Required NegationRequirement+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[47/58] Compiling Required OrRequirement+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[48/58] Compiling Required ParenthesesRequirement+Evaluate.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
[49/58] Compiling Authorized AuthorizationElements.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
21 | ///
22 | /// A closure must be used to because the memory pointers referenced are only valid within the closure.
23 | func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'AuthorizationItemSet' in scope
24 | return try self.name.withCString { namePointer in
25 | var mutableValue = value
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
211 |
212 | internal extension Set where Element: AuthorizationElement {
213 | func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'AuthorizationItemSet' in scope
214 | try Set<Element>.convertRecursively(wrappers: Array<Element>(self), items: [], body: body)
215 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
220 | private static func convertRecursively<Result>(
221 | wrappers: [AuthorizationElement],
222 | items: [AuthorizationItem],
| `- error: cannot find type 'AuthorizationItem' in scope
223 | body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
224 | ) rethrows -> Result {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
221 | wrappers: [AuthorizationElement],
222 | items: [AuthorizationItem],
223 | body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
| `- error: cannot find type 'AuthorizationItemSet' in scope
224 | ) rethrows -> Result {
225 | // One or more wrappers to be converted
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
254 | }
255 |
256 | internal extension AuthorizationItem {
| `- error: cannot find type 'AuthorizationItem' in scope
257 | func wrap<T>(type: T.Type) -> T where T: AuthorizationElement {
258 | let name = String(cString: self.name)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
270 | }
271 |
272 | internal extension AuthorizationItemSet {
| `- error: cannot find type 'AuthorizationItemSet' in scope
273 | func wrap<T>(type: T.Type) -> [T] where T: AuthorizationElement {
274 | var items = [T]()
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:27:28: error: cannot find 'AuthorizationItem' in scope
25 | var mutableValue = value
26 | return try mutableValue.withUnsafeMutableBufferPointer { valuePointer in
27 | let item = AuthorizationItem(name: namePointer,
| `- error: cannot find 'AuthorizationItem' in scope
28 | valueLength: value.count,
29 | value: value.count == 0 ? nil : valuePointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:33:35: error: cannot find 'AuthorizationItemSet' in scope
31 | var items = [item]
32 | return try items.withUnsafeMutableBufferPointer { buffer in
33 | var itemSet = AuthorizationItemSet(count: 1, items: buffer.baseAddress)
| `- error: cannot find 'AuthorizationItemSet' in scope
34 |
35 | return try body(&itemSet)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:93:30: error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
91 | /// asynchronous equivalents. Otherwise this property's value is undefined.
92 | public var cannotPreAuthorize: Bool {
93 | return self.flags == kAuthorizationFlagCanNotPreAuthorize
| `- error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
94 | }
95 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:152:52: error: cannot find 'kAuthorizationEnvironmentUsername' in scope
150 | /// - Returns: The environment entry.
151 | public static func forUsername(_ username: String) -> AuthorizationEnvironmentEntry {
152 | return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentUsername, value: username)
| `- error: cannot find 'kAuthorizationEnvironmentUsername' in scope
153 | }
154 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:161:52: error: cannot find 'kAuthorizationEnvironmentPassword' in scope
159 | /// - Returns: The environment entry.
160 | public static func forPassword(_ password: String) -> AuthorizationEnvironmentEntry {
161 | return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPassword, value: password)
| `- error: cannot find 'kAuthorizationEnvironmentPassword' in scope
162 | }
163 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:171:52: error: cannot find 'kAuthorizationEnvironmentShared' in scope
169 | /// - Returns: The environment entry.
170 | public static func forShared() -> AuthorizationEnvironmentEntry {
171 | return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentShared, value: [])
| `- error: cannot find 'kAuthorizationEnvironmentShared' in scope
172 | }
173 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:179:52: error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
177 | /// - Returns: The environment entry.
178 | public static func forPrompt(message: String) -> AuthorizationEnvironmentEntry {
179 | return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPrompt, value: message)
| `- error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
180 | }
181 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:186:52: error: cannot find 'kAuthorizationEnvironmentIcon' in scope
184 | /// - Returns: The environment entry.
185 | public static func forIcon(_ icon: URL) -> AuthorizationEnvironmentEntry {
186 | return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentIcon, value: icon.absoluteString)
| `- error: cannot find 'kAuthorizationEnvironmentIcon' in scope
187 | }
188 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:233:32: error: cannot find 'AuthorizationItem' in scope
231 | var mutableValue = wrapper.value
232 | return try mutableValue.withUnsafeMutableBufferPointer { valuePointer in
233 | let item = AuthorizationItem(name: namePointer,
| `- error: cannot find 'AuthorizationItem' in scope
234 | valueLength: wrapper.value.count,
235 | value: valuePointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:248:31: error: cannot find 'AuthorizationItemSet' in scope
246 | let count = UInt32(items.count)
247 | return try mutableItems.withUnsafeMutableBufferPointer { buffer in
248 | var itemSet = AuthorizationItemSet(count: count, items: buffer.baseAddress)
| `- error: cannot find 'AuthorizationItemSet' in scope
249 |
250 | return try body(&itemSet)
[50/58] Compiling Authorized Authorization.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
38 | ///
39 | /// This reference is only valid during the lifetime of its enclosing ``Authorization`` instance's lifetime.
40 | public let authorizationRef: AuthorizationRef
| `- error: cannot find type 'AuthorizationRef' in scope
41 |
42 | /// Creates a new instance with no rights.
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
65 | }
66 |
67 | private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
| `- error: cannot find 'AuthorizationExternalForm' in scope
68 |
69 | /// Deserializes a `Data` instance into an `AuthorizationRef`.
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
68 |
69 | /// Deserializes a `Data` instance into an `AuthorizationRef`.
70 | private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
| `- error: cannot find type 'AuthorizationRef' in scope
71 | // The encoded data is only valid if the count matches that of the AuthorizationExternalForm's bytes tuple
72 | if serialization.count != externalFormChildrenCount {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:47:13: error: cannot find 'AuthorizationCreate' in scope
45 | public init() throws {
46 | self.authorizationRef = try AuthorizationError.throwIfFailure { authorization in
47 | AuthorizationCreate(nil, nil, [], &authorization)
| `- error: cannot find 'AuthorizationCreate' in scope
48 | }
49 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 | /// Wrap an authorization function which requires a parameter to be populated. An ``AuthorizationError`` will be thrown unless the result
69 | /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 | internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
| `- error: cannot find type 'OSStatus' in scope
71 | var value: T?
72 | let result = authorizationFunction(&value)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 | /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 | internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
| `- error: cannot find type 'OSStatus' in scope
62 | let result = authorizationFunction()
63 | if result != errSecSuccess {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:47:33: error: 'nil' requires a contextual type
45 | public init() throws {
46 | self.authorizationRef = try AuthorizationError.throwIfFailure { authorization in
47 | AuthorizationCreate(nil, nil, [], &authorization)
| `- error: 'nil' requires a contextual type
48 | }
49 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:47:38: error: 'nil' requires a contextual type
45 | public init() throws {
46 | self.authorizationRef = try AuthorizationError.throwIfFailure { authorization in
47 | AuthorizationCreate(nil, nil, [], &authorization)
| `- error: 'nil' requires a contextual type
48 | }
49 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:53:9: error: cannot find 'AuthorizationFree' in scope
51 | /// Frees the underlying [`AuthorizationRef`](https://developer.apple.com/documentation/security/authorizationref).
52 | deinit {
53 | AuthorizationFree(self.authorizationRef, AuthorizationFlags())
| `- error: cannot find 'AuthorizationFree' in scope
54 | }
55 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:53:50: error: cannot find 'AuthorizationFlags' in scope
51 | /// Frees the underlying [`AuthorizationRef`](https://developer.apple.com/documentation/security/authorizationref).
52 | deinit {
53 | AuthorizationFree(self.authorizationRef, AuthorizationFlags())
| `- error: cannot find 'AuthorizationFlags' in scope
54 | }
55 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:73:44: error: cannot find 'errSecInvalidEncoding' in scope
71 | // The encoded data is only valid if the count matches that of the AuthorizationExternalForm's bytes tuple
72 | if serialization.count != externalFormChildrenCount {
73 | throw AuthorizationError.other(errSecInvalidEncoding)
| `- error: cannot find 'errSecInvalidEncoding' in scope
74 | }
75 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
39 | case badAddress
40 | /// Represents other errors.
41 | case other(OSStatus)
| `- error: cannot find type 'OSStatus' in scope
42 |
43 | private static let mapping = [
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:86:28: error: cannot find 'AuthorizationExternalForm' in scope
84 | int8Array[24], int8Array[25], int8Array[26], int8Array[27],
85 | int8Array[28], int8Array[29], int8Array[30], int8Array[31])
86 | var externalForm = AuthorizationExternalForm(bytes: bytes)
| `- error: cannot find 'AuthorizationExternalForm' in scope
87 |
88 | // Create the authorization
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:122:21: error: cannot find 'AuthorizationCreate' in scope
120 | options.insert(.destroyRights)
121 | try AuthorizationError.throwIfFailure {
122 | AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
| `- error: cannot find 'AuthorizationCreate' in scope
123 | }
124 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
211 |
212 | internal extension Set where Element: AuthorizationElement {
213 | func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'AuthorizationItemSet' in scope
214 | try Set<Element>.convertRecursively(wrappers: Array<Element>(self), items: [], body: body)
215 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
32 |
33 | internal extension Set where Element == AuthorizationOption {
34 | func asAuthorizationFlags() -> AuthorizationFlags {
| `- error: cannot find type 'AuthorizationFlags' in scope
35 | var flags = [AuthorizationFlags]()
36 | for element in self {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:122:108: error: 'nil' requires a contextual type
120 | options.insert(.destroyRights)
121 | try AuthorizationError.throwIfFailure {
122 | AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:186:21: error: cannot find 'AuthorizationCopyRights' in scope
184 | let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
185 | try AuthorizationError.throwIfFailure { authorizedRights in
186 | AuthorizationCopyRights(self.authorizationRef,
| `- error: cannot find 'AuthorizationCopyRights' in scope
187 | rightsPointer,
188 | environmentPointer,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:184:60: error: cannot find type 'AuthorizationItemSet' in scope
182 | return try rights.withUnsafePointer { rightsPointer in
183 | return try environment.withUnsafePointer { environmentPointer in
184 | let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
| `- error: cannot find type 'AuthorizationItemSet' in scope
185 | try AuthorizationError.throwIfFailure { authorizedRights in
186 | AuthorizationCopyRights(self.authorizationRef,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:182:27: error: type of expression is ambiguous without a type annotation
180 | options: Set<AuthorizationOption>
181 | ) throws -> [AuthorizationRight] {
182 | return try rights.withUnsafePointer { rightsPointer in
| `- error: type of expression is ambiguous without a type annotation
183 | return try environment.withUnsafePointer { environmentPointer in
184 | let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:226:26: error: cannot find 'errAuthorizationSuccess' in scope
224 | let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
225 | let result: Result<[AuthorizationRight], AuthorizationError>
226 | if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
| `- error: cannot find 'errAuthorizationSuccess' in scope
227 | result = .success(rightsPointer.pointee.wrap(type: AuthorizationRight.self))
228 | } else {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:224:41: error: cannot find type 'OSStatus' in scope
222 | callback: @escaping ((Result<[AuthorizationRight], AuthorizationError>) -> Void)
223 | ) {
224 | let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
| `- error: cannot find type 'OSStatus' in scope
225 | let result: Result<[AuthorizationRight], AuthorizationError>
226 | if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:224:87: error: cannot find type 'AuthorizationRights' in scope
222 | callback: @escaping ((Result<[AuthorizationRight], AuthorizationError>) -> Void)
223 | ) {
224 | let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
| `- error: cannot find type 'AuthorizationRights' in scope
225 | let result: Result<[AuthorizationRight], AuthorizationError>
226 | if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:236:17: error: cannot find 'AuthorizationCopyRightsAsync' in scope
234 | rights.withUnsafePointer { rightsPointer in
235 | environment.withUnsafePointer { environmentPointer in
236 | AuthorizationCopyRightsAsync(self.authorizationRef,
| `- error: cannot find 'AuthorizationCopyRightsAsync' in scope
237 | rightsPointer,
238 | environmentPointer,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:297:17: error: cannot find 'AuthorizationCopyInfo' in scope
295 | let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
296 | let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
297 | AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
| `- error: cannot find 'AuthorizationCopyInfo' in scope
298 | }
299 | defer { AuthorizationFreeItemSet(info) }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:296:44: error: cannot find type 'AuthorizationItemSet' in scope
294 | public func retrieveInfo(tag: String? = nil) throws -> [String : ContiguousArray<CChar>] {
295 | let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
296 | let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
| `- error: cannot find type 'AuthorizationItemSet' in scope
297 | AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
298 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:295:31: error: unable to infer closure type without a type annotation
293 | /// - Returns: Dictionary of side-band authorization information. While the values can be anything, in practice they're often UTF8 encoded C strings.
294 | public func retrieveInfo(tag: String? = nil) throws -> [String : ContiguousArray<CChar>] {
295 | let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
| `- error: unable to infer closure type without a type annotation
296 | let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
297 | AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:306:40: error: converting non-escaping value to '(UnsafePointer<Int8>) throws -> [AuthorizationInfo]' may allow it to escape
304 | let info: [AuthorizationInfo]
305 | if let tag = tag {
306 | info = try tag.withCString(copyInfoClosure)
| `- error: converting non-escaping value to '(UnsafePointer<Int8>) throws -> [AuthorizationInfo]' may allow it to escape
307 | } else {
308 | info = try copyInfoClosure(nil)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:308:40: error: 'nil' requires a contextual type
306 | info = try tag.withCString(copyInfoClosure)
307 | } else {
308 | info = try copyInfoClosure(nil)
| `- error: 'nil' requires a contextual type
309 | }
310 | let infoDictionary = Dictionary(uniqueKeysWithValues: info.map{ ($0.name, $0.value ) })
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:13: error: cannot find 'AuthorizationFree' in scope
318 | public func destroyRights() throws {
319 | try AuthorizationError.throwIfFailure {
320 | AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
| `- error: cannot find 'AuthorizationFree' in scope
321 | }
322 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:54: error: cannot find 'AuthorizationFlags' in scope
318 | public func destroyRights() throws {
319 | try AuthorizationError.throwIfFailure {
320 | AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
| `- error: cannot find 'AuthorizationFlags' in scope
321 | }
322 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:75: error: reference to member 'destroyRights' cannot be resolved without a contextual type
318 | public func destroyRights() throws {
319 | try AuthorizationError.throwIfFailure {
320 | AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
| `- error: reference to member 'destroyRights' cannot be resolved without a contextual type
321 | }
322 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:338:28: error: cannot find 'AuthorizationExternalForm' in scope
336 | private func serialize() throws -> Data {
337 | // Convert authorization into external form
338 | var externalForm = AuthorizationExternalForm()
| `- error: cannot find 'AuthorizationExternalForm' in scope
339 | try AuthorizationError.throwIfFailure {
340 | AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:340:13: error: cannot find 'AuthorizationMakeExternalForm' in scope
338 | var externalForm = AuthorizationExternalForm()
339 | try AuthorizationError.throwIfFailure {
340 | AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
| `- error: cannot find 'AuthorizationMakeExternalForm' in scope
341 | }
342 |
[51/58] Compiling Authorized AuthorizationError.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
39 | case badAddress
40 | /// Represents other errors.
41 | case other(OSStatus)
| `- error: cannot find type 'OSStatus' in scope
42 |
43 | private static let mapping = [
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
42 |
43 | private static let mapping = [
44 | errAuthorizationInvalidSet: invalidSet,
| `- error: cannot find 'errAuthorizationInvalidSet' in scope
45 | errAuthorizationInvalidRef: invalidRef,
46 | errAuthorizationInvalidTag: invalidTag,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
43 | private static let mapping = [
44 | errAuthorizationInvalidSet: invalidSet,
45 | errAuthorizationInvalidRef: invalidRef,
| `- error: cannot find 'errAuthorizationInvalidRef' in scope
46 | errAuthorizationInvalidTag: invalidTag,
47 | errAuthorizationInvalidPointer: invalidPointer,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
44 | errAuthorizationInvalidSet: invalidSet,
45 | errAuthorizationInvalidRef: invalidRef,
46 | errAuthorizationInvalidTag: invalidTag,
| `- error: cannot find 'errAuthorizationInvalidTag' in scope
47 | errAuthorizationInvalidPointer: invalidPointer,
48 | errAuthorizationDenied: denied,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
45 | errAuthorizationInvalidRef: invalidRef,
46 | errAuthorizationInvalidTag: invalidTag,
47 | errAuthorizationInvalidPointer: invalidPointer,
| `- error: cannot find 'errAuthorizationInvalidPointer' in scope
48 | errAuthorizationDenied: denied,
49 | errAuthorizationCanceled: canceled,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
46 | errAuthorizationInvalidTag: invalidTag,
47 | errAuthorizationInvalidPointer: invalidPointer,
48 | errAuthorizationDenied: denied,
| `- error: cannot find 'errAuthorizationDenied' in scope
49 | errAuthorizationCanceled: canceled,
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
47 | errAuthorizationInvalidPointer: invalidPointer,
48 | errAuthorizationDenied: denied,
49 | errAuthorizationCanceled: canceled,
| `- error: cannot find 'errAuthorizationCanceled' in scope
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
51 | errAuthorizationInternal: internalError,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
48 | errAuthorizationDenied: denied,
49 | errAuthorizationCanceled: canceled,
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
| `- error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
51 | errAuthorizationInternal: internalError,
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
49 | errAuthorizationCanceled: canceled,
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
51 | errAuthorizationInternal: internalError,
| `- error: cannot find 'errAuthorizationInternal' in scope
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
50 | errAuthorizationInteractionNotAllowed: interactionNotAllowed,
51 | errAuthorizationInternal: internalError,
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
| `- error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
54 | errAuthorizationInvalidFlags: invalidFlags,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
51 | errAuthorizationInternal: internalError,
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
| `- error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
54 | errAuthorizationInvalidFlags: invalidFlags,
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
52 | errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
54 | errAuthorizationInvalidFlags: invalidFlags,
| `- error: cannot find 'errAuthorizationInvalidFlags' in scope
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
53 | errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
54 | errAuthorizationInvalidFlags: invalidFlags,
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
| `- error: cannot find 'errAuthorizationToolExecuteFailure' in scope
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
57 | errAuthorizationBadAddress: badAddress
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
54 | errAuthorizationInvalidFlags: invalidFlags,
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
| `- error: cannot find 'errAuthorizationToolEnvironmentError' in scope
57 | errAuthorizationBadAddress: badAddress
58 | ]
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
55 | errAuthorizationToolExecuteFailure: toolExecuteFailure,
56 | errAuthorizationToolEnvironmentError: toolEnvironmentError,
57 | errAuthorizationBadAddress: badAddress
| `- error: cannot find 'errAuthorizationBadAddress' in scope
58 | ]
59 |
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 | /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 | internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
| `- error: cannot find type 'OSStatus' in scope
62 | let result = authorizationFunction()
63 | if result != errSecSuccess {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 | /// Wrap an authorization function which requires a parameter to be populated. An ``AuthorizationError`` will be thrown unless the result
69 | /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 | internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
| `- error: cannot find type 'OSStatus' in scope
71 | var value: T?
72 | let result = authorizationFunction(&value)
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
80 | /// Returns the corresponding ``AuthorizationError`` case for `result` or ``AuthorizationError/other(_:)`` if the value has no
81 | /// corresponding case.
82 | internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
| `- error: cannot find type 'OSStatus' in scope
83 | let error: AuthorizationError
84 | if let mappedError = mapping[result] {
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:63:22: error: cannot find 'errSecSuccess' in scope
61 | internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
62 | let result = authorizationFunction()
63 | if result != errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
64 | throw fromResult(result)
65 | }
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:73:22: error: cannot find 'errSecSuccess' in scope
71 | var value: T?
72 | let result = authorizationFunction(&value)
73 | if result == errSecSuccess, let value = value {
| `- error: cannot find 'errSecSuccess' in scope
74 | return value
75 | } else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/58] Emitting module Required
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
6 | //
7 |
8 | import Security
| `- error: no such module 'Security'
9 |
10 | extension AndRequirement {
BUILD FAILURE 6.0 linux