The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Swiftagram, reference main (de8a5d), with Swift 6.1 for Wasm on 28 May 2025 01:22:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sbertix/Swiftagram.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/sbertix/Swiftagram
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at de8a5d8 feat: update collection and timeline endpoints
Cloned https://github.com/sbertix/Swiftagram.git
Revision (git rev-parse @):
de8a5d840a81b3d0dd66f0dc45304c54f29d0fda
SUCCESS checkout https://github.com/sbertix/Swiftagram.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sbertix/Swiftagram.git
https://github.com/sbertix/Swiftagram.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "composablerequest",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.3.1",
            "upper_bound" : "5.4.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sbertix/ComposableRequest"
    },
    {
      "identity" : "swcrypt",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.0",
            "upper_bound" : "5.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sbertix/SwCrypt.git"
    }
  ],
  "manifest_display_name" : "Swiftagram",
  "name" : "Swiftagram",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Swiftagram",
      "targets" : [
        "Swiftagram"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftagramCrypto",
      "targets" : [
        "SwiftagramCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftagramTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftagramTests",
      "path" : "Tests/SwiftagramTests",
      "sources" : [
        "AuthenticatorTests.swift",
        "ClientTests.swift",
        "EndpointTests.swift",
        "ModelTests.swift",
        "Shared/Media+Content.swift",
        "Shared/Reflection/Comment.swift",
        "Shared/Reflection/Conversation.swift",
        "Shared/Reflection/Friendship.swift",
        "Shared/Reflection/Location.swift",
        "Shared/Reflection/Media.swift",
        "Shared/Reflection/Recipient.swift",
        "Shared/Reflection/Reflected.swift",
        "Shared/Reflection/SavedCollection.swift",
        "Shared/Reflection/Status.swift",
        "Shared/Reflection/Sticker.swift",
        "Shared/Reflection/Tag.swift",
        "Shared/Reflection/TrayItem.swift",
        "Shared/Reflection/User.swift",
        "Shared/Reflection/UserTag.swift"
      ],
      "target_dependencies" : [
        "Swiftagram",
        "SwiftagramCrypto"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftagramCrypto",
      "module_type" : "SwiftTarget",
      "name" : "SwiftagramCrypto",
      "path" : "Sources/SwiftagramCrypto",
      "product_dependencies" : [
        "StorageCrypto",
        "SwCrypt"
      ],
      "product_memberships" : [
        "SwiftagramCrypto"
      ],
      "sources" : [
        "Authentication/Authenticator+Keychain.swift",
        "Authentication/Basic/Authenticator+Basic.swift",
        "Authentication/Basic/Authenticator+TwoFactor.swift",
        "Endpoints/Endpoint+Comment.swift",
        "Endpoints/Endpoint+ManyComments.swift",
        "Endpoints/Endpoint+Media.swift",
        "Endpoints/Endpoint+Posts.swift",
        "Endpoints/Endpoint+Stories.swift",
        "Endpoints/Endpoint+Tag.swift",
        "Endpoints/Endpoint+Uploader.swift",
        "Endpoints/Endpoint+User.swift",
        "Extensions/@_exported.swift",
        "Extensions/Crypto.swift"
      ],
      "target_dependencies" : [
        "Swiftagram"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Swiftagram",
      "module_type" : "SwiftTarget",
      "name" : "Swiftagram",
      "path" : "Sources/Swiftagram",
      "product_dependencies" : [
        "Requests",
        "Storage"
      ],
      "product_memberships" : [
        "Swiftagram",
        "SwiftagramCrypto"
      ],
      "sources" : [
        "Authentication/Authentication.swift",
        "Authentication/Authenticator+Error.swift",
        "Authentication/Authenticator+Key.swift",
        "Authentication/Authenticator+Keys.swift",
        "Authentication/Authenticator.swift",
        "Authentication/Secret.swift",
        "Authentication/Visual/Authenticator+Visual.swift",
        "Authentication/Visual/AuthenticatorWebView.swift",
        "Client/Application.swift",
        "Client/Client.swift",
        "Client/Device.swift",
        "Client/LegacyDevice.swift",
        "Endpoints/Archived/Endpoint+Archived.swift",
        "Endpoints/Direct/Endpoint+Conversation.swift",
        "Endpoints/Direct/Endpoint+ConversationRequest.swift",
        "Endpoints/Direct/Endpoint+Direct.swift",
        "Endpoints/Direct/Endpoint+Message.swift",
        "Endpoints/Endpoint.swift",
        "Endpoints/Explore/Endpoint+Explore.swift",
        "Endpoints/Location/Endpoint+Location.swift",
        "Endpoints/Location/Endpoint+LocationPosts.swift",
        "Endpoints/Media/Endpoint+Comment.swift",
        "Endpoints/Media/Endpoint+ManyComments.swift",
        "Endpoints/Media/Endpoint+Media.swift",
        "Endpoints/Posts/Endpoint+Posts.swift",
        "Endpoints/Recent/Endpoint+Recent.swift",
        "Endpoints/Saved/Endpoint+Saved.swift",
        "Endpoints/Saved/Endpoint+SavedCollection.swift",
        "Endpoints/Stories/Endpoint+Stories.swift",
        "Endpoints/Tag/Endpoint+Tag.swift",
        "Endpoints/Tag/Endpoint+TagPosts.swift",
        "Endpoints/User/Endpoint+ManyUsers.swift",
        "Endpoints/User/Endpoint+User.swift",
        "Endpoints/User/Endpoint+Users.swift",
        "Extensions/@_exported.swift",
        "Extensions/Agnostic.swift",
        "Extensions/Constants.swift",
        "Extensions/HTTPCookie.swift",
        "Extensions/Header.swift",
        "Extensions/Paginatable.swift",
        "Extensions/Publisher.swift",
        "Extensions/URLSession.swift",
        "Models/Errors/AuthenticationError.swift",
        "Models/Specialized/Comment.swift",
        "Models/Specialized/Conversation.swift",
        "Models/Specialized/Friendship.swift",
        "Models/Specialized/Location.swift",
        "Models/Specialized/Media.swift",
        "Models/Specialized/Recipient.swift",
        "Models/Specialized/SavedCollection.swift",
        "Models/Specialized/Section.swift",
        "Models/Specialized/Specialized.swift",
        "Models/Specialized/Status.swift",
        "Models/Specialized/Sticker.swift",
        "Models/Specialized/Tag.swift",
        "Models/Specialized/TrayItem.swift",
        "Models/Specialized/User.swift",
        "Models/Specialized/UserTag.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/sbertix/SwCrypt.git
Fetching https://github.com/sbertix/ComposableRequest
[1/495] Fetching swcrypt
[298/8921] Fetching swcrypt, composablerequest
Fetched https://github.com/sbertix/SwCrypt.git from cache (0.76s)
Fetched https://github.com/sbertix/ComposableRequest from cache (0.77s)
Computing version for https://github.com/sbertix/ComposableRequest
Computed https://github.com/sbertix/ComposableRequest at 5.3.3 (1.27s)
Fetching https://github.com/kishikawakatsumi/KeychainAccess
[1/4386] Fetching keychainaccess
Fetched https://github.com/kishikawakatsumi/KeychainAccess from cache (0.90s)
Computing version for https://github.com/kishikawakatsumi/KeychainAccess
Computed https://github.com/kishikawakatsumi/KeychainAccess at 4.2.2 (1.39s)
Computing version for https://github.com/sbertix/SwCrypt.git
Computed https://github.com/sbertix/SwCrypt.git at 5.1.4 (0.47s)
Creating working copy for https://github.com/sbertix/SwCrypt.git
Working copy of https://github.com/sbertix/SwCrypt.git resolved at 5.1.4
Creating working copy for https://github.com/sbertix/ComposableRequest
Working copy of https://github.com/sbertix/ComposableRequest resolved at 5.3.3
Creating working copy for https://github.com/kishikawakatsumi/KeychainAccess
Working copy of https://github.com/kishikawakatsumi/KeychainAccess resolved at 4.2.2
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/57] Emitting module KeychainAccess
/host/spi-builder-workspace/.build/checkouts/KeychainAccess/Lib/KeychainAccess/Keychain.swift:27:8: error: no such module 'Security'
  25 |
  26 | import Foundation
  27 | import Security
     |        `- error: no such module 'Security'
  28 | #if os(iOS) || os(OSX)
  29 | import LocalAuthentication
[10/57] Compiling KeychainAccess Keychain.swift
/host/spi-builder-workspace/.build/checkouts/KeychainAccess/Lib/KeychainAccess/Keychain.swift:27:8: error: no such module 'Security'
  25 |
  26 | import Foundation
  27 | import Security
     |        `- error: no such module 'Security'
  28 | #if os(iOS) || os(OSX)
  29 | import LocalAuthentication
[11/57] Compiling ComposableRequest Pager.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[12/57] Compiling ComposableRequest Paginatable.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[13/57] Compiling ComposableRequest RankedOffset.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[14/57] Compiling ComposableRequest Publisher+Request.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[15/57] Compiling ComposableRequest Publisher+Wrapper.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[16/57] Compiling ComposableRequest SessionProvider.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[17/57] Compiling ComposableRequest SessionProviderInput.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[18/57] Compiling ComposableRequest SessionProviderType.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[19/57] Compiling ComposableRequest Pager+Delay.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[20/57] Compiling ComposableRequest Pager+Iteration.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[21/62] Compiling ComposableStorage Storable.swift
[22/62] Emitting module ComposableStorage
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/62] Emitting module SwCrypt
/host/spi-builder-workspace/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:30: error: cannot find 'dlopen' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:78: error: cannot find 'RTLD_NOW' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:30: error: cannot find 'dlopen' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:78: error: cannot find 'RTLD_NOW' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/50] Compiling ComposableRequest ConcatProvider4.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[3/50] Compiling ComposableRequest ConcatProvider5.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[4/50] Compiling ComposableRequest LockProvider.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[5/50] Compiling ComposableRequest LockProviderType.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[6/50] Compiling ComposableRequest ComposableOptionalType.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[7/55] Compiling ComposableStorage Storable.swift
[8/55] Compiling ComposableStorage Storage.swift
[9/56] Compiling ComposableStorage CodableStorable.swift
[10/56] Compiling ComposableStorage NonThrowingStorage.swift
[11/56] Compiling ComposableStorage TransientStorage.swift
[12/56] Compiling ComposableStorage UserDefaultsStorage.swift
[13/56] Compiling ComposableRequest PagerProvider.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[14/56] Compiling ComposableRequest PagerProviderInput.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[15/56] Compiling ComposableRequest PagerProviderType.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[16/56] Compiling ComposableRequest Provider+Alias.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[17/56] Compiling ComposableRequest Provider.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[18/56] Emitting module ComposableStorage
[19/56] Compiling ComposableRequest SessionProvider.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[20/56] Compiling ComposableRequest SessionProviderInput.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[21/56] Compiling ComposableRequest SessionProviderType.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[22/56] Compiling ComposableRequest Pager+Delay.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[23/56] Compiling ComposableRequest Pager+Iteration.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[24/56] Compiling ComposableStorage AnyStorage.swift
[25/56] Compiling ComposableRequest Pager.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[26/56] Compiling ComposableRequest Paginatable.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[27/56] Compiling ComposableRequest RankedOffset.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[28/56] Compiling ComposableRequest Publisher+Request.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[29/56] Compiling ComposableRequest Publisher+Wrapper.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[30/56] Compiling ComposableRequest String.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[31/56] Compiling ComposableRequest Logger+Level.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[32/56] Compiling ComposableRequest Logger.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[33/56] Compiling ComposableRequest ConcatProvider.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[34/56] Compiling ComposableRequest ConcatProvider3.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[35/56] Compiling ComposableStorage ThrowingStorage.swift
[37/57] Compiling ComposableRequest Body.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[38/57] Compiling ComposableRequest Header.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[39/57] Compiling ComposableRequest Method.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[40/57] Compiling ComposableRequest Path.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[41/57] Compiling ComposableRequest Query.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[42/57] Compiling ComposableRequest Timeout.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/57] Emitting module ComposableRequest
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[44/57] Compiling ComposableRequest @_exported.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[45/57] Compiling ComposableRequest CharacterSet.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[46/57] Compiling ComposableRequest CodableHTTPCookie.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[47/57] Compiling ComposableRequest Data.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[48/57] Compiling ComposableRequest Reference.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[49/57] Compiling ComposableRequest Request+Response.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[50/57] Compiling ComposableRequest Request.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[51/57] Compiling ComposableRequest Wrappable.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[52/57] Compiling ComposableRequest Wrapped.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
[53/57] Compiling ComposableRequest Wrapper.swift
/host/spi-builder-workspace/.build/checkouts/ComposableRequest/Sources/ComposableRequest/Extensions/@_exported.swift:8:19: error: no such module 'Combine'
6 | //
7 |
8 | @_exported import Combine
  |                   `- error: no such module 'Combine'
9 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[54/57] Emitting module KeychainAccess
/host/spi-builder-workspace/.build/checkouts/KeychainAccess/Lib/KeychainAccess/Keychain.swift:27:8: error: no such module 'Security'
  25 |
  26 | import Foundation
  27 | import Security
     |        `- error: no such module 'Security'
  28 | #if os(iOS) || os(OSX)
  29 | import LocalAuthentication
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/57] Emitting module SwCrypt
/host/spi-builder-workspace/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:30: error: cannot find 'dlopen' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:78: error: cannot find 'RTLD_NOW' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:30: error: cannot find 'dlopen' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:891:78: error: cannot find 'RTLD_NOW' in scope
 889 |
 890 |
 891 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 892 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 893 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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/.build/checkouts/SwCrypt/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 | 	}
BUILD FAILURE 6.1 wasm