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 SwCrypt, reference master (50e526), with Swift 6.1 for Linux on 26 Apr 2025 15:54:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/soyersoyer/SwCrypt.git
Reference: master
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/soyersoyer/SwCrypt
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 50e5267 fix Swift 5 deprecations and update dummy project (#51)
Cloned https://github.com/soyersoyer/SwCrypt.git
Revision (git rev-parse @):
50e5267524f6e379318e6df4cdd1617ae379dc47
SUCCESS checkout https://github.com/soyersoyer/SwCrypt.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/soyersoyer/SwCrypt.git
https://github.com/soyersoyer/SwCrypt.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwCrypt",
  "name" : "SwCrypt",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwCrypt",
      "targets" : [
        "SwCrypt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwCryptTests",
      "module_type" : "SwiftTarget",
      "name" : "SwCryptTests",
      "path" : "SwCryptTests",
      "sources" : [
        "SwCryptTests.swift"
      ],
      "target_dependencies" : [
        "SwCrypt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwCrypt",
      "module_type" : "SwiftTarget",
      "name" : "SwCrypt",
      "path" : "SwCrypt",
      "product_memberships" : [
        "SwCrypt"
      ],
      "sources" : [
        "SwCrypt.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SwCrypt
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1477:59: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1475 | 			getFunc(dl!, f: "CCRSACryptorEncrypt")
1476 |
1477 | 		fileprivate typealias CCRSACryptorDecryptT = @convention (c) (
     |                                                           `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1478 | 			_ privateKey: CCRSACryptorRef,
1479 | 			_ padding: CCAsymmetricPadding,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |                        `- error: cannot find type 'OSStatus' in scope
   6 | 		case unimplemented = -4
   7 | 		case param = -50
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:17:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  15 | 		case missingEntitlement = -34018
  16 |
  17 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
  17 | 		public static var debugLevel = 1
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
     |                  `- error: cannot find type 'OSStatus' in scope
  20 | 			self = SecError(rawValue: status)!
  21 | 			if SecError.debugLevel > 0 {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:93:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  91 | 		case keyNotEncrypted
  92 |
  93 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  94 |
  95 | 		init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:373:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 371 | 		case keyNotEncrypted
 372 |
 373 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 374 |
 375 | 		init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:607:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 605 | 		case invalidKey = -4311
 606 |
 607 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 608 |
 609 | 		init(_ status: CCCryptorStatus, function: String = #function,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:891:25: warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                         |- warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
     |                         |- note: add '@MainActor' to make static property 'dl' part of global actor 'MainActor'
     |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1610:26: warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1608 |
1609 | 		fileprivate typealias kCCDHRFC3526Group5TM = UnsafePointer<CCDHParameters>
1610 | 		fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
     |                          |- warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC3526Group5M' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1611 | 			getFunc(dl!, f: "kCCDHRFC3526Group5")
1612 | 		fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1612:26: warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1610 | 		fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
1611 | 			getFunc(dl!, f: "kCCDHRFC3526Group5")
1612 | 		fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
     |                          |- warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC3526Group5' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1613 |
1614 | 		fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1615:26: warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1613 |
1614 | 		fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
1615 | 		fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
     |                          |- warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC2409Group2M' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1616 | 			getFunc(dl!, f: "kCCDHRFC2409Group2")
1617 | 		fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1617:26: warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1615 | 		fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
1616 | 			getFunc(dl!, f: "kCCDHRFC2409Group2")
1617 | 		fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
     |                          |- warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC2409Group2' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1618 |
1619 | 		fileprivate typealias CCDHCreateT = @convention(c) (
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2080 |
2081 | 		fileprivate static let rfc3394IVData: [UInt8] = [0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6]
2082 | 		public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
     |                                             |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
     |                                             |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
     |                                             `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2083 |
2084 | 		public static func SymmetricKeyWrap(_ iv: Data,
[4/4] Compiling SwCrypt SwCrypt.swift
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1477:59: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1475 | 			getFunc(dl!, f: "CCRSACryptorEncrypt")
1476 |
1477 | 		fileprivate typealias CCRSACryptorDecryptT = @convention (c) (
     |                                                           `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1478 | 			_ privateKey: CCRSACryptorRef,
1479 | 			_ padding: CCAsymmetricPadding,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |                        `- error: cannot find type 'OSStatus' in scope
   6 | 		case unimplemented = -4
   7 | 		case param = -50
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:17:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  15 | 		case missingEntitlement = -34018
  16 |
  17 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
  17 | 		public static var debugLevel = 1
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
     |                  `- error: cannot find type 'OSStatus' in scope
  20 | 			self = SecError(rawValue: status)!
  21 | 			if SecError.debugLevel > 0 {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:93:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  91 | 		case keyNotEncrypted
  92 |
  93 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  94 |
  95 | 		init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:373:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 371 | 		case keyNotEncrypted
 372 |
 373 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 374 |
 375 | 		init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:607:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 605 | 		case invalidKey = -4311
 606 |
 607 | 		public static var debugLevel = 1
     |                     |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                     |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
     |                     |- note: add '@MainActor' to make static property 'debugLevel' part of global actor 'MainActor'
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 608 |
 609 | 		init(_ status: CCCryptorStatus, function: String = #function,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:891:25: warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                         |- warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
     |                         |- note: add '@MainActor' to make static property 'dl' part of global actor 'MainActor'
     |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1610:26: warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1608 |
1609 | 		fileprivate typealias kCCDHRFC3526Group5TM = UnsafePointer<CCDHParameters>
1610 | 		fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
     |                          |- warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC3526Group5M' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1611 | 			getFunc(dl!, f: "kCCDHRFC3526Group5")
1612 | 		fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1612:26: warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1610 | 		fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
1611 | 			getFunc(dl!, f: "kCCDHRFC3526Group5")
1612 | 		fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
     |                          |- warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC3526Group5' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1613 |
1614 | 		fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1615:26: warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1613 |
1614 | 		fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
1615 | 		fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
     |                          |- warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC2409Group2M' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1616 | 			getFunc(dl!, f: "kCCDHRFC2409Group2")
1617 | 		fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1617:26: warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1615 | 		fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
1616 | 			getFunc(dl!, f: "kCCDHRFC2409Group2")
1617 | 		fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
     |                          |- warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
     |                          |- note: add '@MainActor' to make static property 'kCCDHRFC2409Group2' part of global actor 'MainActor'
     |                          `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1618 |
1619 | 		fileprivate typealias CCDHCreateT = @convention(c) (
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2080 |
2081 | 		fileprivate static let rfc3394IVData: [UInt8] = [0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6]
2082 | 		public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
     |                                             |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
     |                                             |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
     |                                             `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2083 |
2084 | 		public static func SymmetricKeyWrap(_ iv: Data,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:19: error: extraneous argument label 'rawValue:' in call
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
  20 | 			self = SecError(rawValue: status)!
     |                   `- error: extraneous argument label 'rawValue:' in call
  21 | 			if SecError.debugLevel > 0 {
  22 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:37: error: cannot force unwrap value of non-optional type 'SwKeyStore.SecError'
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
  20 | 			self = SecError(rawValue: status)!
     |                                     `- error: cannot force unwrap value of non-optional type 'SwKeyStore.SecError'
  21 | 			if SecError.debugLevel > 0 {
  22 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:22:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |              `- note: did you mean to specify a raw type on the enum declaration?
   6 | 		case unimplemented = -4
   7 | 		case param = -50
     :
  20 | 			self = SecError(rawValue: status)!
  21 | 			if SecError.debugLevel > 0 {
  22 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
     |                                                                            `- error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
  23 | 			}
  24 | 		}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:28:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |              `- note: did you mean to specify a raw type on the enum declaration?
   6 | 		case unimplemented = -4
   7 | 		case param = -50
     :
  26 | 			self = type
  27 | 			if SecError.debugLevel > 0 {
  28 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
     |                                                                            `- error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
  29 | 			}
  30 | 		}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:4: error: cannot find 'kSecClass' in scope
  36 |
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
     |    `- error: cannot find 'kSecClass' in scope
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:15: error: cannot find 'kSecClassKey' in scope
  36 |
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
     |               `- error: cannot find 'kSecClassKey' in scope
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:4: error: cannot find 'kSecAttrKeyType' in scope
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
     |    `- error: cannot find 'kSecAttrKeyType' in scope
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:21: error: cannot find 'kSecAttrKeyTypeRSA' in scope
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
     |                     `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:40:4: error: cannot find 'kSecAttrIsPermanent' in scope
  38 | 			kSecClass: kSecClassKey,
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
     |    `- error: cannot find 'kSecAttrIsPermanent' in scope
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
  42 | 			kSecValueData: pemKeyAsData as AnyObject
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:41:4: error: cannot find 'kSecAttrApplicationTag' in scope
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
     |    `- error: cannot find 'kSecAttrApplicationTag' in scope
  42 | 			kSecValueData: pemKeyAsData as AnyObject
  43 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:42:4: error: cannot find 'kSecValueData' in scope
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
  42 | 			kSecValueData: pemKeyAsData as AnyObject
     |    `- error: cannot find 'kSecValueData' in scope
  43 | 		]
  44 | 		options.forEach { k, v in
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:16: error: cannot find 'SecItemAdd' in scope
  46 | 		}
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
     |                `- error: cannot find 'SecItemAdd' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:41: error: cannot find type 'CFDictionary' in scope
  46 | 		}
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
     |                                         `- error: cannot find type 'CFDictionary' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:55: error: 'nil' requires a contextual type
  46 | 		}
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
     |                                                       `- error: 'nil' requires a contextual type
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:49:16: error: cannot find 'errSecDuplicateItem' in scope
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
  49 | 		if status == errSecDuplicateItem {
     |                `- error: cannot find 'errSecDuplicateItem' in scope
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:13: error: cannot find 'SecItemAdd' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
     |             `- error: cannot find 'SecItemAdd' in scope
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:38: error: cannot find type 'CFDictionary' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
     |                                      `- error: cannot find type 'CFDictionary' in scope
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:52: error: 'nil' requires a contextual type
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
     |                                                    `- error: 'nil' requires a contextual type
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:53:19: error: cannot find 'errSecSuccess' in scope
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
     |                   `- error: cannot find 'errSecSuccess' in scope
  54 | 	}
  55 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:4: error: cannot find 'kSecClass' in scope
  56 | 	public static func getKey(_ keyTag: String) throws -> String {
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
     |    `- error: cannot find 'kSecClass' in scope
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:16: error: cannot find 'kSecClassKey' in scope
  56 | 	public static func getKey(_ keyTag: String) throws -> String {
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
     |                `- error: cannot find 'kSecClassKey' in scope
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:4: error: cannot find 'kSecAttrKeyType' in scope
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
     |    `- error: cannot find 'kSecAttrKeyType' in scope
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
  61 | 			kSecReturnData : true as AnyObject
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:22: error: cannot find 'kSecAttrKeyTypeRSA' in scope
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
     |                      `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
  61 | 			kSecReturnData : true as AnyObject
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:60:4: error: cannot find 'kSecAttrApplicationTag' in scope
  58 | 			kSecClass : kSecClassKey,
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
     |    `- error: cannot find 'kSecAttrApplicationTag' in scope
  61 | 			kSecReturnData : true as AnyObject
  62 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:61:4: error: cannot find 'kSecReturnData' in scope
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
  61 | 			kSecReturnData : true as AnyObject
     |    `- error: cannot find 'kSecReturnData' in scope
  62 | 		]
  63 | 		var data: AnyObject?
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:16: error: cannot find 'SecItemCopyMatching' in scope
  62 | 		]
  63 | 		var data: AnyObject?
  64 | 		let status = SecItemCopyMatching(parameters as CFDictionary, &data)
     |                `- error: cannot find 'SecItemCopyMatching' in scope
  65 | 		guard status == errSecSuccess else { throw SecError(status) }
  66 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:50: error: cannot find type 'CFDictionary' in scope
  62 | 		]
  63 | 		var data: AnyObject?
  64 | 		let status = SecItemCopyMatching(parameters as CFDictionary, &data)
     |                                                  `- error: cannot find type 'CFDictionary' in scope
  65 | 		guard status == errSecSuccess else { throw SecError(status) }
  66 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:65:19: error: cannot find 'errSecSuccess' in scope
  63 | 		var data: AnyObject?
  64 | 		let status = SecItemCopyMatching(parameters as CFDictionary, &data)
  65 | 		guard status == errSecSuccess else { throw SecError(status) }
     |                   `- error: cannot find 'errSecSuccess' in scope
  66 |
  67 | 		guard let pemKeyAsData = data as? Data else {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:4: error: cannot find 'kSecClass' in scope
  76 | 	public static func delKey(_ keyTag: String) throws {
  77 | 		let parameters: [NSString : AnyObject] = [
  78 | 			kSecClass : kSecClassKey,
     |    `- error: cannot find 'kSecClass' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:16: error: cannot find 'kSecClassKey' in scope
  76 | 	public static func delKey(_ keyTag: String) throws {
  77 | 		let parameters: [NSString : AnyObject] = [
  78 | 			kSecClass : kSecClassKey,
     |                `- error: cannot find 'kSecClassKey' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:79:4: error: cannot find 'kSecAttrApplicationTag' in scope
  77 | 		let parameters: [NSString : AnyObject] = [
  78 | 			kSecClass : kSecClassKey,
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
     |    `- error: cannot find 'kSecAttrApplicationTag' in scope
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:16: error: cannot find 'SecItemDelete' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
     |                `- error: cannot find 'SecItemDelete' in scope
  82 | 		guard status == errSecSuccess else { throw SecError(status) }
  83 | 	}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:44: error: cannot find type 'CFDictionary' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
     |                                            `- error: cannot find type 'CFDictionary' in scope
  82 | 		guard status == errSecSuccess else { throw SecError(status) }
  83 | 	}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:82:19: error: cannot find 'errSecSuccess' in scope
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
  82 | 		guard status == errSecSuccess else { throw SecError(status) }
     |                   `- error: cannot find 'errSecSuccess' in scope
  83 | 	}
  84 | }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:743:19: error: cannot find 'noErr' in scope
 741 | 		})
 742 |
 743 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 744 |
 745 | 		defer { _ = CCCryptorRelease!(cryptor!) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:758:19: error: cannot find 'noErr' in scope
 756 | 				&updateLen)
 757 | 		})
 758 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 759 |
 760 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:762:59: error: cannot find type 'OSStatus' in scope
 760 |
 761 | 		var finalLen: size_t = 0
 762 | 		status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
     |                                                           `- error: cannot find type 'OSStatus' in scope
 763 | 			return CCCryptorFinal!(
 764 | 				cryptor!,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:769:19: error: cannot find 'noErr' in scope
 767 | 				&finalLen)
 768 | 		}
 769 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 770 |
 771 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:925:20: error: cannot find 'noErr' in scope
 923 | 										 resultBytes, tagBytes, &tagLength_)
 924 | 			})
 925 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 926 |
 927 | 			tag.count = tagLength_
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:955:51: error: cannot find type 'OSStatus' in scope
 953 | 								 aData: Data, tagLength: Int) throws -> (Data, Data) {
 954 | 			var cryptor: CCCryptorRef? = nil
 955 | 			var status = key.withUnsafeBytes { keyBytes -> OSStatus in
     |                                                   `- error: cannot find type 'OSStatus' in scope
 956 | 				CCCryptorCreateWithMode!(
 957 | 					opMode.rawValue, AuthBlockMode.ccm.rawValue,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:962:20: error: cannot find 'noErr' in scope
 960 | 					0, CCModeOptions(), &cryptor)
 961 | 			}
 962 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 963 | 			defer { _ = CCCryptorRelease!(cryptor!) }
 964 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:967:20: error: cannot find 'noErr' in scope
 965 | 			status = CCCryptorAddParameter!(cryptor!,
 966 | 				Parameter.dataSize.rawValue, nil, data.count)
 967 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 968 |
 969 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:970:20: error: cannot find 'noErr' in scope
 968 |
 969 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
 970 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 971 |
 972 | 			status = iv.withUnsafeBytes { ivBytes -> OSStatus in
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:972:45: error: cannot find type 'OSStatus' in scope
 970 | 			guard status == noErr else { throw CCError(status) }
 971 |
 972 | 			status = iv.withUnsafeBytes { ivBytes -> OSStatus in
     |                                             `- error: cannot find type 'OSStatus' in scope
 973 | 				CCCryptorAddParameter!(cryptor!, Parameter.iv.rawValue, ivBytes.baseAddress!, iv.count)
 974 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:975:20: error: cannot find 'noErr' in scope
 973 | 				CCCryptorAddParameter!(cryptor!, Parameter.iv.rawValue, ivBytes.baseAddress!, iv.count)
 974 | 			}
 975 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 976 |
 977 | 			status = aData.withUnsafeBytes { aDataBytes -> OSStatus in
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:977:51: error: cannot find type 'OSStatus' in scope
 975 | 			guard status == noErr else { throw CCError(status) }
 976 |
 977 | 			status = aData.withUnsafeBytes { aDataBytes -> OSStatus in
     |                                                   `- error: cannot find type 'OSStatus' in scope
 978 | 				CCCryptorAddParameter!(cryptor!, Parameter.authData.rawValue, aDataBytes.baseAddress!, aData.count)
 979 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:980:20: error: cannot find 'noErr' in scope
 978 | 				CCCryptorAddParameter!(cryptor!, Parameter.authData.rawValue, aDataBytes.baseAddress!, aData.count)
 979 | 			}
 980 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 981 |
 982 | 			var result = Data(count: data.count)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:991:20: error: cannot find 'noErr' in scope
 989 | 					&updateLen)
 990 | 			})
 991 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 992 |
 993 | 			var finalLen: size_t = 0
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:994:60: error: cannot find type 'OSStatus' in scope
 992 |
 993 | 			var finalLen: size_t = 0
 994 | 			status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
     |                                                            `- error: cannot find type 'OSStatus' in scope
 995 | 				CCCryptorFinal!(cryptor!, resultBytes.baseAddress! + updateLen,
 996 | 								rescount - updateLen,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:999:20: error: cannot find 'noErr' in scope
 997 | 								&finalLen)
 998 | 			}
 999 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1000 |
1001 | 			result.count = updateLen + finalLen
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1005:54: error: cannot find type 'OSStatus' in scope
1003 | 			var tagLength_ = tagLength
1004 | 			var tag = Data(count: tagLength)
1005 | 			status = tag.withUnsafeMutableBytes { tagBytes -> OSStatus in
     |                                                      `- error: cannot find type 'OSStatus' in scope
1006 | 				CCCryptorGetParameter!(cryptor!, Parameter.authTag.rawValue,
1007 | 									   tagBytes.baseAddress!, &tagLength_)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1009:20: error: cannot find 'noErr' in scope
1007 | 									   tagBytes.baseAddress!, &tagLength_)
1008 | 			}
1009 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1010 |
1011 | 			tag.count = tagLength_
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1063:20: error: cannot find 'noErr' in scope
1061 | 				&publicKey,
1062 | 				&privateKey)
1063 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1064 |
1065 | 			defer {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1109:20: error: cannot find 'noErr' in scope
1107 | 					digest.rawValue)
1108 | 			})
1109 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1110 |
1111 | 			buffer.count = bufferSize
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1137:20: error: cannot find 'noErr' in scope
1135 | 					digest.rawValue)
1136 | 			})
1137 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1138 | 			buffer.count = bufferSize
1139 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1145:57: error: cannot find type 'OSStatus' in scope
1143 | 		fileprivate static func importFromDERKey(_ derKey: Data) throws -> CCRSACryptorRef {
1144 | 			var key: CCRSACryptorRef? = nil
1145 | 			let status = derKey.withUnsafeBytes { derKeyBytes -> OSStatus in
     |                                                         `- error: cannot find type 'OSStatus' in scope
1146 | 				CCRSACryptorImport!(
1147 | 					derKeyBytes.baseAddress!,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1151:20: error: cannot find 'noErr' in scope
1149 | 					&key)
1150 | 			}
1151 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1152 |
1153 | 			return key!
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1159:64: error: cannot find type 'OSStatus' in scope
1157 | 			var derKeyLength = 8192
1158 | 			var derKey = Data(count: derKeyLength)
1159 | 			let status = derKey.withUnsafeMutableBytes { derKeyBytes -> OSStatus in
     |                                                                `- error: cannot find type 'OSStatus' in scope
1160 | 				CCRSACryptorExport!(key, derKeyBytes.baseAddress!, &derKeyLength)
1161 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1162:20: error: cannot find 'noErr' in scope
1160 | 				CCRSACryptorExport!(key, derKeyBytes.baseAddress!, &derKeyLength)
1161 | 			}
1162 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1163 |
1164 | 			derKey.count = derKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1198:21: error: cannot find 'noErr' in scope
1196 | 						signedDataBytes, &signedDataLength)
1197 | 				})
1198 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1199 |
1200 | 				signedData.count = signedDataLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1237:21: error: cannot find 'noErr' in scope
1235 | 					return false
1236 | 				}
1237 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1238 | 				return true
1239 | 			case .pss:
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1261:20: error: cannot find 'noErr' in scope
1259 | 			})
1260 |
1261 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1262 | 			out.count = outLength
1263 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1562:65: error: cannot find type 'OSStatus' in scope
1560 | 				var outputLength = 8192
1561 | 				var output = Data(count: outputLength)
1562 | 				let status = output.withUnsafeMutableBytes { outputBytes -> OSStatus in
     |                                                                 `- error: cannot find type 'OSStatus' in scope
1563 | 					CCDHGenerateKey!(ref!, outputBytes.baseAddress!, &outputLength)
1564 | 				}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1658:20: error: cannot find 'noErr' in scope
1656 | 				&pubKey,
1657 | 				&privKey)
1658 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1659 |
1660 | 			defer {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1694:20: error: cannot find 'noErr' in scope
1692 | 					signedDataBytes, &signedDataLength)
1693 | 			})
1694 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1695 |
1696 | 			signedData.count = signedDataLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1714:20: error: cannot find 'noErr' in scope
1712 | 					&valid)
1713 | 			})
1714 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1715 |
1716 | 			return valid != 0
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1730:64: error: cannot find type 'OSStatus' in scope
1728 | 			var outSize = 8192
1729 | 			var result = Data(count:outSize)
1730 | 			let status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
     |                                                                `- error: cannot find type 'OSStatus' in scope
1731 | 				CCECCryptorComputeSharedSecret!(privKey, pubKey, resultBytes.baseAddress!, &outSize)
1732 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1733:20: error: cannot find 'noErr' in scope
1731 | 				CCECCryptorComputeSharedSecret!(privKey, pubKey, resultBytes.baseAddress!, &outSize)
1732 | 			}
1733 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1734 |
1735 | 			result.count = outSize
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1773:20: error: cannot find 'noErr' in scope
1771 | 													dBytes, &dSize)
1772 | 			})
1773 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1774 |
1775 | 			x.count = xSize
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1792:20: error: cannot find 'noErr' in scope
1790 | 												  yBytes, y.count, &pubKey)
1791 | 			})
1792 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1793 | 			defer { CCECCryptorRelease!(pubKey!) }
1794 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1802:51: error: cannot find type 'OSStatus' in scope
1800 | 										  keyType: KeyType) throws -> CCECCryptorRef {
1801 | 			var impKey: CCECCryptorRef? = nil
1802 | 			let status = key.withUnsafeBytes { keyBytes -> OSStatus in
     |                                                   `- error: cannot find type 'OSStatus' in scope
1803 | 				CCECCryptorImportKey!(format.rawValue,
1804 | 									  keyBytes.baseAddress!, key.count,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1807:20: error: cannot find 'noErr' in scope
1805 | 									  keyType.rawValue, &impKey)
1806 | 			}
1807 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1808 |
1809 | 			return impKey!
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1816:64: error: cannot find type 'OSStatus' in scope
1814 | 			var expKeyLength = 8192
1815 | 			var expKey = Data(count:expKeyLength)
1816 | 			let status = expKey.withUnsafeMutableBytes { expKeyBytes -> OSStatus in
     |                                                                `- error: cannot find type 'OSStatus' in scope
1817 | 				CCECCryptorExportKey!(
1818 | 					format.rawValue,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1824:20: error: cannot find 'noErr' in scope
1822 | 					key)
1823 | 			}
1824 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1825 |
1826 | 			expKey.count = expKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1979:55: error: cannot find type 'OSStatus' in scope
1977 | 		public static func crc(_ input: Data, mode: Mode) throws -> UInt64 {
1978 | 			var result: UInt64 = 0
1979 | 			let status = input.withUnsafeBytes { inputBytes -> OSStatus in
     |                                                       `- error: cannot find type 'OSStatus' in scope
1980 | 				CNCRC!(
1981 | 					mode.rawValue,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1985:20: error: cannot find 'noErr' in scope
1983 | 					&result)
1984 | 			}
1985 | 			guard status == noErr else {
     |                    `- error: cannot find 'noErr' in scope
1986 | 				throw CCError(status)
1987 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2055:20: error: cannot find 'noErr' in scope
2053 | 											 resultBytes, rescount)
2054 | 			})
2055 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2056 |
2057 | 			return result
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2099:20: error: cannot find 'noErr' in scope
2097 | 					wrappedKeyBytes, &wrappedKeyLength)
2098 | 			})
2099 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2100 |
2101 | 			wrappedKey.count = wrappedKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2120:20: error: cannot find 'noErr' in scope
2118 | 					rawKeyBytes, &rawKeyLength)
2119 | 			})
2120 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2121 |
2122 | 			rawKey.count = rawKeyLength
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module SwCrypt
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1477:59: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1475 | 			getFunc(dl!, f: "CCRSACryptorEncrypt")
1476 |
1477 | 		fileprivate typealias CCRSACryptorDecryptT = @convention (c) (
     |                                                           `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1478 | 			_ privateKey: CCRSACryptorRef,
1479 | 			_ padding: CCAsymmetricPadding,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |                        `- error: cannot find type 'OSStatus' in scope
   6 | 		case unimplemented = -4
   7 | 		case param = -50
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
  17 | 		public static var debugLevel = 1
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
     |                  `- error: cannot find type 'OSStatus' in scope
  20 | 			self = SecError(rawValue: status)!
  21 | 			if SecError.debugLevel > 0 {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2080 |
2081 | 		fileprivate static let rfc3394IVData: [UInt8] = [0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6]
2082 | 		public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
     |                                             |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
     |                                             |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
     |                                             `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2083 |
2084 | 		public static func SymmetricKeyWrap(_ iv: Data,
[3/3] Compiling SwCrypt SwCrypt.swift
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1477:59: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1475 | 			getFunc(dl!, f: "CCRSACryptorEncrypt")
1476 |
1477 | 		fileprivate typealias CCRSACryptorDecryptT = @convention (c) (
     |                                                           `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1478 | 			_ privateKey: CCRSACryptorRef,
1479 | 			_ padding: CCAsymmetricPadding,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |                        `- error: cannot find type 'OSStatus' in scope
   6 | 		case unimplemented = -4
   7 | 		case param = -50
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
  17 | 		public static var debugLevel = 1
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
     |                  `- error: cannot find type 'OSStatus' in scope
  20 | 			self = SecError(rawValue: status)!
  21 | 			if SecError.debugLevel > 0 {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2080 |
2081 | 		fileprivate static let rfc3394IVData: [UInt8] = [0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6]
2082 | 		public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
     |                                             |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
     |                                             |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
     |                                             `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2083 |
2084 | 		public static func SymmetricKeyWrap(_ iv: Data,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:19: error: extraneous argument label 'rawValue:' in call
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
  20 | 			self = SecError(rawValue: status)!
     |                   `- error: extraneous argument label 'rawValue:' in call
  21 | 			if SecError.debugLevel > 0 {
  22 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:37: error: cannot force unwrap value of non-optional type 'SwKeyStore.SecError'
  18 |
  19 | 		init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
  20 | 			self = SecError(rawValue: status)!
     |                                     `- error: cannot force unwrap value of non-optional type 'SwKeyStore.SecError'
  21 | 			if SecError.debugLevel > 0 {
  22 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:22:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |              `- note: did you mean to specify a raw type on the enum declaration?
   6 | 		case unimplemented = -4
   7 | 		case param = -50
     :
  20 | 			self = SecError(rawValue: status)!
  21 | 			if SecError.debugLevel > 0 {
  22 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
     |                                                                            `- error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
  23 | 			}
  24 | 		}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:28:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
   3 | open class SwKeyStore {
   4 |
   5 | 	public enum SecError: OSStatus, Error {
     |              `- note: did you mean to specify a raw type on the enum declaration?
   6 | 		case unimplemented = -4
   7 | 		case param = -50
     :
  26 | 			self = type
  27 | 			if SecError.debugLevel > 0 {
  28 | 				print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
     |                                                                            `- error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
  29 | 			}
  30 | 		}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:4: error: cannot find 'kSecClass' in scope
  36 |
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
     |    `- error: cannot find 'kSecClass' in scope
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:15: error: cannot find 'kSecClassKey' in scope
  36 |
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
     |               `- error: cannot find 'kSecClassKey' in scope
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:4: error: cannot find 'kSecAttrKeyType' in scope
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
     |    `- error: cannot find 'kSecAttrKeyType' in scope
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:21: error: cannot find 'kSecAttrKeyTypeRSA' in scope
  37 | 		var parameters: [NSString : AnyObject] = [
  38 | 			kSecClass: kSecClassKey,
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
     |                     `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:40:4: error: cannot find 'kSecAttrIsPermanent' in scope
  38 | 			kSecClass: kSecClassKey,
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
     |    `- error: cannot find 'kSecAttrIsPermanent' in scope
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
  42 | 			kSecValueData: pemKeyAsData as AnyObject
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:41:4: error: cannot find 'kSecAttrApplicationTag' in scope
  39 | 			kSecAttrKeyType: kSecAttrKeyTypeRSA,
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
     |    `- error: cannot find 'kSecAttrApplicationTag' in scope
  42 | 			kSecValueData: pemKeyAsData as AnyObject
  43 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:42:4: error: cannot find 'kSecValueData' in scope
  40 | 			kSecAttrIsPermanent: true as AnyObject,
  41 | 			kSecAttrApplicationTag: keyTag as AnyObject,
  42 | 			kSecValueData: pemKeyAsData as AnyObject
     |    `- error: cannot find 'kSecValueData' in scope
  43 | 		]
  44 | 		options.forEach { k, v in
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:16: error: cannot find 'SecItemAdd' in scope
  46 | 		}
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
     |                `- error: cannot find 'SecItemAdd' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:41: error: cannot find type 'CFDictionary' in scope
  46 | 		}
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
     |                                         `- error: cannot find type 'CFDictionary' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:55: error: 'nil' requires a contextual type
  46 | 		}
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
     |                                                       `- error: 'nil' requires a contextual type
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:49:16: error: cannot find 'errSecDuplicateItem' in scope
  47 |
  48 | 		var status = SecItemAdd(parameters as CFDictionary, nil)
  49 | 		if status == errSecDuplicateItem {
     |                `- error: cannot find 'errSecDuplicateItem' in scope
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:13: error: cannot find 'SecItemAdd' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
     |             `- error: cannot find 'SecItemAdd' in scope
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:38: error: cannot find type 'CFDictionary' in scope
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
     |                                      `- error: cannot find type 'CFDictionary' in scope
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:52: error: 'nil' requires a contextual type
  49 | 		if status == errSecDuplicateItem {
  50 | 			try delKey(keyTag)
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
     |                                                    `- error: 'nil' requires a contextual type
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:53:19: error: cannot find 'errSecSuccess' in scope
  51 | 			status = SecItemAdd(parameters as CFDictionary, nil)
  52 | 		}
  53 | 		guard status == errSecSuccess else { throw SecError(status) }
     |                   `- error: cannot find 'errSecSuccess' in scope
  54 | 	}
  55 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:4: error: cannot find 'kSecClass' in scope
  56 | 	public static func getKey(_ keyTag: String) throws -> String {
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
     |    `- error: cannot find 'kSecClass' in scope
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:16: error: cannot find 'kSecClassKey' in scope
  56 | 	public static func getKey(_ keyTag: String) throws -> String {
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
     |                `- error: cannot find 'kSecClassKey' in scope
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:4: error: cannot find 'kSecAttrKeyType' in scope
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
     |    `- error: cannot find 'kSecAttrKeyType' in scope
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
  61 | 			kSecReturnData : true as AnyObject
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:22: error: cannot find 'kSecAttrKeyTypeRSA' in scope
  57 | 		let parameters: [NSString : AnyObject] = [
  58 | 			kSecClass : kSecClassKey,
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
     |                      `- error: cannot find 'kSecAttrKeyTypeRSA' in scope
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
  61 | 			kSecReturnData : true as AnyObject
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:60:4: error: cannot find 'kSecAttrApplicationTag' in scope
  58 | 			kSecClass : kSecClassKey,
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
     |    `- error: cannot find 'kSecAttrApplicationTag' in scope
  61 | 			kSecReturnData : true as AnyObject
  62 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:61:4: error: cannot find 'kSecReturnData' in scope
  59 | 			kSecAttrKeyType : kSecAttrKeyTypeRSA,
  60 | 			kSecAttrApplicationTag : keyTag as AnyObject,
  61 | 			kSecReturnData : true as AnyObject
     |    `- error: cannot find 'kSecReturnData' in scope
  62 | 		]
  63 | 		var data: AnyObject?
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:16: error: cannot find 'SecItemCopyMatching' in scope
  62 | 		]
  63 | 		var data: AnyObject?
  64 | 		let status = SecItemCopyMatching(parameters as CFDictionary, &data)
     |                `- error: cannot find 'SecItemCopyMatching' in scope
  65 | 		guard status == errSecSuccess else { throw SecError(status) }
  66 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:50: error: cannot find type 'CFDictionary' in scope
  62 | 		]
  63 | 		var data: AnyObject?
  64 | 		let status = SecItemCopyMatching(parameters as CFDictionary, &data)
     |                                                  `- error: cannot find type 'CFDictionary' in scope
  65 | 		guard status == errSecSuccess else { throw SecError(status) }
  66 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:65:19: error: cannot find 'errSecSuccess' in scope
  63 | 		var data: AnyObject?
  64 | 		let status = SecItemCopyMatching(parameters as CFDictionary, &data)
  65 | 		guard status == errSecSuccess else { throw SecError(status) }
     |                   `- error: cannot find 'errSecSuccess' in scope
  66 |
  67 | 		guard let pemKeyAsData = data as? Data else {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:4: error: cannot find 'kSecClass' in scope
  76 | 	public static func delKey(_ keyTag: String) throws {
  77 | 		let parameters: [NSString : AnyObject] = [
  78 | 			kSecClass : kSecClassKey,
     |    `- error: cannot find 'kSecClass' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:16: error: cannot find 'kSecClassKey' in scope
  76 | 	public static func delKey(_ keyTag: String) throws {
  77 | 		let parameters: [NSString : AnyObject] = [
  78 | 			kSecClass : kSecClassKey,
     |                `- error: cannot find 'kSecClassKey' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:79:4: error: cannot find 'kSecAttrApplicationTag' in scope
  77 | 		let parameters: [NSString : AnyObject] = [
  78 | 			kSecClass : kSecClassKey,
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
     |    `- error: cannot find 'kSecAttrApplicationTag' in scope
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:16: error: cannot find 'SecItemDelete' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
     |                `- error: cannot find 'SecItemDelete' in scope
  82 | 		guard status == errSecSuccess else { throw SecError(status) }
  83 | 	}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:44: error: cannot find type 'CFDictionary' in scope
  79 | 			kSecAttrApplicationTag: keyTag as AnyObject
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
     |                                            `- error: cannot find type 'CFDictionary' in scope
  82 | 		guard status == errSecSuccess else { throw SecError(status) }
  83 | 	}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:82:19: error: cannot find 'errSecSuccess' in scope
  80 | 		]
  81 | 		let status = SecItemDelete(parameters as CFDictionary)
  82 | 		guard status == errSecSuccess else { throw SecError(status) }
     |                   `- error: cannot find 'errSecSuccess' in scope
  83 | 	}
  84 | }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:743:19: error: cannot find 'noErr' in scope
 741 | 		})
 742 |
 743 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 744 |
 745 | 		defer { _ = CCCryptorRelease!(cryptor!) }
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:758:19: error: cannot find 'noErr' in scope
 756 | 				&updateLen)
 757 | 		})
 758 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 759 |
 760 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:762:59: error: cannot find type 'OSStatus' in scope
 760 |
 761 | 		var finalLen: size_t = 0
 762 | 		status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
     |                                                           `- error: cannot find type 'OSStatus' in scope
 763 | 			return CCCryptorFinal!(
 764 | 				cryptor!,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:769:19: error: cannot find 'noErr' in scope
 767 | 				&finalLen)
 768 | 		}
 769 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 770 |
 771 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:925:20: error: cannot find 'noErr' in scope
 923 | 										 resultBytes, tagBytes, &tagLength_)
 924 | 			})
 925 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 926 |
 927 | 			tag.count = tagLength_
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:955:51: error: cannot find type 'OSStatus' in scope
 953 | 								 aData: Data, tagLength: Int) throws -> (Data, Data) {
 954 | 			var cryptor: CCCryptorRef? = nil
 955 | 			var status = key.withUnsafeBytes { keyBytes -> OSStatus in
     |                                                   `- error: cannot find type 'OSStatus' in scope
 956 | 				CCCryptorCreateWithMode!(
 957 | 					opMode.rawValue, AuthBlockMode.ccm.rawValue,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:962:20: error: cannot find 'noErr' in scope
 960 | 					0, CCModeOptions(), &cryptor)
 961 | 			}
 962 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 963 | 			defer { _ = CCCryptorRelease!(cryptor!) }
 964 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:967:20: error: cannot find 'noErr' in scope
 965 | 			status = CCCryptorAddParameter!(cryptor!,
 966 | 				Parameter.dataSize.rawValue, nil, data.count)
 967 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 968 |
 969 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:970:20: error: cannot find 'noErr' in scope
 968 |
 969 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
 970 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 971 |
 972 | 			status = iv.withUnsafeBytes { ivBytes -> OSStatus in
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:972:45: error: cannot find type 'OSStatus' in scope
 970 | 			guard status == noErr else { throw CCError(status) }
 971 |
 972 | 			status = iv.withUnsafeBytes { ivBytes -> OSStatus in
     |                                             `- error: cannot find type 'OSStatus' in scope
 973 | 				CCCryptorAddParameter!(cryptor!, Parameter.iv.rawValue, ivBytes.baseAddress!, iv.count)
 974 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:975:20: error: cannot find 'noErr' in scope
 973 | 				CCCryptorAddParameter!(cryptor!, Parameter.iv.rawValue, ivBytes.baseAddress!, iv.count)
 974 | 			}
 975 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 976 |
 977 | 			status = aData.withUnsafeBytes { aDataBytes -> OSStatus in
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:977:51: error: cannot find type 'OSStatus' in scope
 975 | 			guard status == noErr else { throw CCError(status) }
 976 |
 977 | 			status = aData.withUnsafeBytes { aDataBytes -> OSStatus in
     |                                                   `- error: cannot find type 'OSStatus' in scope
 978 | 				CCCryptorAddParameter!(cryptor!, Parameter.authData.rawValue, aDataBytes.baseAddress!, aData.count)
 979 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:980:20: error: cannot find 'noErr' in scope
 978 | 				CCCryptorAddParameter!(cryptor!, Parameter.authData.rawValue, aDataBytes.baseAddress!, aData.count)
 979 | 			}
 980 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 981 |
 982 | 			var result = Data(count: data.count)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:991:20: error: cannot find 'noErr' in scope
 989 | 					&updateLen)
 990 | 			})
 991 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 992 |
 993 | 			var finalLen: size_t = 0
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:994:60: error: cannot find type 'OSStatus' in scope
 992 |
 993 | 			var finalLen: size_t = 0
 994 | 			status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
     |                                                            `- error: cannot find type 'OSStatus' in scope
 995 | 				CCCryptorFinal!(cryptor!, resultBytes.baseAddress! + updateLen,
 996 | 								rescount - updateLen,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:999:20: error: cannot find 'noErr' in scope
 997 | 								&finalLen)
 998 | 			}
 999 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1000 |
1001 | 			result.count = updateLen + finalLen
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1005:54: error: cannot find type 'OSStatus' in scope
1003 | 			var tagLength_ = tagLength
1004 | 			var tag = Data(count: tagLength)
1005 | 			status = tag.withUnsafeMutableBytes { tagBytes -> OSStatus in
     |                                                      `- error: cannot find type 'OSStatus' in scope
1006 | 				CCCryptorGetParameter!(cryptor!, Parameter.authTag.rawValue,
1007 | 									   tagBytes.baseAddress!, &tagLength_)
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1009:20: error: cannot find 'noErr' in scope
1007 | 									   tagBytes.baseAddress!, &tagLength_)
1008 | 			}
1009 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1010 |
1011 | 			tag.count = tagLength_
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1063:20: error: cannot find 'noErr' in scope
1061 | 				&publicKey,
1062 | 				&privateKey)
1063 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1064 |
1065 | 			defer {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1109:20: error: cannot find 'noErr' in scope
1107 | 					digest.rawValue)
1108 | 			})
1109 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1110 |
1111 | 			buffer.count = bufferSize
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1137:20: error: cannot find 'noErr' in scope
1135 | 					digest.rawValue)
1136 | 			})
1137 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1138 | 			buffer.count = bufferSize
1139 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1145:57: error: cannot find type 'OSStatus' in scope
1143 | 		fileprivate static func importFromDERKey(_ derKey: Data) throws -> CCRSACryptorRef {
1144 | 			var key: CCRSACryptorRef? = nil
1145 | 			let status = derKey.withUnsafeBytes { derKeyBytes -> OSStatus in
     |                                                         `- error: cannot find type 'OSStatus' in scope
1146 | 				CCRSACryptorImport!(
1147 | 					derKeyBytes.baseAddress!,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1151:20: error: cannot find 'noErr' in scope
1149 | 					&key)
1150 | 			}
1151 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1152 |
1153 | 			return key!
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1159:64: error: cannot find type 'OSStatus' in scope
1157 | 			var derKeyLength = 8192
1158 | 			var derKey = Data(count: derKeyLength)
1159 | 			let status = derKey.withUnsafeMutableBytes { derKeyBytes -> OSStatus in
     |                                                                `- error: cannot find type 'OSStatus' in scope
1160 | 				CCRSACryptorExport!(key, derKeyBytes.baseAddress!, &derKeyLength)
1161 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1162:20: error: cannot find 'noErr' in scope
1160 | 				CCRSACryptorExport!(key, derKeyBytes.baseAddress!, &derKeyLength)
1161 | 			}
1162 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1163 |
1164 | 			derKey.count = derKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1198:21: error: cannot find 'noErr' in scope
1196 | 						signedDataBytes, &signedDataLength)
1197 | 				})
1198 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1199 |
1200 | 				signedData.count = signedDataLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1237:21: error: cannot find 'noErr' in scope
1235 | 					return false
1236 | 				}
1237 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1238 | 				return true
1239 | 			case .pss:
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1261:20: error: cannot find 'noErr' in scope
1259 | 			})
1260 |
1261 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1262 | 			out.count = outLength
1263 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1562:65: error: cannot find type 'OSStatus' in scope
1560 | 				var outputLength = 8192
1561 | 				var output = Data(count: outputLength)
1562 | 				let status = output.withUnsafeMutableBytes { outputBytes -> OSStatus in
     |                                                                 `- error: cannot find type 'OSStatus' in scope
1563 | 					CCDHGenerateKey!(ref!, outputBytes.baseAddress!, &outputLength)
1564 | 				}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1658:20: error: cannot find 'noErr' in scope
1656 | 				&pubKey,
1657 | 				&privKey)
1658 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1659 |
1660 | 			defer {
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1694:20: error: cannot find 'noErr' in scope
1692 | 					signedDataBytes, &signedDataLength)
1693 | 			})
1694 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1695 |
1696 | 			signedData.count = signedDataLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1714:20: error: cannot find 'noErr' in scope
1712 | 					&valid)
1713 | 			})
1714 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1715 |
1716 | 			return valid != 0
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1730:64: error: cannot find type 'OSStatus' in scope
1728 | 			var outSize = 8192
1729 | 			var result = Data(count:outSize)
1730 | 			let status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
     |                                                                `- error: cannot find type 'OSStatus' in scope
1731 | 				CCECCryptorComputeSharedSecret!(privKey, pubKey, resultBytes.baseAddress!, &outSize)
1732 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1733:20: error: cannot find 'noErr' in scope
1731 | 				CCECCryptorComputeSharedSecret!(privKey, pubKey, resultBytes.baseAddress!, &outSize)
1732 | 			}
1733 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1734 |
1735 | 			result.count = outSize
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1773:20: error: cannot find 'noErr' in scope
1771 | 													dBytes, &dSize)
1772 | 			})
1773 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1774 |
1775 | 			x.count = xSize
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1792:20: error: cannot find 'noErr' in scope
1790 | 												  yBytes, y.count, &pubKey)
1791 | 			})
1792 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1793 | 			defer { CCECCryptorRelease!(pubKey!) }
1794 |
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1802:51: error: cannot find type 'OSStatus' in scope
1800 | 										  keyType: KeyType) throws -> CCECCryptorRef {
1801 | 			var impKey: CCECCryptorRef? = nil
1802 | 			let status = key.withUnsafeBytes { keyBytes -> OSStatus in
     |                                                   `- error: cannot find type 'OSStatus' in scope
1803 | 				CCECCryptorImportKey!(format.rawValue,
1804 | 									  keyBytes.baseAddress!, key.count,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1807:20: error: cannot find 'noErr' in scope
1805 | 									  keyType.rawValue, &impKey)
1806 | 			}
1807 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1808 |
1809 | 			return impKey!
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1816:64: error: cannot find type 'OSStatus' in scope
1814 | 			var expKeyLength = 8192
1815 | 			var expKey = Data(count:expKeyLength)
1816 | 			let status = expKey.withUnsafeMutableBytes { expKeyBytes -> OSStatus in
     |                                                                `- error: cannot find type 'OSStatus' in scope
1817 | 				CCECCryptorExportKey!(
1818 | 					format.rawValue,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1824:20: error: cannot find 'noErr' in scope
1822 | 					key)
1823 | 			}
1824 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1825 |
1826 | 			expKey.count = expKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1979:55: error: cannot find type 'OSStatus' in scope
1977 | 		public static func crc(_ input: Data, mode: Mode) throws -> UInt64 {
1978 | 			var result: UInt64 = 0
1979 | 			let status = input.withUnsafeBytes { inputBytes -> OSStatus in
     |                                                       `- error: cannot find type 'OSStatus' in scope
1980 | 				CNCRC!(
1981 | 					mode.rawValue,
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1985:20: error: cannot find 'noErr' in scope
1983 | 					&result)
1984 | 			}
1985 | 			guard status == noErr else {
     |                    `- error: cannot find 'noErr' in scope
1986 | 				throw CCError(status)
1987 | 			}
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2055:20: error: cannot find 'noErr' in scope
2053 | 											 resultBytes, rescount)
2054 | 			})
2055 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2056 |
2057 | 			return result
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2099:20: error: cannot find 'noErr' in scope
2097 | 					wrappedKeyBytes, &wrappedKeyLength)
2098 | 			})
2099 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2100 |
2101 | 			wrappedKey.count = wrappedKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2120:20: error: cannot find 'noErr' in scope
2118 | 					rawKeyBytes, &rawKeyLength)
2119 | 			})
2120 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2121 |
2122 | 			rawKey.count = rawKeyLength
BUILD FAILURE 6.1 linux