This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Authorized with Swift 5.9 for Linux.

Build Command

Build command unavailable

Build Log

========================================
RunAll
========================================
Builder version: 4.27.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/Authorized.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/Authorized
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e490b9d Update README.md
Cloned https://github.com/trilemma-dev/Authorized.git
Revision (git rev-parse @):
e490b9d3f4a0e8b17a8b39b5a9750b8e0be7548a
SUCCESS checkout https://github.com/trilemma-dev/Authorized.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/6] Emitting module Authorized
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
    public let authorizationRef: AuthorizationRef
                                 ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
        items: [AuthorizationItem],
                ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
        body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
                             ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
    case other(OSStatus)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
        errAuthorizationInvalidSet:             invalidSet,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
        errAuthorizationInvalidRef:             invalidRef,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
        errAuthorizationInvalidTag:             invalidTag,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
        errAuthorizationInvalidPointer:         invalidPointer,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
        errAuthorizationDenied:                 denied,
        ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
        errAuthorizationCanceled:               canceled,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
        errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
        errAuthorizationInternal:               internalError,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
        errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
        errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
        errAuthorizationInvalidFlags:           invalidFlags,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
        errAuthorizationToolExecuteFailure:     toolExecuteFailure,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
        errAuthorizationToolEnvironmentError:   toolEnvironmentError,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
        errAuthorizationBadAddress:             badAddress
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
    internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
                                              ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
    func asAuthorizationFlags() -> AuthorizationFlags {
                                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
    public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
    public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
    public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
    fileprivate init(entries: CFDictionary) {
                              ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
    public var requirement: SecRequirement? {
                            ^~~~~~~~~~~~~~
[2/6] Compiling Authorized Authorization.swift
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
    public let authorizationRef: AuthorizationRef
                                 ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/Authorization.swift:47:13: error: cannot find 'AuthorizationCreate' in scope
            AuthorizationCreate(nil, nil, [], &authorization)
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:33: error: 'nil' requires a contextual type
            AuthorizationCreate(nil, nil, [], &authorization)
                                ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:38: error: 'nil' requires a contextual type
            AuthorizationCreate(nil, nil, [], &authorization)
                                     ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:53:9: error: cannot find 'AuthorizationFree' in scope
        AuthorizationFree(self.authorizationRef, AuthorizationFlags())
        ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:53:50: error: cannot find 'AuthorizationFlags' in scope
        AuthorizationFree(self.authorizationRef, AuthorizationFlags())
                                                 ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:73:44: error: cannot find 'errSecInvalidEncoding' in scope
            throw AuthorizationError.other(errSecInvalidEncoding)
                                           ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
    case other(OSStatus)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:86:28: error: cannot find 'AuthorizationExternalForm' in scope
        var externalForm = AuthorizationExternalForm(bytes: bytes)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:122:21: error: cannot find 'AuthorizationCreate' in scope
                    AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
                    ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
    func asAuthorizationFlags() -> AuthorizationFlags {
                                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:122:108: error: 'nil' requires a contextual type
                    AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
                                                                                                           ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:186:21: error: cannot find 'AuthorizationCopyRights' in scope
                    AuthorizationCopyRights(self.authorizationRef,
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:184:60: error: cannot find type 'AuthorizationItemSet' in scope
                let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
                                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:182:27: error: type of expression is ambiguous without a type annotation
        return try rights.withUnsafePointer { rightsPointer in
               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:226:26: error: cannot find 'errAuthorizationSuccess' in scope
            if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:224:41: error: cannot find type 'OSStatus' in scope
        let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
                                        ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:224:87: error: cannot find type 'AuthorizationRights' in scope
        let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
                                                                                      ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:226:16: error: cannot convert value of type '_' to expected argument type '(any Any.Type)?'
            if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
               ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:236:17: error: cannot find 'AuthorizationCopyRightsAsync' in scope
                AuthorizationCopyRightsAsync(self.authorizationRef,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:297:17: error: cannot find 'AuthorizationCopyInfo' in scope
                AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:296:44: error: cannot find type 'AuthorizationItemSet' in scope
            let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:295:31: error: unable to infer closure type without a type annotation
        let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/Authorization.swift:308:40: error: 'nil' requires a contextual type
            info = try copyInfoClosure(nil)
                                       ^
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:13: error: cannot find 'AuthorizationFree' in scope
            AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
            ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:54: error: cannot find 'AuthorizationFlags' in scope
            AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
                                                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:75: error: reference to member 'destroyRights' cannot be resolved without a contextual type
            AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
                                                                          ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:338:28: error: cannot find 'AuthorizationExternalForm' in scope
        var externalForm = AuthorizationExternalForm()
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:340:13: error: cannot find 'AuthorizationMakeExternalForm' in scope
            AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3/6] Compiling Authorized AuthorizationElements.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
        items: [AuthorizationItem],
                ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
        body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
                             ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:27:28: error: cannot find 'AuthorizationItem' in scope
                let item = AuthorizationItem(name: namePointer,
                           ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:33:35: error: cannot find 'AuthorizationItemSet' in scope
                    var itemSet = AuthorizationItemSet(count: 1, items: buffer.baseAddress)
                                  ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:93:30: error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
        return self.flags == kAuthorizationFlagCanNotPreAuthorize
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:152:52: error: cannot find 'kAuthorizationEnvironmentUsername' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentUsername, value: username)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:161:52: error: cannot find 'kAuthorizationEnvironmentPassword' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPassword, value: password)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:171:52: error: cannot find 'kAuthorizationEnvironmentShared' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentShared, value: [])
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:179:52: error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPrompt, value: message)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:186:52: error: cannot find 'kAuthorizationEnvironmentIcon' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentIcon, value: icon.absoluteString)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:233:32: error: cannot find 'AuthorizationItem' in scope
                    let item = AuthorizationItem(name: namePointer,
                               ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:248:31: error: cannot find 'AuthorizationItemSet' in scope
                var itemSet = AuthorizationItemSet(count: count, items: buffer.baseAddress)
                              ^~~~~~~~~~~~~~~~~~~~
[4/6] Compiling Authorized AuthorizationError.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
    case other(OSStatus)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
        errAuthorizationInvalidSet:             invalidSet,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
        errAuthorizationInvalidRef:             invalidRef,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
        errAuthorizationInvalidTag:             invalidTag,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
        errAuthorizationInvalidPointer:         invalidPointer,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
        errAuthorizationDenied:                 denied,
        ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
        errAuthorizationCanceled:               canceled,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
        errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
        errAuthorizationInternal:               internalError,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
        errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
        errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
        errAuthorizationInvalidFlags:           invalidFlags,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
        errAuthorizationToolExecuteFailure:     toolExecuteFailure,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
        errAuthorizationToolEnvironmentError:   toolEnvironmentError,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
        errAuthorizationBadAddress:             badAddress
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
    internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
                                              ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:63:22: error: cannot find 'errSecSuccess' in scope
        if result != errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:73:22: error: cannot find 'errSecSuccess' in scope
        if result == errSecSuccess, let value = value {
                     ^~~~~~~~~~~~~
[5/6] Compiling Authorized AuthorizationPolicyDatabase.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
    public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
    public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
    public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
    fileprivate init(entries: CFDictionary) {
                              ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
    public var requirement: SecRequirement? {
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:26:26: error: cannot find 'AuthorizationRightGet' in scope
            let result = AuthorizationRightGet(namePointer, &entries)
                         ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:27:26: error: cannot find 'errAuthorizationSuccess' in scope
            if result == errAuthorizationSuccess, let entries = entries {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:29:33: error: cannot find 'errAuthorizationDenied' in scope
            } else if result == errAuthorizationDenied {
                                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:25:26: error: cannot find type 'CFDictionary' in scope
            var entries: CFDictionary?
                         ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:23:30: error: type of expression is ambiguous without a type annotation
        return try self.name.withCString { namePointer in
               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:26: error: cannot find 'AuthorizationRightGet' in scope
            let result = AuthorizationRightGet(namePointer, nil)
                         ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:49:26: error: cannot find 'errAuthorizationSuccess' in scope
            if result == errAuthorizationSuccess {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:51:33: error: cannot find 'errAuthorizationDenied' in scope
            } else if result == errAuthorizationDenied {
                                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:61: error: 'nil' requires a contextual type
            let result = AuthorizationRightGet(namePointer, nil)
                                                            ^
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:85:28: error: cannot find 'CFBundleCreate' in scope
                cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:91:33: error: cannot find 'kAuthorizationRightRule' in scope
                rightDefinition[kAuthorizationRightRule] = rule.name
                                ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:94:33: error: cannot find 'kAuthorizationComment' in scope
                rightDefinition[kAuthorizationComment] = comment
                                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:106:17: error: cannot find 'AuthorizationRightSet' in scope
                AuthorizationRightSet(auth.authorizationRef,
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:83:27: error: cannot find type 'CFBundle' in scope
            var cfBundle: CFBundle?
                          ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:81:23: error: type of expression is ambiguous without a type annotation
        try self.name.withCString { namePointer in
        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:125:17: error: cannot find 'AuthorizationRightRemove' in scope
                AuthorizationRightRemove(authorization.authorizationRef, namePointer)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
    public let authorizationRef: AuthorizationRef
                                 ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:251:22: error: cannot find 'kAuthorizationComment' in scope
        self.entries[kAuthorizationComment] as? String
                     ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:259:44: error: cannot find 'kAuthorizationRightRule' in scope
        if let ruleElements = self.entries[kAuthorizationRightRule] as? [String] {
                                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:301:26: error: cannot find type 'SecRequirement' in scope
        var requirement: SecRequirement?
                         ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:13: error: cannot find 'SecRequirementCreateWithString' in scope
            SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:75: error: cannot find 'SecCSFlags' in scope
            SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
                                                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:65: error: cannot find type 'CFString' in scope
            SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
                                                                ^~~~~~~~
[6/6] Compiling Authorized AuthorizationOption.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
    func asAuthorizationFlags() -> AuthorizationFlags {
                                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:35:22: error: cannot find 'AuthorizationFlags' in scope
        var flags = [AuthorizationFlags]()
                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:35:21: error: cannot call value of non-function type '[Any]'
        var flags = [AuthorizationFlags]()
                    ^                   ~~

/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:38:58: error: cannot find 'AuthorizationFlags' in scope
                case .interactionAllowed:   flags.append(AuthorizationFlags.interactionAllowed)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:39:58: error: cannot find 'AuthorizationFlags' in scope
                case .extendRights:         flags.append(AuthorizationFlags.extendRights)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:40:58: error: cannot find 'AuthorizationFlags' in scope
                case .partialRights:        flags.append(AuthorizationFlags.partialRights)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:41:58: error: cannot find 'AuthorizationFlags' in scope
                case .destroyRights:        flags.append(AuthorizationFlags.destroyRights)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:42:58: error: cannot find 'AuthorizationFlags' in scope
                case .preAuthorize:         flags.append(AuthorizationFlags.preAuthorize)
                                                         ^~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[1/6] Compiling Authorized AuthorizationError.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
    case other(OSStatus)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
        errAuthorizationInvalidSet:             invalidSet,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
        errAuthorizationInvalidRef:             invalidRef,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
        errAuthorizationInvalidTag:             invalidTag,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
        errAuthorizationInvalidPointer:         invalidPointer,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
        errAuthorizationDenied:                 denied,
        ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
        errAuthorizationCanceled:               canceled,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
        errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
        errAuthorizationInternal:               internalError,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
        errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
        errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
        errAuthorizationInvalidFlags:           invalidFlags,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
        errAuthorizationToolExecuteFailure:     toolExecuteFailure,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
        errAuthorizationToolEnvironmentError:   toolEnvironmentError,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
        errAuthorizationBadAddress:             badAddress
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
    internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
                                              ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:63:22: error: cannot find 'errSecSuccess' in scope
        if result != errSecSuccess {
                     ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:73:22: error: cannot find 'errSecSuccess' in scope
        if result == errSecSuccess, let value = value {
                     ^~~~~~~~~~~~~
[2/6] Compiling Authorized AuthorizationElements.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
        items: [AuthorizationItem],
                ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
        body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
                             ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:27:28: error: cannot find 'AuthorizationItem' in scope
                let item = AuthorizationItem(name: namePointer,
                           ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:33:35: error: cannot find 'AuthorizationItemSet' in scope
                    var itemSet = AuthorizationItemSet(count: 1, items: buffer.baseAddress)
                                  ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:93:30: error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
        return self.flags == kAuthorizationFlagCanNotPreAuthorize
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:152:52: error: cannot find 'kAuthorizationEnvironmentUsername' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentUsername, value: username)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:161:52: error: cannot find 'kAuthorizationEnvironmentPassword' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPassword, value: password)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:171:52: error: cannot find 'kAuthorizationEnvironmentShared' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentShared, value: [])
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:179:52: error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPrompt, value: message)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:186:52: error: cannot find 'kAuthorizationEnvironmentIcon' in scope
        return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentIcon, value: icon.absoluteString)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:233:32: error: cannot find 'AuthorizationItem' in scope
                    let item = AuthorizationItem(name: namePointer,
                               ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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)
[3/6] Compiling Authorized Authorization.swift
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
    public let authorizationRef: AuthorizationRef
                                 ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/Authorization.swift:47:13: error: cannot find 'AuthorizationCreate' in scope
            AuthorizationCreate(nil, nil, [], &authorization)
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:33: error: 'nil' requires a contextual type
            AuthorizationCreate(nil, nil, [], &authorization)
                                ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:38: error: 'nil' requires a contextual type
            AuthorizationCreate(nil, nil, [], &authorization)
                                     ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:53:9: error: cannot find 'AuthorizationFree' in scope
        AuthorizationFree(self.authorizationRef, AuthorizationFlags())
        ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:53:50: error: cannot find 'AuthorizationFlags' in scope
        AuthorizationFree(self.authorizationRef, AuthorizationFlags())
                                                 ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:73:44: error: cannot find 'errSecInvalidEncoding' in scope
            throw AuthorizationError.other(errSecInvalidEncoding)
                                           ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
    case other(OSStatus)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:86:28: error: cannot find 'AuthorizationExternalForm' in scope
        var externalForm = AuthorizationExternalForm(bytes: bytes)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:122:21: error: cannot find 'AuthorizationCreate' in scope
                    AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
                    ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
    func asAuthorizationFlags() -> AuthorizationFlags {
                                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:122:108: error: 'nil' requires a contextual type
                    AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
                                                                                                           ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:186:21: error: cannot find 'AuthorizationCopyRights' in scope
                    AuthorizationCopyRights(self.authorizationRef,
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:184:60: error: cannot find type 'AuthorizationItemSet' in scope
                let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
                                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:182:27: error: type of expression is ambiguous without a type annotation
        return try rights.withUnsafePointer { rightsPointer in
               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:226:26: error: cannot find 'errAuthorizationSuccess' in scope
            if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:224:41: error: cannot find type 'OSStatus' in scope
        let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
                                        ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:224:87: error: cannot find type 'AuthorizationRights' in scope
        let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
                                                                                      ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:226:16: error: cannot convert value of type '_' to expected argument type '(any Any.Type)?'
            if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
               ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:236:17: error: cannot find 'AuthorizationCopyRightsAsync' in scope
                AuthorizationCopyRightsAsync(self.authorizationRef,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:297:17: error: cannot find 'AuthorizationCopyInfo' in scope
                AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:296:44: error: cannot find type 'AuthorizationItemSet' in scope
            let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:295:31: error: unable to infer closure type without a type annotation
        let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/Authorization.swift:308:40: error: 'nil' requires a contextual type
            info = try copyInfoClosure(nil)
                                       ^
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:13: error: cannot find 'AuthorizationFree' in scope
            AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
            ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:54: error: cannot find 'AuthorizationFlags' in scope
            AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
                                                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:75: error: reference to member 'destroyRights' cannot be resolved without a contextual type
            AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
                                                                          ^
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:338:28: error: cannot find 'AuthorizationExternalForm' in scope
        var externalForm = AuthorizationExternalForm()
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:340:13: error: cannot find 'AuthorizationMakeExternalForm' in scope
            AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/6] Emitting module Authorized
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
    public let authorizationRef: AuthorizationRef
                                 ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
        items: [AuthorizationItem],
                ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
        body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
                             ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
    case other(OSStatus)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
        errAuthorizationInvalidSet:             invalidSet,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
        errAuthorizationInvalidRef:             invalidRef,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
        errAuthorizationInvalidTag:             invalidTag,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
        errAuthorizationInvalidPointer:         invalidPointer,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
        errAuthorizationDenied:                 denied,
        ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
        errAuthorizationCanceled:               canceled,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
        errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
        errAuthorizationInternal:               internalError,
        ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
        errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
        errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
        errAuthorizationInvalidFlags:           invalidFlags,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
        errAuthorizationToolExecuteFailure:     toolExecuteFailure,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
        errAuthorizationToolEnvironmentError:   toolEnvironmentError,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
        errAuthorizationBadAddress:             badAddress
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
    internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
                                              ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
    func asAuthorizationFlags() -> AuthorizationFlags {
                                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
    public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
    public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
    public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
    fileprivate init(entries: CFDictionary) {
                              ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
    public var requirement: SecRequirement? {
                            ^~~~~~~~~~~~~~
[5/6] Compiling Authorized AuthorizationPolicyDatabase.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
    public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
internal extension AuthorizationItem {
                   ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
internal extension AuthorizationItemSet {
                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
        AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
    public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
    public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
    fileprivate init(entries: CFDictionary) {
                              ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
    public var requirement: SecRequirement? {
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:26:26: error: cannot find 'AuthorizationRightGet' in scope
            let result = AuthorizationRightGet(namePointer, &entries)
                         ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:27:26: error: cannot find 'errAuthorizationSuccess' in scope
            if result == errAuthorizationSuccess, let entries = entries {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:29:33: error: cannot find 'errAuthorizationDenied' in scope
            } else if result == errAuthorizationDenied {
                                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:25:26: error: cannot find type 'CFDictionary' in scope
            var entries: CFDictionary?
                         ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:23:30: error: type of expression is ambiguous without a type annotation
        return try self.name.withCString { namePointer in
               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:26: error: cannot find 'AuthorizationRightGet' in scope
            let result = AuthorizationRightGet(namePointer, nil)
                         ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:49:26: error: cannot find 'errAuthorizationSuccess' in scope
            if result == errAuthorizationSuccess {
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:51:33: error: cannot find 'errAuthorizationDenied' in scope
            } else if result == errAuthorizationDenied {
                                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:61: error: 'nil' requires a contextual type
            let result = AuthorizationRightGet(namePointer, nil)
                                                            ^
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:85:28: error: cannot find 'CFBundleCreate' in scope
                cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:91:33: error: cannot find 'kAuthorizationRightRule' in scope
                rightDefinition[kAuthorizationRightRule] = rule.name
                                ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:94:33: error: cannot find 'kAuthorizationComment' in scope
                rightDefinition[kAuthorizationComment] = comment
                                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:106:17: error: cannot find 'AuthorizationRightSet' in scope
                AuthorizationRightSet(auth.authorizationRef,
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:83:27: error: cannot find type 'CFBundle' in scope
            var cfBundle: CFBundle?
                          ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:81:23: error: type of expression is ambiguous without a type annotation
        try self.name.withCString { namePointer in
        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:125:17: error: cannot find 'AuthorizationRightRemove' in scope
                AuthorizationRightRemove(authorization.authorizationRef, namePointer)
                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
    internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
                                                                        ^~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
    public let authorizationRef: AuthorizationRef
                                 ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:251:22: error: cannot find 'kAuthorizationComment' in scope
        self.entries[kAuthorizationComment] as? String
                     ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:259:44: error: cannot find 'kAuthorizationRightRule' in scope
        if let ruleElements = self.entries[kAuthorizationRightRule] as? [String] {
                                           ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:301:26: error: cannot find type 'SecRequirement' in scope
        var requirement: SecRequirement?
                         ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:13: error: cannot find 'SecRequirementCreateWithString' in scope
            SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:75: error: cannot find 'SecCSFlags' in scope
            SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
                                                                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:65: error: cannot find type 'CFString' in scope
            SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
                                                                ^~~~~~~~
[6/6] Compiling Authorized AuthorizationOption.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
    func asAuthorizationFlags() -> AuthorizationFlags {
                                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:35:22: error: cannot find 'AuthorizationFlags' in scope
        var flags = [AuthorizationFlags]()
                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:35:21: error: cannot call value of non-function type '[Any]'
        var flags = [AuthorizationFlags]()
                    ^                   ~~

/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:38:58: error: cannot find 'AuthorizationFlags' in scope
                case .interactionAllowed:   flags.append(AuthorizationFlags.interactionAllowed)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:39:58: error: cannot find 'AuthorizationFlags' in scope
                case .extendRights:         flags.append(AuthorizationFlags.extendRights)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:40:58: error: cannot find 'AuthorizationFlags' in scope
                case .partialRights:        flags.append(AuthorizationFlags.partialRights)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:41:58: error: cannot find 'AuthorizationFlags' in scope
                case .destroyRights:        flags.append(AuthorizationFlags.destroyRights)
                                                         ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:42:58: error: cannot find 'AuthorizationFlags' in scope
                case .preAuthorize:         flags.append(AuthorizationFlags.preAuthorize)
                                                         ^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.