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 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/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:             6.0
Building package at path:  $workDir
https://github.com/trilemma-dev/Authorized.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling Authorized AuthorizationElements.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
 21 |     ///
 22 |     /// A closure must be used to because the memory pointers referenced are only valid within the closure.
 23 |     func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
    |                                                           `- error: cannot find type 'AuthorizationItemSet' in scope
 24 |         return try self.name.withCString { namePointer in
 25 |             var mutableValue = value
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
211 |
212 | internal extension Set where Element: AuthorizationElement {
213 |     func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
    |                                                           `- error: cannot find type 'AuthorizationItemSet' in scope
214 |         try Set<Element>.convertRecursively(wrappers: Array<Element>(self), items: [], body: body)
215 |     }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
220 |     private static func convertRecursively<Result>(
221 |         wrappers: [AuthorizationElement],
222 |         items: [AuthorizationItem],
    |                 `- error: cannot find type 'AuthorizationItem' in scope
223 |         body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
224 |     ) rethrows -> Result {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
221 |         wrappers: [AuthorizationElement],
222 |         items: [AuthorizationItem],
223 |         body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
    |                              `- error: cannot find type 'AuthorizationItemSet' in scope
224 |     ) rethrows -> Result {
225 |         // One or more wrappers to be converted
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
254 | }
255 |
256 | internal extension AuthorizationItem {
    |                    `- error: cannot find type 'AuthorizationItem' in scope
257 |     func wrap<T>(type: T.Type) -> T where T: AuthorizationElement {
258 |         let name = String(cString: self.name)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
270 | }
271 |
272 | internal extension AuthorizationItemSet {
    |                    `- error: cannot find type 'AuthorizationItemSet' in scope
273 |     func wrap<T>(type: T.Type) -> [T] where T: AuthorizationElement {
274 |         var items = [T]()
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:27:28: error: cannot find 'AuthorizationItem' in scope
 25 |             var mutableValue = value
 26 |             return try mutableValue.withUnsafeMutableBufferPointer { valuePointer in
 27 |                 let item = AuthorizationItem(name: namePointer,
    |                            `- error: cannot find 'AuthorizationItem' in scope
 28 |                                              valueLength: value.count,
 29 |                                              value: value.count == 0 ? nil : valuePointer.baseAddress,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:33:35: error: cannot find 'AuthorizationItemSet' in scope
 31 |                 var items = [item]
 32 |                 return try items.withUnsafeMutableBufferPointer { buffer in
 33 |                     var itemSet = AuthorizationItemSet(count: 1, items: buffer.baseAddress)
    |                                   `- error: cannot find 'AuthorizationItemSet' in scope
 34 |
 35 |                     return try body(&itemSet)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:93:30: error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
 91 |     /// asynchronous equivalents. Otherwise this property's value is undefined.
 92 |     public var cannotPreAuthorize: Bool {
 93 |         return self.flags == kAuthorizationFlagCanNotPreAuthorize
    |                              `- error: cannot find 'kAuthorizationFlagCanNotPreAuthorize' in scope
 94 |     }
 95 | }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:152:52: error: cannot find 'kAuthorizationEnvironmentUsername' in scope
150 |     /// - Returns: The environment entry.
151 |     public static func forUsername(_ username: String) -> AuthorizationEnvironmentEntry {
152 |         return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentUsername, value: username)
    |                                                    `- error: cannot find 'kAuthorizationEnvironmentUsername' in scope
153 |     }
154 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:161:52: error: cannot find 'kAuthorizationEnvironmentPassword' in scope
159 |     /// - Returns: The environment entry.
160 |     public static func forPassword(_ password: String) -> AuthorizationEnvironmentEntry {
161 |         return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPassword, value: password)
    |                                                    `- error: cannot find 'kAuthorizationEnvironmentPassword' in scope
162 |     }
163 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:171:52: error: cannot find 'kAuthorizationEnvironmentShared' in scope
169 |     /// - Returns: The environment entry.
170 |     public static func forShared() -> AuthorizationEnvironmentEntry {
171 |         return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentShared, value: [])
    |                                                    `- error: cannot find 'kAuthorizationEnvironmentShared' in scope
172 |     }
173 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:179:52: error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
177 |     /// - Returns: The environment entry.
178 |     public static func forPrompt(message: String) -> AuthorizationEnvironmentEntry {
179 |         return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentPrompt, value: message)
    |                                                    `- error: cannot find 'kAuthorizationEnvironmentPrompt' in scope
180 |     }
181 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:186:52: error: cannot find 'kAuthorizationEnvironmentIcon' in scope
184 |     /// - Returns: The environment entry.
185 |     public static func forIcon(_ icon: URL) -> AuthorizationEnvironmentEntry {
186 |         return AuthorizationEnvironmentEntry(name: kAuthorizationEnvironmentIcon, value: icon.absoluteString)
    |                                                    `- error: cannot find 'kAuthorizationEnvironmentIcon' in scope
187 |     }
188 | }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:233:32: error: cannot find 'AuthorizationItem' in scope
231 |                 var mutableValue = wrapper.value
232 |                 return try mutableValue.withUnsafeMutableBufferPointer { valuePointer in
233 |                     let item = AuthorizationItem(name: namePointer,
    |                                `- error: cannot find 'AuthorizationItem' in scope
234 |                                                  valueLength: wrapper.value.count,
235 |                                                  value: valuePointer.baseAddress,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:248:31: error: cannot find 'AuthorizationItemSet' in scope
246 |             let count = UInt32(items.count)
247 |             return try mutableItems.withUnsafeMutableBufferPointer { buffer in
248 |                 var itemSet = AuthorizationItemSet(count: count, items: buffer.baseAddress)
    |                               `- error: cannot find 'AuthorizationItemSet' in scope
249 |
250 |                 return try body(&itemSet)
[4/8] Compiling Authorized Authorization.swift
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
 38 |     ///
 39 |     /// This reference is only valid during the lifetime of its enclosing ``Authorization`` instance's lifetime.
 40 |     public let authorizationRef: AuthorizationRef
    |                                  `- error: cannot find type 'AuthorizationRef' in scope
 41 |
 42 |     /// Creates a new instance with no rights.
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
 65 |     }
 66 |
 67 |     private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
    |                                                                       `- error: cannot find 'AuthorizationExternalForm' in scope
 68 |
 69 |     /// Deserializes a `Data` instance into an `AuthorizationRef`.
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
 68 |
 69 |     /// Deserializes a `Data` instance into an `AuthorizationRef`.
 70 |     private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
    |                                                                         `- error: cannot find type 'AuthorizationRef' in scope
 71 |         // The encoded data is only valid if the count matches that of the AuthorizationExternalForm's bytes tuple
 72 |         if serialization.count != externalFormChildrenCount {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:13: error: cannot find 'AuthorizationCreate' in scope
 45 |     public init() throws {
 46 |         self.authorizationRef = try AuthorizationError.throwIfFailure { authorization in
 47 |             AuthorizationCreate(nil, nil, [], &authorization)
    |             `- error: cannot find 'AuthorizationCreate' in scope
 48 |         }
 49 |     }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 |     /// Wrap an authorization function which requires a parameter to be populated.  An ``AuthorizationError`` will be thrown unless the result
69 |     /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 |     internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
   |                                                                                    `- error: cannot find type 'OSStatus' in scope
71 |         var value: T?
72 |         let result = authorizationFunction(&value)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 |     /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 |     internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
   |                                                                         `- error: cannot find type 'OSStatus' in scope
62 |         let result = authorizationFunction()
63 |         if result != errSecSuccess {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:33: error: 'nil' requires a contextual type
 45 |     public init() throws {
 46 |         self.authorizationRef = try AuthorizationError.throwIfFailure { authorization in
 47 |             AuthorizationCreate(nil, nil, [], &authorization)
    |                                 `- error: 'nil' requires a contextual type
 48 |         }
 49 |     }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:47:38: error: 'nil' requires a contextual type
 45 |     public init() throws {
 46 |         self.authorizationRef = try AuthorizationError.throwIfFailure { authorization in
 47 |             AuthorizationCreate(nil, nil, [], &authorization)
    |                                      `- error: 'nil' requires a contextual type
 48 |         }
 49 |     }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:53:9: error: cannot find 'AuthorizationFree' in scope
 51 |     /// Frees the underlying [`AuthorizationRef`](https://developer.apple.com/documentation/security/authorizationref).
 52 |     deinit {
 53 |         AuthorizationFree(self.authorizationRef, AuthorizationFlags())
    |         `- error: cannot find 'AuthorizationFree' in scope
 54 |     }
 55 |
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:53:50: error: cannot find 'AuthorizationFlags' in scope
 51 |     /// Frees the underlying [`AuthorizationRef`](https://developer.apple.com/documentation/security/authorizationref).
 52 |     deinit {
 53 |         AuthorizationFree(self.authorizationRef, AuthorizationFlags())
    |                                                  `- error: cannot find 'AuthorizationFlags' in scope
 54 |     }
 55 |
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:73:44: error: cannot find 'errSecInvalidEncoding' in scope
 71 |         // The encoded data is only valid if the count matches that of the AuthorizationExternalForm's bytes tuple
 72 |         if serialization.count != externalFormChildrenCount {
 73 |             throw AuthorizationError.other(errSecInvalidEncoding)
    |                                            `- error: cannot find 'errSecInvalidEncoding' in scope
 74 |         }
 75 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
39 |     case badAddress
40 |     /// Represents other errors.
41 |     case other(OSStatus)
   |                `- error: cannot find type 'OSStatus' in scope
42 |
43 |     private static let mapping = [
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:86:28: error: cannot find 'AuthorizationExternalForm' in scope
 84 |                      int8Array[24], int8Array[25], int8Array[26], int8Array[27],
 85 |                      int8Array[28], int8Array[29], int8Array[30], int8Array[31])
 86 |         var externalForm = AuthorizationExternalForm(bytes: bytes)
    |                            `- error: cannot find 'AuthorizationExternalForm' in scope
 87 |
 88 |         // Create the authorization
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:122:21: error: cannot find 'AuthorizationCreate' in scope
120 |                 options.insert(.destroyRights)
121 |                 try AuthorizationError.throwIfFailure {
122 |                     AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
    |                     `- error: cannot find 'AuthorizationCreate' in scope
123 |                 }
124 |             }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
211 |
212 | internal extension Set where Element: AuthorizationElement {
213 |     func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
    |                                                           `- error: cannot find type 'AuthorizationItemSet' in scope
214 |         try Set<Element>.convertRecursively(wrappers: Array<Element>(self), items: [], body: body)
215 |     }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
32 |
33 | internal extension Set where Element == AuthorizationOption {
34 |     func asAuthorizationFlags() -> AuthorizationFlags {
   |                                    `- error: cannot find type 'AuthorizationFlags' in scope
35 |         var flags = [AuthorizationFlags]()
36 |         for element in self {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:122:108: error: 'nil' requires a contextual type
120 |                 options.insert(.destroyRights)
121 |                 try AuthorizationError.throwIfFailure {
122 |                     AuthorizationCreate(rightsPointer, environmentPointer, options.asAuthorizationFlags(), nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
123 |                 }
124 |             }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:186:21: error: cannot find 'AuthorizationCopyRights' in scope
184 |                 let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
185 |                                                             try AuthorizationError.throwIfFailure { authorizedRights in
186 |                     AuthorizationCopyRights(self.authorizationRef,
    |                     `- error: cannot find 'AuthorizationCopyRights' in scope
187 |                                             rightsPointer,
188 |                                             environmentPointer,
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:184:60: error: cannot find type 'AuthorizationItemSet' in scope
182 |         return try rights.withUnsafePointer { rightsPointer in
183 |             return try environment.withUnsafePointer { environmentPointer in
184 |                 let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
    |                                                            `- error: cannot find type 'AuthorizationItemSet' in scope
185 |                                                             try AuthorizationError.throwIfFailure { authorizedRights in
186 |                     AuthorizationCopyRights(self.authorizationRef,
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:182:27: error: type of expression is ambiguous without a type annotation
180 |         options: Set<AuthorizationOption>
181 |     ) throws -> [AuthorizationRight] {
182 |         return try rights.withUnsafePointer { rightsPointer in
    |                           `- error: type of expression is ambiguous without a type annotation
183 |             return try environment.withUnsafePointer { environmentPointer in
184 |                 let authorizedRights: UnsafeMutablePointer<AuthorizationItemSet> =
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:226:26: error: cannot find 'errAuthorizationSuccess' in scope
224 |         let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
225 |             let result: Result<[AuthorizationRight], AuthorizationError>
226 |             if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
    |                          `- error: cannot find 'errAuthorizationSuccess' in scope
227 |                 result = .success(rightsPointer.pointee.wrap(type: AuthorizationRight.self))
228 |             } else {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:224:41: error: cannot find type 'OSStatus' in scope
222 |         callback: @escaping ((Result<[AuthorizationRight], AuthorizationError>) -> Void)
223 |     ) {
224 |         let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
    |                                         `- error: cannot find type 'OSStatus' in scope
225 |             let result: Result<[AuthorizationRight], AuthorizationError>
226 |             if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:224:87: error: cannot find type 'AuthorizationRights' in scope
222 |         callback: @escaping ((Result<[AuthorizationRight], AuthorizationError>) -> Void)
223 |     ) {
224 |         let legacyCallback = { (status: OSStatus, rightsPointer: UnsafeMutablePointer<AuthorizationRights>?) in
    |                                                                                       `- error: cannot find type 'AuthorizationRights' in scope
225 |             let result: Result<[AuthorizationRight], AuthorizationError>
226 |             if status == errAuthorizationSuccess, let rightsPointer = rightsPointer {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:236:17: error: cannot find 'AuthorizationCopyRightsAsync' in scope
234 |         rights.withUnsafePointer { rightsPointer in
235 |             environment.withUnsafePointer { environmentPointer in
236 |                 AuthorizationCopyRightsAsync(self.authorizationRef,
    |                 `- error: cannot find 'AuthorizationCopyRightsAsync' in scope
237 |                                              rightsPointer,
238 |                                              environmentPointer,
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:297:17: error: cannot find 'AuthorizationCopyInfo' in scope
295 |         let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
296 |             let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
297 |                 AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
    |                 `- error: cannot find 'AuthorizationCopyInfo' in scope
298 |             }
299 |             defer { AuthorizationFreeItemSet(info) }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:296:44: error: cannot find type 'AuthorizationItemSet' in scope
294 |     public func retrieveInfo(tag: String? = nil) throws -> [String : ContiguousArray<CChar>] {
295 |         let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
296 |             let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
    |                                            `- error: cannot find type 'AuthorizationItemSet' in scope
297 |                 AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
298 |             }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:295:31: error: unable to infer closure type without a type annotation
293 |     /// - Returns: Dictionary of side-band authorization information. While the values can be anything, in practice they're often UTF8 encoded C strings.
294 |     public func retrieveInfo(tag: String? = nil) throws -> [String : ContiguousArray<CChar>] {
295 |         let copyInfoClosure = { (tagPointer: UnsafePointer<Int8>?) -> [AuthorizationInfo] in
    |                               `- error: unable to infer closure type without a type annotation
296 |             let info: UnsafeMutablePointer<AuthorizationItemSet> = try AuthorizationError.throwIfFailure { info in
297 |                 AuthorizationCopyInfo(self.authorizationRef, tagPointer, &info)
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:306:40: error: converting non-escaping value to '(UnsafePointer<Int8>) throws -> [AuthorizationInfo]' may allow it to escape
304 |         let info: [AuthorizationInfo]
305 |         if let tag = tag {
306 |             info = try tag.withCString(copyInfoClosure)
    |                                        `- error: converting non-escaping value to '(UnsafePointer<Int8>) throws -> [AuthorizationInfo]' may allow it to escape
307 |         } else {
308 |             info = try copyInfoClosure(nil)
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:308:40: error: 'nil' requires a contextual type
306 |             info = try tag.withCString(copyInfoClosure)
307 |         } else {
308 |             info = try copyInfoClosure(nil)
    |                                        `- error: 'nil' requires a contextual type
309 |         }
310 |         let infoDictionary = Dictionary(uniqueKeysWithValues: info.map{ ($0.name, $0.value ) })
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:13: error: cannot find 'AuthorizationFree' in scope
318 |     public func destroyRights() throws {
319 |         try AuthorizationError.throwIfFailure {
320 |             AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
    |             `- error: cannot find 'AuthorizationFree' in scope
321 |         }
322 |     }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:54: error: cannot find 'AuthorizationFlags' in scope
318 |     public func destroyRights() throws {
319 |         try AuthorizationError.throwIfFailure {
320 |             AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
    |                                                      `- error: cannot find 'AuthorizationFlags' in scope
321 |         }
322 |     }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:320:75: error: reference to member 'destroyRights' cannot be resolved without a contextual type
318 |     public func destroyRights() throws {
319 |         try AuthorizationError.throwIfFailure {
320 |             AuthorizationFree(self.authorizationRef, AuthorizationFlags([.destroyRights]))
    |                                                                           `- error: reference to member 'destroyRights' cannot be resolved without a contextual type
321 |         }
322 |     }
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:338:28: error: cannot find 'AuthorizationExternalForm' in scope
336 |     private func serialize() throws -> Data {
337 |         // Convert authorization into external form
338 |         var externalForm = AuthorizationExternalForm()
    |                            `- error: cannot find 'AuthorizationExternalForm' in scope
339 |         try AuthorizationError.throwIfFailure {
340 |             AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:340:13: error: cannot find 'AuthorizationMakeExternalForm' in scope
338 |         var externalForm = AuthorizationExternalForm()
339 |         try AuthorizationError.throwIfFailure {
340 |             AuthorizationMakeExternalForm(self.authorizationRef, &externalForm)
    |             `- error: cannot find 'AuthorizationMakeExternalForm' in scope
341 |         }
342 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module Authorized
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
 38 |     ///
 39 |     /// This reference is only valid during the lifetime of its enclosing ``Authorization`` instance's lifetime.
 40 |     public let authorizationRef: AuthorizationRef
    |                                  `- error: cannot find type 'AuthorizationRef' in scope
 41 |
 42 |     /// Creates a new instance with no rights.
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:67:71: error: cannot find 'AuthorizationExternalForm' in scope
 65 |     }
 66 |
 67 |     private static let externalFormChildrenCount = Mirror(reflecting: AuthorizationExternalForm().bytes).children.count
    |                                                                       `- error: cannot find 'AuthorizationExternalForm' in scope
 68 |
 69 |     /// Deserializes a `Data` instance into an `AuthorizationRef`.
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:70:73: error: cannot find type 'AuthorizationRef' in scope
 68 |
 69 |     /// Deserializes a `Data` instance into an `AuthorizationRef`.
 70 |     private static func deserialize(from serialization: Data) throws -> AuthorizationRef {
    |                                                                         `- error: cannot find type 'AuthorizationRef' in scope
 71 |         // The encoded data is only valid if the count matches that of the AuthorizationExternalForm's bytes tuple
 72 |         if serialization.count != externalFormChildrenCount {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:23:59: error: cannot find type 'AuthorizationItemSet' in scope
 21 |     ///
 22 |     /// A closure must be used to because the memory pointers referenced are only valid within the closure.
 23 |     func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
    |                                                           `- error: cannot find type 'AuthorizationItemSet' in scope
 24 |         return try self.name.withCString { namePointer in
 25 |             var mutableValue = value
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:213:59: error: cannot find type 'AuthorizationItemSet' in scope
211 |
212 | internal extension Set where Element: AuthorizationElement {
213 |     func withUnsafePointer<Result>(_ body: (UnsafePointer<AuthorizationItemSet>) throws -> Result) rethrows -> Result {
    |                                                           `- error: cannot find type 'AuthorizationItemSet' in scope
214 |         try Set<Element>.convertRecursively(wrappers: Array<Element>(self), items: [], body: body)
215 |     }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:222:17: error: cannot find type 'AuthorizationItem' in scope
220 |     private static func convertRecursively<Result>(
221 |         wrappers: [AuthorizationElement],
222 |         items: [AuthorizationItem],
    |                 `- error: cannot find type 'AuthorizationItem' in scope
223 |         body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
224 |     ) rethrows -> Result {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:223:30: error: cannot find type 'AuthorizationItemSet' in scope
221 |         wrappers: [AuthorizationElement],
222 |         items: [AuthorizationItem],
223 |         body: (UnsafePointer<AuthorizationItemSet>) throws -> Result
    |                              `- error: cannot find type 'AuthorizationItemSet' in scope
224 |     ) rethrows -> Result {
225 |         // One or more wrappers to be converted
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:256:20: error: cannot find type 'AuthorizationItem' in scope
254 | }
255 |
256 | internal extension AuthorizationItem {
    |                    `- error: cannot find type 'AuthorizationItem' in scope
257 |     func wrap<T>(type: T.Type) -> T where T: AuthorizationElement {
258 |         let name = String(cString: self.name)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:272:20: error: cannot find type 'AuthorizationItemSet' in scope
270 | }
271 |
272 | internal extension AuthorizationItemSet {
    |                    `- error: cannot find type 'AuthorizationItemSet' in scope
273 |     func wrap<T>(type: T.Type) -> [T] where T: AuthorizationElement {
274 |         var items = [T]()
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
39 |     case badAddress
40 |     /// Represents other errors.
41 |     case other(OSStatus)
   |                `- error: cannot find type 'OSStatus' in scope
42 |
43 |     private static let mapping = [
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
42 |
43 |     private static let mapping = [
44 |         errAuthorizationInvalidSet:             invalidSet,
   |         `- error: cannot find 'errAuthorizationInvalidSet' in scope
45 |         errAuthorizationInvalidRef:             invalidRef,
46 |         errAuthorizationInvalidTag:             invalidTag,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
43 |     private static let mapping = [
44 |         errAuthorizationInvalidSet:             invalidSet,
45 |         errAuthorizationInvalidRef:             invalidRef,
   |         `- error: cannot find 'errAuthorizationInvalidRef' in scope
46 |         errAuthorizationInvalidTag:             invalidTag,
47 |         errAuthorizationInvalidPointer:         invalidPointer,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
44 |         errAuthorizationInvalidSet:             invalidSet,
45 |         errAuthorizationInvalidRef:             invalidRef,
46 |         errAuthorizationInvalidTag:             invalidTag,
   |         `- error: cannot find 'errAuthorizationInvalidTag' in scope
47 |         errAuthorizationInvalidPointer:         invalidPointer,
48 |         errAuthorizationDenied:                 denied,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
45 |         errAuthorizationInvalidRef:             invalidRef,
46 |         errAuthorizationInvalidTag:             invalidTag,
47 |         errAuthorizationInvalidPointer:         invalidPointer,
   |         `- error: cannot find 'errAuthorizationInvalidPointer' in scope
48 |         errAuthorizationDenied:                 denied,
49 |         errAuthorizationCanceled:               canceled,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
46 |         errAuthorizationInvalidTag:             invalidTag,
47 |         errAuthorizationInvalidPointer:         invalidPointer,
48 |         errAuthorizationDenied:                 denied,
   |         `- error: cannot find 'errAuthorizationDenied' in scope
49 |         errAuthorizationCanceled:               canceled,
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
47 |         errAuthorizationInvalidPointer:         invalidPointer,
48 |         errAuthorizationDenied:                 denied,
49 |         errAuthorizationCanceled:               canceled,
   |         `- error: cannot find 'errAuthorizationCanceled' in scope
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
51 |         errAuthorizationInternal:               internalError,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
48 |         errAuthorizationDenied:                 denied,
49 |         errAuthorizationCanceled:               canceled,
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
   |         `- error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
51 |         errAuthorizationInternal:               internalError,
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
49 |         errAuthorizationCanceled:               canceled,
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
51 |         errAuthorizationInternal:               internalError,
   |         `- error: cannot find 'errAuthorizationInternal' in scope
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
51 |         errAuthorizationInternal:               internalError,
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
   |         `- error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
54 |         errAuthorizationInvalidFlags:           invalidFlags,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
51 |         errAuthorizationInternal:               internalError,
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
   |         `- error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
54 |         errAuthorizationInvalidFlags:           invalidFlags,
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
54 |         errAuthorizationInvalidFlags:           invalidFlags,
   |         `- error: cannot find 'errAuthorizationInvalidFlags' in scope
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
54 |         errAuthorizationInvalidFlags:           invalidFlags,
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
   |         `- error: cannot find 'errAuthorizationToolExecuteFailure' in scope
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
57 |         errAuthorizationBadAddress:             badAddress
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
54 |         errAuthorizationInvalidFlags:           invalidFlags,
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
   |         `- error: cannot find 'errAuthorizationToolEnvironmentError' in scope
57 |         errAuthorizationBadAddress:             badAddress
58 |     ]
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
57 |         errAuthorizationBadAddress:             badAddress
   |         `- error: cannot find 'errAuthorizationBadAddress' in scope
58 |     ]
59 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 |     /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 |     internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
   |                                                                         `- error: cannot find type 'OSStatus' in scope
62 |         let result = authorizationFunction()
63 |         if result != errSecSuccess {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 |     /// Wrap an authorization function which requires a parameter to be populated.  An ``AuthorizationError`` will be thrown unless the result
69 |     /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 |     internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
   |                                                                                    `- error: cannot find type 'OSStatus' in scope
71 |         var value: T?
72 |         let result = authorizationFunction(&value)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
80 |     /// Returns the corresponding ``AuthorizationError`` case for `result` or ``AuthorizationError/other(_:)`` if the value has no
81 |     /// corresponding case.
82 |     internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
   |                                               `- error: cannot find type 'OSStatus' in scope
83 |         let error: AuthorizationError
84 |         if let mappedError = mapping[result] {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
32 |
33 | internal extension Set where Element == AuthorizationOption {
34 |     func asAuthorizationFlags() -> AuthorizationFlags {
   |                                    `- error: cannot find type 'AuthorizationFlags' in scope
35 |         var flags = [AuthorizationFlags]()
36 |         for element in self {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:23: warning: static property 'isAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
140 |
141 |     /// The user must be an administrator.
142 |     public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
    |                       |- warning: static property 'isAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'isAdmin' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
140 |
141 |     /// The user must be an administrator.
142 |     public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
    |                                                                                  `- error: cannot find 'kAuthorizationRuleIsAdmin' in scope
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:144:23: warning: static property 'authenticateAsAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
142 |     public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
    |                       |- warning: static property 'authenticateAsAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'authenticateAsAdmin' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
146 |     /// The user must authenticate as the session owner (logged-in user).
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
145 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
    |                                  `- error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
146 |     /// The user must authenticate as the session owner (logged-in user).
147 |     public static let authenticateAsSessionUser: AuthorizationRightRule =
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:147:23: warning: static property 'authenticateAsSessionUser' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
145 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
146 |     /// The user must authenticate as the session owner (logged-in user).
147 |     public static let authenticateAsSessionUser: AuthorizationRightRule =
    |                       |- warning: static property 'authenticateAsSessionUser' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'authenticateAsSessionUser' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 |     /// Always allows the specified right.
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
146 |     /// The user must authenticate as the session owner (logged-in user).
147 |     public static let authenticateAsSessionUser: AuthorizationRightRule =
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
    |                                  `- error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
149 |     /// Always allows the specified right.
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:23: warning: static property 'classAllow' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 |     /// Always allows the specified right.
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
    |                       |- warning: static property 'classAllow' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'classAllow' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 |     /// Always allows the specified right.
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
    |                                                                                     `- error: cannot find 'kAuthorizationRuleClassAllow' in scope
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:23: warning: static property 'classDeny' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
    |                       |- warning: static property 'classDeny' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'classDeny' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | }
154 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
    |                                                                                    `- error: cannot find 'kAuthorizationRuleClassDeny' in scope
153 | }
154 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
204 |     public let entries: [String : Any]
205 |
206 |     fileprivate init(entries: CFDictionary) {
    |                               `- error: cannot find type 'CFDictionary' in scope
207 |         var castEntries = [String: Any]()
208 |         for (key, value) in entries as NSDictionary {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
298 |
299 |     /// Undocumented, but in practice appears to be the designated requirement of the application which created the right definition.
300 |     public var requirement: SecRequirement? {
    |                             `- error: cannot find type 'SecRequirement' in scope
301 |         var requirement: SecRequirement?
302 |         if let requirementString = self.entries["requirement"] as? String {
[6/8] Compiling Authorized AuthorizationOption.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:34:36: error: cannot find type 'AuthorizationFlags' in scope
32 |
33 | internal extension Set where Element == AuthorizationOption {
34 |     func asAuthorizationFlags() -> AuthorizationFlags {
   |                                    `- error: cannot find type 'AuthorizationFlags' in scope
35 |         var flags = [AuthorizationFlags]()
36 |         for element in self {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:35:22: error: cannot find 'AuthorizationFlags' in scope
33 | internal extension Set where Element == AuthorizationOption {
34 |     func asAuthorizationFlags() -> AuthorizationFlags {
35 |         var flags = [AuthorizationFlags]()
   |                      `- error: cannot find 'AuthorizationFlags' in scope
36 |         for element in self {
37 |             switch element {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:35:21: error: cannot call value of non-function type '[Any]'
33 | internal extension Set where Element == AuthorizationOption {
34 |     func asAuthorizationFlags() -> AuthorizationFlags {
35 |         var flags = [AuthorizationFlags]()
   |                     `- error: cannot call value of non-function type '[Any]'
36 |         for element in self {
37 |             switch element {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:38:58: error: cannot find 'AuthorizationFlags' in scope
36 |         for element in self {
37 |             switch element {
38 |                 case .interactionAllowed:   flags.append(AuthorizationFlags.interactionAllowed)
   |                                                          `- error: cannot find 'AuthorizationFlags' in scope
39 |                 case .extendRights:         flags.append(AuthorizationFlags.extendRights)
40 |                 case .partialRights:        flags.append(AuthorizationFlags.partialRights)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:39:58: error: cannot find 'AuthorizationFlags' in scope
37 |             switch element {
38 |                 case .interactionAllowed:   flags.append(AuthorizationFlags.interactionAllowed)
39 |                 case .extendRights:         flags.append(AuthorizationFlags.extendRights)
   |                                                          `- error: cannot find 'AuthorizationFlags' in scope
40 |                 case .partialRights:        flags.append(AuthorizationFlags.partialRights)
41 |                 case .destroyRights:        flags.append(AuthorizationFlags.destroyRights)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:40:58: error: cannot find 'AuthorizationFlags' in scope
38 |                 case .interactionAllowed:   flags.append(AuthorizationFlags.interactionAllowed)
39 |                 case .extendRights:         flags.append(AuthorizationFlags.extendRights)
40 |                 case .partialRights:        flags.append(AuthorizationFlags.partialRights)
   |                                                          `- error: cannot find 'AuthorizationFlags' in scope
41 |                 case .destroyRights:        flags.append(AuthorizationFlags.destroyRights)
42 |                 case .preAuthorize:         flags.append(AuthorizationFlags.preAuthorize)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:41:58: error: cannot find 'AuthorizationFlags' in scope
39 |                 case .extendRights:         flags.append(AuthorizationFlags.extendRights)
40 |                 case .partialRights:        flags.append(AuthorizationFlags.partialRights)
41 |                 case .destroyRights:        flags.append(AuthorizationFlags.destroyRights)
   |                                                          `- error: cannot find 'AuthorizationFlags' in scope
42 |                 case .preAuthorize:         flags.append(AuthorizationFlags.preAuthorize)
43 |             }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationOption.swift:42:58: error: cannot find 'AuthorizationFlags' in scope
40 |                 case .partialRights:        flags.append(AuthorizationFlags.partialRights)
41 |                 case .destroyRights:        flags.append(AuthorizationFlags.destroyRights)
42 |                 case .preAuthorize:         flags.append(AuthorizationFlags.preAuthorize)
   |                                                          `- error: cannot find 'AuthorizationFlags' in scope
43 |             }
44 |         }
[7/8] Compiling Authorized AuthorizationError.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:41:16: error: cannot find type 'OSStatus' in scope
39 |     case badAddress
40 |     /// Represents other errors.
41 |     case other(OSStatus)
   |                `- error: cannot find type 'OSStatus' in scope
42 |
43 |     private static let mapping = [
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:44:9: error: cannot find 'errAuthorizationInvalidSet' in scope
42 |
43 |     private static let mapping = [
44 |         errAuthorizationInvalidSet:             invalidSet,
   |         `- error: cannot find 'errAuthorizationInvalidSet' in scope
45 |         errAuthorizationInvalidRef:             invalidRef,
46 |         errAuthorizationInvalidTag:             invalidTag,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:45:9: error: cannot find 'errAuthorizationInvalidRef' in scope
43 |     private static let mapping = [
44 |         errAuthorizationInvalidSet:             invalidSet,
45 |         errAuthorizationInvalidRef:             invalidRef,
   |         `- error: cannot find 'errAuthorizationInvalidRef' in scope
46 |         errAuthorizationInvalidTag:             invalidTag,
47 |         errAuthorizationInvalidPointer:         invalidPointer,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:46:9: error: cannot find 'errAuthorizationInvalidTag' in scope
44 |         errAuthorizationInvalidSet:             invalidSet,
45 |         errAuthorizationInvalidRef:             invalidRef,
46 |         errAuthorizationInvalidTag:             invalidTag,
   |         `- error: cannot find 'errAuthorizationInvalidTag' in scope
47 |         errAuthorizationInvalidPointer:         invalidPointer,
48 |         errAuthorizationDenied:                 denied,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:47:9: error: cannot find 'errAuthorizationInvalidPointer' in scope
45 |         errAuthorizationInvalidRef:             invalidRef,
46 |         errAuthorizationInvalidTag:             invalidTag,
47 |         errAuthorizationInvalidPointer:         invalidPointer,
   |         `- error: cannot find 'errAuthorizationInvalidPointer' in scope
48 |         errAuthorizationDenied:                 denied,
49 |         errAuthorizationCanceled:               canceled,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:48:9: error: cannot find 'errAuthorizationDenied' in scope
46 |         errAuthorizationInvalidTag:             invalidTag,
47 |         errAuthorizationInvalidPointer:         invalidPointer,
48 |         errAuthorizationDenied:                 denied,
   |         `- error: cannot find 'errAuthorizationDenied' in scope
49 |         errAuthorizationCanceled:               canceled,
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:49:9: error: cannot find 'errAuthorizationCanceled' in scope
47 |         errAuthorizationInvalidPointer:         invalidPointer,
48 |         errAuthorizationDenied:                 denied,
49 |         errAuthorizationCanceled:               canceled,
   |         `- error: cannot find 'errAuthorizationCanceled' in scope
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
51 |         errAuthorizationInternal:               internalError,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:50:9: error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
48 |         errAuthorizationDenied:                 denied,
49 |         errAuthorizationCanceled:               canceled,
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
   |         `- error: cannot find 'errAuthorizationInteractionNotAllowed' in scope
51 |         errAuthorizationInternal:               internalError,
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:51:9: error: cannot find 'errAuthorizationInternal' in scope
49 |         errAuthorizationCanceled:               canceled,
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
51 |         errAuthorizationInternal:               internalError,
   |         `- error: cannot find 'errAuthorizationInternal' in scope
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:52:9: error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
50 |         errAuthorizationInteractionNotAllowed:  interactionNotAllowed,
51 |         errAuthorizationInternal:               internalError,
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
   |         `- error: cannot find 'errAuthorizationExternalizeNotAllowed' in scope
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
54 |         errAuthorizationInvalidFlags:           invalidFlags,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:53:9: error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
51 |         errAuthorizationInternal:               internalError,
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
   |         `- error: cannot find 'errAuthorizationInternalizeNotAllowed' in scope
54 |         errAuthorizationInvalidFlags:           invalidFlags,
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:54:9: error: cannot find 'errAuthorizationInvalidFlags' in scope
52 |         errAuthorizationExternalizeNotAllowed:  externalizeNotAllowed,
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
54 |         errAuthorizationInvalidFlags:           invalidFlags,
   |         `- error: cannot find 'errAuthorizationInvalidFlags' in scope
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:55:9: error: cannot find 'errAuthorizationToolExecuteFailure' in scope
53 |         errAuthorizationInternalizeNotAllowed:  internalizeNotAllowed,
54 |         errAuthorizationInvalidFlags:           invalidFlags,
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
   |         `- error: cannot find 'errAuthorizationToolExecuteFailure' in scope
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
57 |         errAuthorizationBadAddress:             badAddress
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:56:9: error: cannot find 'errAuthorizationToolEnvironmentError' in scope
54 |         errAuthorizationInvalidFlags:           invalidFlags,
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
   |         `- error: cannot find 'errAuthorizationToolEnvironmentError' in scope
57 |         errAuthorizationBadAddress:             badAddress
58 |     ]
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:57:9: error: cannot find 'errAuthorizationBadAddress' in scope
55 |         errAuthorizationToolExecuteFailure:     toolExecuteFailure,
56 |         errAuthorizationToolEnvironmentError:   toolEnvironmentError,
57 |         errAuthorizationBadAddress:             badAddress
   |         `- error: cannot find 'errAuthorizationBadAddress' in scope
58 |     ]
59 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 |     /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 |     internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
   |                                                                         `- error: cannot find type 'OSStatus' in scope
62 |         let result = authorizationFunction()
63 |         if result != errSecSuccess {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 |     /// Wrap an authorization function which requires a parameter to be populated.  An ``AuthorizationError`` will be thrown unless the result
69 |     /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 |     internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
   |                                                                                    `- error: cannot find type 'OSStatus' in scope
71 |         var value: T?
72 |         let result = authorizationFunction(&value)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:82:47: error: cannot find type 'OSStatus' in scope
80 |     /// Returns the corresponding ``AuthorizationError`` case for `result` or ``AuthorizationError/other(_:)`` if the value has no
81 |     /// corresponding case.
82 |     internal static func fromResult(_ result: OSStatus) -> AuthorizationError {
   |                                               `- error: cannot find type 'OSStatus' in scope
83 |         let error: AuthorizationError
84 |         if let mappedError = mapping[result] {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:63:22: error: cannot find 'errSecSuccess' in scope
61 |     internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
62 |         let result = authorizationFunction()
63 |         if result != errSecSuccess {
   |                      `- error: cannot find 'errSecSuccess' in scope
64 |             throw fromResult(result)
65 |         }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:73:22: error: cannot find 'errSecSuccess' in scope
71 |         var value: T?
72 |         let result = authorizationFunction(&value)
73 |         if result == errSecSuccess, let value = value {
   |                      `- error: cannot find 'errSecSuccess' in scope
74 |             return value
75 |         } else {
[8/8] Compiling Authorized AuthorizationPolicyDatabase.swift
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:23: warning: static property 'isAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
140 |
141 |     /// The user must be an administrator.
142 |     public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
    |                       |- warning: static property 'isAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'isAdmin' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:142:82: error: cannot find 'kAuthorizationRuleIsAdmin' in scope
140 |
141 |     /// The user must be an administrator.
142 |     public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
    |                                                                                  `- error: cannot find 'kAuthorizationRuleIsAdmin' in scope
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:144:23: warning: static property 'authenticateAsAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
142 |     public static let isAdmin: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleIsAdmin)
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
    |                       |- warning: static property 'authenticateAsAdmin' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'authenticateAsAdmin' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
146 |     /// The user must authenticate as the session owner (logged-in user).
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:145:34: error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
143 |     /// The user must authenticate as an administrator.
144 |     public static let authenticateAsAdmin: AuthorizationRightRule =
145 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
    |                                  `- error: cannot find 'kAuthorizationRuleAuthenticateAsAdmin' in scope
146 |     /// The user must authenticate as the session owner (logged-in user).
147 |     public static let authenticateAsSessionUser: AuthorizationRightRule =
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:147:23: warning: static property 'authenticateAsSessionUser' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
145 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsAdmin)
146 |     /// The user must authenticate as the session owner (logged-in user).
147 |     public static let authenticateAsSessionUser: AuthorizationRightRule =
    |                       |- warning: static property 'authenticateAsSessionUser' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'authenticateAsSessionUser' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 |     /// Always allows the specified right.
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:148:34: error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
146 |     /// The user must authenticate as the session owner (logged-in user).
147 |     public static let authenticateAsSessionUser: AuthorizationRightRule =
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
    |                                  `- error: cannot find 'kAuthorizationRuleAuthenticateAsSessionUser' in scope
149 |     /// Always allows the specified right.
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:23: warning: static property 'classAllow' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 |     /// Always allows the specified right.
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
    |                       |- warning: static property 'classAllow' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'classAllow' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:150:85: error: cannot find 'kAuthorizationRuleClassAllow' in scope
148 |         AuthorizationRight(name: kAuthorizationRuleAuthenticateAsSessionUser)
149 |     /// Always allows the specified right.
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
    |                                                                                     `- error: cannot find 'kAuthorizationRuleClassAllow' in scope
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:23: warning: static property 'classDeny' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
    |                       |- warning: static property 'classDeny' is not concurrency-safe because non-'Sendable' type 'AuthorizationRightRule' (aka 'AuthorizationRight') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'classDeny' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | }
154 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationElements.swift:57:15: note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 55 | /// - ``createOrUpdateDefinition(rules:authorization:descriptionKey:bundle:localeTableName:comment:)``
 56 | /// - ``removeDefinition(authorization:)``
 57 | public struct AuthorizationRight: AuthorizationElement {
    |               `- note: consider making struct 'AuthorizationRight' conform to the 'Sendable' protocol
 58 |     /// The name of this authorization right.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:152:84: error: cannot find 'kAuthorizationRuleClassDeny' in scope
150 |     public static let classAllow: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassAllow)
151 |     /// Always denies the specified right.
152 |     public static let classDeny: AuthorizationRightRule = AuthorizationRight(name: kAuthorizationRuleClassDeny)
    |                                                                                    `- error: cannot find 'kAuthorizationRuleClassDeny' in scope
153 | }
154 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:206:31: error: cannot find type 'CFDictionary' in scope
204 |     public let entries: [String : Any]
205 |
206 |     fileprivate init(entries: CFDictionary) {
    |                               `- error: cannot find type 'CFDictionary' in scope
207 |         var castEntries = [String: Any]()
208 |         for (key, value) in entries as NSDictionary {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:300:29: error: cannot find type 'SecRequirement' in scope
298 |
299 |     /// Undocumented, but in practice appears to be the designated requirement of the application which created the right definition.
300 |     public var requirement: SecRequirement? {
    |                             `- error: cannot find type 'SecRequirement' in scope
301 |         var requirement: SecRequirement?
302 |         if let requirementString = self.entries["requirement"] as? String {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:26:26: error: cannot find 'AuthorizationRightGet' in scope
 24 |             let definition: AuthorizationRightDefinition?
 25 |             var entries: CFDictionary?
 26 |             let result = AuthorizationRightGet(namePointer, &entries)
    |                          `- error: cannot find 'AuthorizationRightGet' in scope
 27 |             if result == errAuthorizationSuccess, let entries = entries {
 28 |                 definition = AuthorizationRightDefinition(entries: entries)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:27:26: error: cannot find 'errAuthorizationSuccess' in scope
 25 |             var entries: CFDictionary?
 26 |             let result = AuthorizationRightGet(namePointer, &entries)
 27 |             if result == errAuthorizationSuccess, let entries = entries {
    |                          `- error: cannot find 'errAuthorizationSuccess' in scope
 28 |                 definition = AuthorizationRightDefinition(entries: entries)
 29 |             } else if result == errAuthorizationDenied {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:29:33: error: cannot find 'errAuthorizationDenied' in scope
 27 |             if result == errAuthorizationSuccess, let entries = entries {
 28 |                 definition = AuthorizationRightDefinition(entries: entries)
 29 |             } else if result == errAuthorizationDenied {
    |                                 `- error: cannot find 'errAuthorizationDenied' in scope
 30 |                 definition = nil
 31 |             } else {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:25:26: error: cannot find type 'CFDictionary' in scope
 23 |         return try self.name.withCString { namePointer in
 24 |             let definition: AuthorizationRightDefinition?
 25 |             var entries: CFDictionary?
    |                          `- error: cannot find type 'CFDictionary' in scope
 26 |             let result = AuthorizationRightGet(namePointer, &entries)
 27 |             if result == errAuthorizationSuccess, let entries = entries {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:23:30: error: type of expression is ambiguous without a type annotation
 21 |         // From the documentation for AuthorizationRightGet:
 22 |         //  - errAuthorizationDenied -60005 No definition found.
 23 |         return try self.name.withCString { namePointer in
    |                              `- error: type of expression is ambiguous without a type annotation
 24 |             let definition: AuthorizationRightDefinition?
 25 |             var entries: CFDictionary?
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:26: error: cannot find 'AuthorizationRightGet' in scope
 46 |         return try self.name.withCString { namePointer in
 47 |             let exists: Bool
 48 |             let result = AuthorizationRightGet(namePointer, nil)
    |                          `- error: cannot find 'AuthorizationRightGet' in scope
 49 |             if result == errAuthorizationSuccess {
 50 |                 exists = true
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:49:26: error: cannot find 'errAuthorizationSuccess' in scope
 47 |             let exists: Bool
 48 |             let result = AuthorizationRightGet(namePointer, nil)
 49 |             if result == errAuthorizationSuccess {
    |                          `- error: cannot find 'errAuthorizationSuccess' in scope
 50 |                 exists = true
 51 |             } else if result == errAuthorizationDenied {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:51:33: error: cannot find 'errAuthorizationDenied' in scope
 49 |             if result == errAuthorizationSuccess {
 50 |                 exists = true
 51 |             } else if result == errAuthorizationDenied {
    |                                 `- error: cannot find 'errAuthorizationDenied' in scope
 52 |                 exists = false
 53 |             } else {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:48:61: error: 'nil' requires a contextual type
 46 |         return try self.name.withCString { namePointer in
 47 |             let exists: Bool
 48 |             let result = AuthorizationRightGet(namePointer, nil)
    |                                                             `- error: 'nil' requires a contextual type
 49 |             if result == errAuthorizationSuccess {
 50 |                 exists = true
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:85:28: error: cannot find 'CFBundleCreate' in scope
 83 |             var cfBundle: CFBundle?
 84 |             if let bundle = bundle {
 85 |                 cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
    |                            `- error: cannot find 'CFBundleCreate' in scope
 86 |             }
 87 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:91:33: error: cannot find 'kAuthorizationRightRule' in scope
 89 |             let rightDefinition = NSMutableDictionary(capacity: rules.count + (comment == nil ? 0 : 1))
 90 |             for rule in rules {
 91 |                 rightDefinition[kAuthorizationRightRule] = rule.name
    |                                 `- error: cannot find 'kAuthorizationRightRule' in scope
 92 |             }
 93 |             if let comment = comment {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:94:33: error: cannot find 'kAuthorizationComment' in scope
 92 |             }
 93 |             if let comment = comment {
 94 |                 rightDefinition[kAuthorizationComment] = comment
    |                                 `- error: cannot find 'kAuthorizationComment' in scope
 95 |             }
 96 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:106:17: error: cannot find 'AuthorizationRightSet' in scope
104 |
105 |             try AuthorizationError.throwIfFailure {
106 |                 AuthorizationRightSet(auth.authorizationRef,
    |                 `- error: cannot find 'AuthorizationRightSet' in scope
107 |                                       namePointer,
108 |                                       rightDefinition,
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:83:27: error: cannot find type 'CFBundle' in scope
 81 |         try self.name.withCString { namePointer in
 82 |             // Convert from Bundle to CFBundle
 83 |             var cfBundle: CFBundle?
    |                           `- error: cannot find type 'CFBundle' in scope
 84 |             if let bundle = bundle {
 85 |                 cfBundle = CFBundleCreate(nil, bundle.bundleURL as CFURL)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:81:23: error: type of expression is ambiguous without a type annotation
 79 |                                          localeTableName: String? = nil,
 80 |                                          comment: String? = nil) throws {
 81 |         try self.name.withCString { namePointer in
    |                       `- error: type of expression is ambiguous without a type annotation
 82 |             // Convert from Bundle to CFBundle
 83 |             var cfBundle: CFBundle?
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:125:17: error: cannot find 'AuthorizationRightRemove' in scope
123 |         try self.name.withCString { namePointer in
124 |             try AuthorizationError.throwIfFailure {
125 |                 AuthorizationRightRemove(authorization.authorizationRef, namePointer)
    |                 `- error: cannot find 'AuthorizationRightRemove' in scope
126 |             }
127 |         }
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:70:84: error: cannot find type 'OSStatus' in scope
68 |     /// Wrap an authorization function which requires a parameter to be populated.  An ``AuthorizationError`` will be thrown unless the result
69 |     /// code was `errSecSuccess` and the value wasn't `nil`. If no error was thrown, the value is returned unwrapped.
70 |     internal static func throwIfFailure<T>(_ authorizationFunction: (inout T?) -> (OSStatus)) throws -> T {
   |                                                                                    `- error: cannot find type 'OSStatus' in scope
71 |         var value: T?
72 |         let result = authorizationFunction(&value)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationError.swift:61:73: error: cannot find type 'OSStatus' in scope
59 |
60 |     /// Wrap an authorization function in this call and it will throw an ``AuthorizationError`` if the result code is anything besides `errSecSuccess`.
61 |     internal static func throwIfFailure(_ authorizationFunction: () -> (OSStatus)) throws {
   |                                                                         `- error: cannot find type 'OSStatus' in scope
62 |         let result = authorizationFunction()
63 |         if result != errSecSuccess {
/host/spi-builder-workspace/Sources/Authorized/Authorization.swift:40:34: error: cannot find type 'AuthorizationRef' in scope
 38 |     ///
 39 |     /// This reference is only valid during the lifetime of its enclosing ``Authorization`` instance's lifetime.
 40 |     public let authorizationRef: AuthorizationRef
    |                                  `- error: cannot find type 'AuthorizationRef' in scope
 41 |
 42 |     /// Creates a new instance with no rights.
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:251:22: error: cannot find 'kAuthorizationComment' in scope
249 |     /// This entry **is** publicly documented.
250 |     public var comment: String? {
251 |         self.entries[kAuthorizationComment] as? String
    |                      `- error: cannot find 'kAuthorizationComment' in scope
252 |     }
253 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:259:44: error: cannot find 'kAuthorizationRightRule' in scope
257 |     public var rule: [AuthorizationRight]? {
258 |         var ruleRights: [AuthorizationRight]?
259 |         if let ruleElements = self.entries[kAuthorizationRightRule] as? [String] {
    |                                            `- error: cannot find 'kAuthorizationRightRule' in scope
260 |             ruleRights = [AuthorizationRight]()
261 |             for element in ruleElements {
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:301:26: error: cannot find type 'SecRequirement' in scope
299 |     /// Undocumented, but in practice appears to be the designated requirement of the application which created the right definition.
300 |     public var requirement: SecRequirement? {
301 |         var requirement: SecRequirement?
    |                          `- error: cannot find type 'SecRequirement' in scope
302 |         if let requirementString = self.entries["requirement"] as? String {
303 |             SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:13: error: cannot find 'SecRequirementCreateWithString' in scope
301 |         var requirement: SecRequirement?
302 |         if let requirementString = self.entries["requirement"] as? String {
303 |             SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
    |             `- error: cannot find 'SecRequirementCreateWithString' in scope
304 |         }
305 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:75: error: cannot find 'SecCSFlags' in scope
301 |         var requirement: SecRequirement?
302 |         if let requirementString = self.entries["requirement"] as? String {
303 |             SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
    |                                                                           `- error: cannot find 'SecCSFlags' in scope
304 |         }
305 |
/host/spi-builder-workspace/Sources/Authorized/AuthorizationPolicyDatabase.swift:303:65: error: cannot find type 'CFString' in scope
301 |         var requirement: SecRequirement?
302 |         if let requirementString = self.entries["requirement"] as? String {
303 |             SecRequirementCreateWithString(requirementString as CFString, SecCSFlags(), &requirement)
    |                                                                 `- error: cannot find type 'CFString' in scope
304 |         }
305 |
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.