Build Information
Failed to build Blessed with Swift 5.8 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/Blessed.git
Reference: 0.6.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/trilemma-dev/Blessed
* tag 0.6.0 -> FETCH_HEAD
HEAD is now at e7c730e Merge pull request #16 from trilemma-dev/bless-only
Cloned https://github.com/trilemma-dev/Blessed.git
Revision (git rev-parse @):
e7c730ea4bcd2df7b61f022dbd38c5cdc2c875de
SUCCESS checkout https://github.com/trilemma-dev/Blessed.git at 0.6.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/trilemma-dev/Authorized.git
Fetching https://github.com/trilemma-dev/EmbeddedPropertyList.git
Fetching https://github.com/trilemma-dev/Required.git
[1/36] Fetching authorized
[8/193] Fetching authorized, embeddedpropertylist
[52/469] Fetching authorized, embeddedpropertylist, required
Fetched https://github.com/trilemma-dev/Authorized.git (0.29s)
Fetched https://github.com/trilemma-dev/EmbeddedPropertyList.git (0.29s)
Fetched https://github.com/trilemma-dev/Required.git (0.29s)
Computing version for https://github.com/trilemma-dev/Authorized.git
Computed https://github.com/trilemma-dev/Authorized.git at 1.0.0 (0.30s)
Computing version for https://github.com/trilemma-dev/Required.git
Computed https://github.com/trilemma-dev/Required.git at 0.1.1 (0.30s)
Computing version for https://github.com/trilemma-dev/EmbeddedPropertyList.git
Computed https://github.com/trilemma-dev/EmbeddedPropertyList.git at 2.0.2 (0.54s)
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
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/Required.git
Working copy of https://github.com/trilemma-dev/Required.git resolved at 0.1.1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/48] Emitting module Authorized
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
public let authorizationRef: AuthorizationRef
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
items: [AuthorizationItem],
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
case other(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
errAuthorizationInvalidSet: invalidSet,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
errAuthorizationInvalidRef: invalidRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
errAuthorizationInvalidTag: invalidTag,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
errAuthorizationInvalidPointer: invalidPointer,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
errAuthorizationDenied: denied,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
errAuthorizationCanceled: canceled,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
errAuthorizationInteractionNotAllowed: interactionNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
errAuthorizationInternal: internalError,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
errAuthorizationInvalidFlags: invalidFlags,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
errAuthorizationToolExecuteFailure: toolExecuteFailure,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
errAuthorizationToolEnvironmentError: toolEnvironmentError,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
errAuthorizationBadAddress: badAddress
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
func asAuthorizationFlags() -> AuthorizationFlags {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
fileprivate init(entries: CFDictionary) {
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
public var requirement: SecRequirement? {
^~~~~~~~~~~~~~
[2/48] Compiling Required ParenthesesRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[3/48] Compiling Required Parser.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[4/48] Compiling Required ParserError.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[5/48] Compiling Required Requirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[6/48] Compiling Required RequirementSet.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[7/48] Compiling Required InfoConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[8/48] Compiling Required KeyExpression.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[9/48] Compiling Required MatchExpression.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[10/48] Compiling Required NegationRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[11/48] Compiling Required OrRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[12/53] Compiling Required Symbols.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[13/53] Compiling Required WildcardString.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[14/53] Compiling Required Token.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[15/53] Compiling Required TokenizationError.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[16/53] Compiling Required Tokenizer.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[17/53] 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'
import Security
^
[18/53] 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'
import Security
^
[19/53] 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'
import Security
^
[20/53] 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'
import Security
^
[21/53] 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'
import Security
^
[22/53] Compiling Authorized AuthorizationOption.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
func asAuthorizationFlags() -> AuthorizationFlags {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:35:22: error: cannot find 'AuthorizationFlags' in scope
var flags = [AuthorizationFlags]()
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:35:21: error: cannot call value of non-function type '[Any]'
var flags = [AuthorizationFlags]()
^ ~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:38:58: error: cannot find 'AuthorizationFlags' in scope
case .interactionAllowed: flags.append(AuthorizationFlags.interactionAllowed)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:39:58: error: cannot find 'AuthorizationFlags' in scope
case .extendRights: flags.append(AuthorizationFlags.extendRights)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:40:58: error: cannot find 'AuthorizationFlags' in scope
case .partialRights: flags.append(AuthorizationFlags.partialRights)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:41:58: error: cannot find 'AuthorizationFlags' in scope
case .destroyRights: flags.append(AuthorizationFlags.destroyRights)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:42:58: error: cannot find 'AuthorizationFlags' in scope
case .preAuthorize: flags.append(AuthorizationFlags.preAuthorize)
^~~~~~~~~~~~~~~~~~
[23/53] Compiling Authorized AuthorizationPolicyDatabase.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
fileprivate init(entries: CFDictionary) {
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
public var requirement: SecRequirement? {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:26:26: error: cannot find 'AuthorizationRightGet' in scope
let result = AuthorizationRightGet(namePointer, &entries)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:27:26: error: cannot find 'errAuthorizationSuccess' in scope
if result == errAuthorizationSuccess, let entries = entries {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:29:33: error: cannot find 'errAuthorizationDenied' in scope
} else if result == errAuthorizationDenied {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:26: error: cannot find 'AuthorizationRightGet' in scope
let result = AuthorizationRightGet(namePointer, nil)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:49:26: error: cannot find 'errAuthorizationSuccess' in scope
if result == errAuthorizationSuccess {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:51:33: error: cannot find 'errAuthorizationDenied' in scope
} else if result == errAuthorizationDenied {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:85:28: error: cannot find 'CFBundleCreate' in scope
cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:91:33: error: cannot find 'kAuthorizationRightRule' in scope
rightDefinition[kAuthorizationRightRule] = rule.name
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:94:33: error: cannot find 'kAuthorizationComment' in scope
rightDefinition[kAuthorizationComment] = comment
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:106:17: error: cannot find 'AuthorizationRightSet' in scope
AuthorizationRightSet(auth.authorizationRef,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:125:17: error: cannot find 'AuthorizationRightRemove' in scope
AuthorizationRightRemove(authorization.authorizationRef, namePointer)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:251:22: error: cannot find 'kAuthorizationComment' in scope
self.entries[kAuthorizationComment] as? String
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:259:44: error: cannot find 'kAuthorizationRightRule' in scope
if let ruleElements = self.entries[kAuthorizationRightRule] as? [String] {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:301:26: error: cannot find type 'SecRequirement' in scope
var requirement: SecRequirement?
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:13: error: cannot find 'SecRequirementCreateWithString' in scope
SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:75: error: cannot find 'SecCSFlags' in scope
SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:65: error: cannot find type 'CFString' in scope
SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
^~~~~~~~
[24/53] Compiling EmbeddedPropertyList ReadError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/53] Compiling EmbeddedPropertyList BundleVersion.swift
[26/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
private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [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
fileprivate func asDarwinType() throws -> cpu_type_t {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
private func cpuType() throws -> cpu_type_t {
^~~~~~~~~~
[27/53] Compiling Authorized AuthorizationError.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
case other(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
errAuthorizationInvalidSet: invalidSet,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
errAuthorizationInvalidRef: invalidRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
errAuthorizationInvalidTag: invalidTag,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
errAuthorizationInvalidPointer: invalidPointer,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
errAuthorizationDenied: denied,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
errAuthorizationCanceled: canceled,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
errAuthorizationInteractionNotAllowed: interactionNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
errAuthorizationInternal: internalError,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
errAuthorizationInvalidFlags: invalidFlags,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
errAuthorizationToolExecuteFailure: toolExecuteFailure,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
errAuthorizationToolEnvironmentError: toolEnvironmentError,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
errAuthorizationBadAddress: badAddress
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:63:22: error: cannot find 'errSecSuccess' in scope
if result != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:73:22: error: cannot find 'errSecSuccess' in scope
if result == errSecSuccess, let value = value {
^~~~~~~~~~~~~
[28/53] Compiling Required CertificateConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[29/53] Compiling Required CodeDirectoryHashConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[30/53] Compiling Required Constraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[31/53] Compiling Required EntitlementConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[32/53] Compiling Required IdentifierConstraint.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[33/53] 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'
import Security
^
[34/53] 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'
import Security
^
[35/53] Compiling Required SecurityCommon.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[36/53] Compiling Required SecurityError.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[37/53] Compiling Required AndRequirement.swift
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
[38/53] 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'
import Security
^
[39/53] 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'
import Security
^
[40/53] 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'
import Security
^
[41/53] 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'
import Security
^
[42/53] 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'
import Security
^
[43/53] 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'
import Security
^
[44/53] Compiling Authorized Authorization.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
public let authorizationRef: AuthorizationRef
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:47:13: error: cannot find 'AuthorizationCreate' in scope
AuthorizationCreate(nil, nil, [], &authorization)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:53:9: error: cannot find 'AuthorizationFree' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags())
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:53:50: error: cannot find 'AuthorizationFlags' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags())
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:73:44: error: cannot find 'errSecInvalidEncoding' in scope
throw AuthorizationError.other(errSecInvalidEncoding)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
case other(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:86:28: error: cannot find 'AuthorizationExternalForm' in scope
var externalForm = AuthorizationExternalForm(bytes: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:122:21: error: cannot find 'AuthorizationCreate' in scope
AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:186:21: error: cannot find 'AuthorizationCopyRights' in scope
AuthorizationCopyRights(self.authorizationRef,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:226:26: error: cannot find 'errAuthorizationSuccess' in scope
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
AuthorizationCopyRightsAsync(self.authorizationRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:297:17: error: cannot find 'AuthorizationCopyInfo' in scope
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
info = try tag.withCString(copyInfoClosure)
^
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:308:40: error: 'nil' requires a contextual type
info = try copyInfoClosure(nil)
^
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:13: error: cannot find 'AuthorizationFree' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:54: error: cannot find 'AuthorizationFlags' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:338:28: error: cannot find 'AuthorizationExternalForm' in scope
var externalForm = AuthorizationExternalForm()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:340:13: error: cannot find 'AuthorizationMakeExternalForm' in scope
AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:184:60: error: cannot find type 'AuthorizationItemSet' in scope
let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:296:44: error: cannot find type 'AuthorizationItemSet' in scope
let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
^~~~~~~~~~~~~~~~~~~~
[45/53] Compiling Authorized AuthorizationElements.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
items: [AuthorizationItem],
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:27:28: error: cannot find 'AuthorizationItem' in scope
let item = AuthorizationItem(name: namePointer,
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:33:35: error: cannot find 'AuthorizationItemSet' in scope
var itemSet = AuthorizationItemSet(count: 1, items: buffer.baseAddress)
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:93:30: error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
return self.flags == kAuthorizationFlagCanNotPreAuthorize
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:152:52: error: cannot find 'kAuthorizationEnvironmentUsername' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentUsername, value: username)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:161:52: error: cannot find 'kAuthorizationEnvironmentPassword' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPassword, value: password)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:171:52: error: cannot find 'kAuthorizationEnvironmentShared' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentShared, value: [])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:179:52: error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPrompt, value: message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:186:52: error: cannot find 'kAuthorizationEnvironmentIcon' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentIcon, value: icon.absoluteString)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:233:32: error: cannot find 'AuthorizationItem' in scope
let item = AuthorizationItem(name: namePointer,
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:248:31: error: cannot find 'AuthorizationItemSet' in scope
var itemSet = AuthorizationItemSet(count: count, items: buffer.baseAddress)
^~~~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/53] Emitting module Required
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [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
fileprivate func asDarwinType() throws -> cpu_type_t {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
private func cpuType() throws -> cpu_type_t {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:47:78: error: cannot find 'mach_header_64' in scope
let mhExecuteBoundPointer = mhExecutePointer.assumingMemoryBound(to: mach_header_64.self)
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:50:29: error: cannot find 'getsectiondata' in scope
guard let section = getsectiondata(mhExecuteBoundPointer, "__TEXT", self.sectionName, &size) else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:56: error: cannot find 'mach_header_64' in scope
let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:115:40: error: cannot find 'getsectbynamefromheader_64' in scope
guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:26: error: cannot find 'MH_MAGIC' in scope
return (magic == MH_MAGIC) || (magic == MH_CIGAM)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:49: error: cannot find 'MH_CIGAM' in scope
return (magic == MH_MAGIC) || (magic == MH_CIGAM)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:26: error: cannot find 'MH_MAGIC_64' in scope
return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:52: error: cannot find 'MH_CIGAM_64' in scope
return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:24: error: cannot find 'FAT_MAGIC' in scope
return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:48: error: cannot find 'FAT_CIGAM' in scope
return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:26: error: cannot find 'MH_CIGAM' in scope
return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:49: error: cannot find 'MH_CIGAM_64' in scope
return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:75: error: cannot find 'FAT_CIGAM' in scope
return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:28: error: cannot find 'cpu_type_t' in scope
var archOffsets = [cpu_type_t : UInt32]()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:27: error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
var archOffsets = [cpu_type_t : UInt32]()
^ ~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:37: error: cannot find 'fat_header' in scope
var header = read(data, as: fat_header.self, fromByteOffset: 0)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:22: error: type of expression is ambiguous without more context
var header = read(data, as: fat_header.self, fromByteOffset: 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:13: error: cannot find 'swap_fat_header' in scope
swap_fat_header(&header, NXHostByteOrder())
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:38: error: cannot find 'NXHostByteOrder' in scope
swap_fat_header(&header, NXHostByteOrder())
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:216:39: error: cannot find type 'fat_header' in scope
var archOffset = MemoryLayout<fat_header>.size
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:262:27: error: cannot find 'cpu_type_t' in scope
var cpuType = cpu_type_t()
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:263:37: error: cannot find type 'cpu_type_t' in scope
var size = MemoryLayout<cpu_type_t>.size
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:19: error: cannot find 'sysctlbyname' in scope
guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:63: error: 'nil' requires a contextual type
guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
^
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:19: error: cannot find 'sysctlbyname' in scope
guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:77: error: 'nil' requires a contextual type
guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
^
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:276:56: error: cannot find 'CPU_ARCH_ABI64' in scope
cpuType = (capable64bit == 1) ? (cpuType | CPU_ARCH_ABI64) : cpuType
^~~~~~~~~~~~~~
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/46] Emitting module Authorized
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
public let authorizationRef: AuthorizationRef
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
items: [AuthorizationItem],
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
case other(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
errAuthorizationInvalidSet: invalidSet,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
errAuthorizationInvalidRef: invalidRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
errAuthorizationInvalidTag: invalidTag,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
errAuthorizationInvalidPointer: invalidPointer,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
errAuthorizationDenied: denied,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
errAuthorizationCanceled: canceled,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
errAuthorizationInteractionNotAllowed: interactionNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
errAuthorizationInternal: internalError,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
errAuthorizationInvalidFlags: invalidFlags,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
errAuthorizationToolExecuteFailure: toolExecuteFailure,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
errAuthorizationToolEnvironmentError: toolEnvironmentError,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
errAuthorizationBadAddress: badAddress
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
func asAuthorizationFlags() -> AuthorizationFlags {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
fileprivate init(entries: CFDictionary) {
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
public var requirement: SecRequirement? {
^~~~~~~~~~~~~~
[2/46] Compiling Authorized Authorization.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
public let authorizationRef: AuthorizationRef
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:47:13: error: cannot find 'AuthorizationCreate' in scope
AuthorizationCreate(nil, nil, [], &authorization)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:53:9: error: cannot find 'AuthorizationFree' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags())
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:53:50: error: cannot find 'AuthorizationFlags' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags())
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:73:44: error: cannot find 'errSecInvalidEncoding' in scope
throw AuthorizationError.other(errSecInvalidEncoding)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
case other(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:86:28: error: cannot find 'AuthorizationExternalForm' in scope
var externalForm = AuthorizationExternalForm(bytes: bytes)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:122:21: error: cannot find 'AuthorizationCreate' in scope
AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:186:21: error: cannot find 'AuthorizationCopyRights' in scope
AuthorizationCopyRights(self.authorizationRef,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:226:26: error: cannot find 'errAuthorizationSuccess' in scope
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
AuthorizationCopyRightsAsync(self.authorizationRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:297:17: error: cannot find 'AuthorizationCopyInfo' in scope
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
info = try tag.withCString(copyInfoClosure)
^
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:308:40: error: 'nil' requires a contextual type
info = try copyInfoClosure(nil)
^
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:13: error: cannot find 'AuthorizationFree' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:320:54: error: cannot find 'AuthorizationFlags' in scope
AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:338:28: error: cannot find 'AuthorizationExternalForm' in scope
var externalForm = AuthorizationExternalForm()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:340:13: error: cannot find 'AuthorizationMakeExternalForm' in scope
AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:184:60: error: cannot find type 'AuthorizationItemSet' in scope
let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/Authorization.swift:296:44: error: cannot find type 'AuthorizationItemSet' in scope
let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
^~~~~~~~~~~~~~~~~~~~
[3/46] Compiling Authorized AuthorizationError.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
case other(OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
errAuthorizationInvalidSet: invalidSet,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
errAuthorizationInvalidRef: invalidRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
errAuthorizationInvalidTag: invalidTag,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
errAuthorizationInvalidPointer: invalidPointer,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
errAuthorizationDenied: denied,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
errAuthorizationCanceled: canceled,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
errAuthorizationInteractionNotAllowed: interactionNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
errAuthorizationInternal: internalError,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
errAuthorizationExternalizeNotAllowed: externalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
errAuthorizationInternalizeNotAllowed: internalizeNotAllowed,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
errAuthorizationInvalidFlags: invalidFlags,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
errAuthorizationToolExecuteFailure: toolExecuteFailure,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
errAuthorizationToolEnvironmentError: toolEnvironmentError,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
errAuthorizationBadAddress: badAddress
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:63:22: error: cannot find 'errSecSuccess' in scope
if result != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationError.swift:73:22: error: cannot find 'errSecSuccess' in scope
if result == errSecSuccess, let value = value {
^~~~~~~~~~~~~
[4/46] Compiling Authorized AuthorizationElements.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
items: [AuthorizationItem],
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:27:28: error: cannot find 'AuthorizationItem' in scope
let item = AuthorizationItem(name: namePointer,
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:33:35: error: cannot find 'AuthorizationItemSet' in scope
var itemSet = AuthorizationItemSet(count: 1, items: buffer.baseAddress)
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:93:30: error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
return self.flags == kAuthorizationFlagCanNotPreAuthorize
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:152:52: error: cannot find 'kAuthorizationEnvironmentUsername' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentUsername, value: username)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:161:52: error: cannot find 'kAuthorizationEnvironmentPassword' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPassword, value: password)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:171:52: error: cannot find 'kAuthorizationEnvironmentShared' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentShared, value: [])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:179:52: error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPrompt, value: message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:186:52: error: cannot find 'kAuthorizationEnvironmentIcon' in scope
return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentIcon, value: icon.absoluteString)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:233:32: error: cannot find 'AuthorizationItem' in scope
let item = AuthorizationItem(name: namePointer,
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:248:31: error: cannot find 'AuthorizationItemSet' in scope
var itemSet = AuthorizationItemSet(count: count, items: buffer.baseAddress)
^~~~~~~~~~~~~~~~~~~~
[5/46] Compiling Authorized AuthorizationPolicyDatabase.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
fileprivate init(entries: CFDictionary) {
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
public var requirement: SecRequirement? {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:26:26: error: cannot find 'AuthorizationRightGet' in scope
let result = AuthorizationRightGet(namePointer, &entries)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:27:26: error: cannot find 'errAuthorizationSuccess' in scope
if result == errAuthorizationSuccess, let entries = entries {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:29:33: error: cannot find 'errAuthorizationDenied' in scope
} else if result == errAuthorizationDenied {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:26: error: cannot find 'AuthorizationRightGet' in scope
let result = AuthorizationRightGet(namePointer, nil)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:49:26: error: cannot find 'errAuthorizationSuccess' in scope
if result == errAuthorizationSuccess {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:51:33: error: cannot find 'errAuthorizationDenied' in scope
} else if result == errAuthorizationDenied {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:85:28: error: cannot find 'CFBundleCreate' in scope
cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:91:33: error: cannot find 'kAuthorizationRightRule' in scope
rightDefinition[kAuthorizationRightRule] = rule.name
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:94:33: error: cannot find 'kAuthorizationComment' in scope
rightDefinition[kAuthorizationComment] = comment
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:106:17: error: cannot find 'AuthorizationRightSet' in scope
AuthorizationRightSet(auth.authorizationRef,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:125:17: error: cannot find 'AuthorizationRightRemove' in scope
AuthorizationRightRemove(authorization.authorizationRef, namePointer)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:251:22: error: cannot find 'kAuthorizationComment' in scope
self.entries[kAuthorizationComment] as? String
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:259:44: error: cannot find 'kAuthorizationRightRule' in scope
if let ruleElements = self.entries[kAuthorizationRightRule] as? [String] {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:301:26: error: cannot find type 'SecRequirement' in scope
var requirement: SecRequirement?
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:13: error: cannot find 'SecRequirementCreateWithString' in scope
SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:75: error: cannot find 'SecCSFlags' in scope
SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:65: error: cannot find type 'CFString' in scope
SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
^~~~~~~~
[6/46] Compiling Authorized AuthorizationOption.swift
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
func asAuthorizationFlags() -> AuthorizationFlags {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:35:22: error: cannot find 'AuthorizationFlags' in scope
var flags = [AuthorizationFlags]()
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:35:21: error: cannot call value of non-function type '[Any]'
var flags = [AuthorizationFlags]()
^ ~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:38:58: error: cannot find 'AuthorizationFlags' in scope
case .interactionAllowed: flags.append(AuthorizationFlags.interactionAllowed)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:39:58: error: cannot find 'AuthorizationFlags' in scope
case .extendRights: flags.append(AuthorizationFlags.extendRights)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:40:58: error: cannot find 'AuthorizationFlags' in scope
case .partialRights: flags.append(AuthorizationFlags.partialRights)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:41:58: error: cannot find 'AuthorizationFlags' in scope
case .destroyRights: flags.append(AuthorizationFlags.destroyRights)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Authorized/Sources/Authorized/AuthorizationOption.swift:42:58: error: cannot find 'AuthorizationFlags' in scope
case .preAuthorize: flags.append(AuthorizationFlags.preAuthorize)
^~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [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
fileprivate func asDarwinType() throws -> cpu_type_t {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
private func cpuType() throws -> cpu_type_t {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/EmbeddedPropertyList/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Required/Sources/Required/Evaluator/AndRequirement+Evaluate.swift:8:8: error: no such module 'Security'
import Security
^
BUILD FAILURE 5.8 linux