The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwCrypt, reference 5.1.4 (e85028), with Swift 6.2 (beta) for Linux on 21 Jun 2025 00:23:49 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sbertix/SwCrypt.git
Reference: 5.1.4
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/sbertix/SwCrypt
 * tag               5.1.4      -> FETCH_HEAD
HEAD is now at e850285 Fix warning
Cloned https://github.com/sbertix/SwCrypt.git
Revision (git rev-parse @):
e850285c2dadd4343be9465adc67cd717a64792f
SUCCESS checkout https://github.com/sbertix/SwCrypt.git at 5.1.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/sbertix/SwCrypt.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-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: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 {
[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: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: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:2100:20: error: cannot find 'noErr' in scope
2098 | 					wrappedKeyBytes, &wrappedKeyLength)
2099 | 			})
2100 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2101 |
2102 | 			wrappedKey.count = wrappedKeyLength
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2121:20: error: cannot find 'noErr' in scope
2119 | 					rawKeyBytes, &rawKeyLength)
2120 | 			})
2121 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2122 |
2123 | 			rawKey.count = rawKeyLength
BUILD FAILURE 6.2 linux