The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Steam, reference 0.1.0 (730abb), with Swift 6.1 for Android on 28 May 2025 00:26:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sebj/Steam.git
Reference: 0.1.0
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/sebj/Steam
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 730abba 🚀 Initial commit
Cloned https://github.com/sebj/Steam.git
Revision (git rev-parse @):
730abbad18f7ff1f3eea0bfb2de0efa615d5183f
SUCCESS checkout https://github.com/sebj/Steam.git at 0.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sebj/Steam.git
https://github.com/sebj/Steam.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "cryptoswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.8",
            "upper_bound" : "1.4.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/krzyzanowskim/CryptoSwift.git"
    },
    {
      "identity" : "gzipswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.1",
            "upper_bound" : "5.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/1024jp/GzipSwift.git"
    },
    {
      "identity" : "swcrypt",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.4",
            "upper_bound" : "5.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/soyersoyer/SwCrypt.git"
    },
    {
      "identity" : "swift-protobuf",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.15.0",
            "upper_bound" : "1.16.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-protobuf.git"
    }
  ],
  "manifest_display_name" : "Steam",
  "name" : "Steam",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "Steam",
      "targets" : [
        "Steam"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SteamTests",
      "module_type" : "SwiftTarget",
      "name" : "SteamTests",
      "path" : "Tests/SteamTests",
      "sources" : [
        "DataExtensionsTests.swift",
        "DataReaderTests.swift",
        "EncryptionDataTests.swift",
        "PacketTests.swift",
        "SteamIdentifierTests.swift",
        "SteamServiceTests.swift"
      ],
      "target_dependencies" : [
        "Steam"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Steam",
      "module_type" : "SwiftTarget",
      "name" : "Steam",
      "path" : "Sources/Steam",
      "product_dependencies" : [
        "CryptoSwift",
        "Gzip",
        "SwCrypt",
        "SwiftProtobuf"
      ],
      "product_memberships" : [
        "Steam"
      ],
      "sources" : [
        "ChatMode.swift",
        "Connection.swift",
        "DataReader.swift",
        "Encryption/EncryptionData.swift",
        "Encryption/EncryptionRequest.swift",
        "Encryption/EncryptionResult.swift",
        "Encryption/SteamService+EncryptionMessages.swift",
        "Extensions/DataConvertible.swift",
        "Extensions/DataExtensions.swift",
        "Extensions/Publisher+Sink.swift",
        "Extensions/UInt32+Protobuf.swift",
        "Friends/SteamFriend.swift",
        "Friends/SteamService+Friends.swift",
        "Generated Protobuf/enums_clientserver.pb.swift",
        "Generated Protobuf/steammessages_base.pb.swift",
        "Generated Protobuf/steammessages_clientserver_2.pb.swift",
        "Generated Protobuf/steammessages_clientserver_friends.pb.swift",
        "Generated Protobuf/steammessages_clientserver_login.pb.swift",
        "Login/SteamLoginResponse.swift",
        "Login/SteamService+Login.swift",
        "Message/Message.swift",
        "Message/MessageProtocol.swift",
        "Message/MessageType.swift",
        "Message/ProtobufMessage.swift",
        "Message/SessionIdentifier.swift",
        "MessageReader.swift",
        "Packet.swift",
        "SteamAccountFlags.swift",
        "SteamIdentifier/AccountType.swift",
        "SteamIdentifier/SteamIdentifier.swift",
        "SteamIdentifier/Universe.swift",
        "SteamResult.swift",
        "SteamServer+Defaults.swift",
        "SteamServer.swift",
        "SteamServersFetcher.swift",
        "SteamService+Cryptography.swift",
        "SteamService+Send.swift",
        "SteamService.swift",
        "UserInfo.swift",
        "UserState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Steam/Protobuf': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-protobuf.git
Fetching https://github.com/soyersoyer/SwCrypt.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/1024jp/GzipSwift.git
[1/1549] Fetching gzipswift
[1550/2141] Fetching gzipswift, swcrypt
[2142/15082] Fetching gzipswift, swcrypt, cryptoswift
Fetched https://github.com/1024jp/GzipSwift.git from cache (0.30s)
[2534/13533] Fetching swcrypt, cryptoswift
[5123/52502] Fetching swcrypt, cryptoswift, swift-protobuf
Fetched https://github.com/soyersoyer/SwCrypt.git from cache (1.49s)
[25022/51910] Fetching cryptoswift, swift-protobuf
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.53s)
[12860/38969] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf.git from cache (7.92s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.15.0 (10.34s)
Computing version for https://github.com/soyersoyer/SwCrypt.git
Computed https://github.com/soyersoyer/SwCrypt.git at 5.1.4 (2.57s)
Computing version for https://github.com/1024jp/GzipSwift.git
Computed https://github.com/1024jp/GzipSwift.git at 5.1.1 (0.69s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.3.8 (0.62s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.3.8
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.15.0
Creating working copy for https://github.com/1024jp/GzipSwift.git
Working copy of https://github.com/1024jp/GzipSwift.git resolved at 5.1.1
Creating working copy for https://github.com/soyersoyer/SwCrypt.git
Working copy of https://github.com/soyersoyer/SwCrypt.git resolved at 5.1.4
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Steam/Protobuf': File not found.
Building for debugging...
[0/7] Write sources
[5/7] Compiling system-zlib anchor.c
[5/7] Write swift-version-24593BA9C3E375BF.txt
[8/153] Emitting module CryptoSwift
[9/162] Compiling CryptoSwift MD5.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[10/162] Compiling CryptoSwift NoPadding.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[11/162] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[12/162] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[13/162] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[14/162] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[15/162] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[16/162] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[17/162] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[18/162] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[19/162] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[20/162] Compiling SwiftProtobuf HashVisitor.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[21/162] Compiling SwiftProtobuf Internal.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[22/162] Compiling SwiftProtobuf TimeUtils.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[23/162] Compiling SwiftProtobuf UnknownStorage.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[24/162] Compiling SwiftProtobuf UnsafeBufferPointer+Shims.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[25/162] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[26/162] Compiling SwiftProtobuf Varint.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:39:9: error: cannot find 'mlock' in scope
37 |         VirtualLock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
38 |       #else
39 |         mlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'mlock' in scope
40 |       #endif
41 |     }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift:49:9: error: cannot find 'munlock' in scope
47 |         VirtualUnlock(UnsafeMutableRawPointer(mutating: pointer.baseAddress), SIZE_T(pointer.count))
48 |       #else
49 |         munlock(pointer.baseAddress, pointer.count)
   |         `- error: cannot find 'munlock' in scope
50 |       #endif
51 |     }
[27/162] Compiling SwiftProtobuf AnyMessageStorage.swift
[28/162] Compiling SwiftProtobuf AnyUnpackError.swift
[29/162] Compiling SwiftProtobuf BinaryDecoder.swift
[30/162] Compiling SwiftProtobuf BinaryDecodingError.swift
[31/162] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[32/162] Compiling SwiftProtobuf BinaryDelimited.swift
[33/162] Compiling SwiftProtobuf BinaryEncoder.swift
[34/162] Compiling SwiftProtobuf BinaryEncodingError.swift
[35/162] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[36/162] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[42/162] Compiling SwiftProtobuf Version.swift
[43/162] Compiling SwiftProtobuf Visitor.swift
[44/162] Compiling SwiftProtobuf WireFormat.swift
[45/162] Compiling SwiftProtobuf ZigZag.swift
[46/162] Compiling SwiftProtobuf any.pb.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/162] 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:890:30: error: cannot find 'dlopen' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:890:78: error: cannot find 'RTLD_NOW' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
[48/162] Compiling SwCrypt SwCrypt.swift
/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:890:30: error: cannot find 'dlopen' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:890:78: error: cannot find 'RTLD_NOW' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		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:742:19: error: cannot find 'noErr' in scope
 740 | 		})
 741 |
 742 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 743 |
 744 | 		defer { _ = CCCryptorRelease!(cryptor!) }
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:757:19: error: cannot find 'noErr' in scope
 755 | 				&updateLen)
 756 | 		})
 757 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 758 |
 759 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:768:19: error: cannot find 'noErr' in scope
 766 | 				&finalLen)
 767 | 		}
 768 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 769 |
 770 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:924:20: error: cannot find 'noErr' in scope
 922 | 										 resultBytes, tagBytes, &tagLength_)
 923 | 			})
 924 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 925 |
 926 | 			tag.count = tagLength_
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:961:20: error: cannot find 'noErr' in scope
 959 | 					0, CCModeOptions(), &cryptor)
 960 | 			}
 961 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 962 | 			defer { _ = CCCryptorRelease!(cryptor!) }
 963 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:966:20: error: cannot find 'noErr' in scope
 964 | 			status = CCCryptorAddParameter!(cryptor!,
 965 | 				Parameter.dataSize.rawValue, nil, data.count)
 966 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 967 |
 968 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:969:20: error: cannot find 'noErr' in scope
 967 |
 968 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
 969 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 970 |
 971 | 			status = iv.withUnsafeBytes { ivBytes in
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:974:20: error: cannot find 'noErr' in scope
 972 | 				return CCCryptorAddParameter!(cryptor!, Parameter.iv.rawValue, ivBytes, iv.count)
 973 | 			}
 974 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 975 |
 976 | 			status = aData.withUnsafeBytes { aDataBytes in
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:979:20: error: cannot find 'noErr' in scope
 977 | 				return CCCryptorAddParameter!(cryptor!, Parameter.authData.rawValue, aDataBytes, aData.count)
 978 | 			}
 979 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 980 |
 981 | 			var result = Data(count: data.count)
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:990:20: error: cannot find 'noErr' in scope
 988 | 					&updateLen)
 989 | 			})
 990 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 991 |
 992 | 			var finalLen: size_t = 0
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:998:20: error: cannot find 'noErr' in scope
 996 | 									   &finalLen)
 997 | 			}
 998 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 999 |
1000 | 			result.count = updateLen + finalLen
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1008:20: error: cannot find 'noErr' in scope
1006 | 											  tagBytes, &tagLength_)
1007 | 			}
1008 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1009 |
1010 | 			tag.count = tagLength_
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1062:20: error: cannot find 'noErr' in scope
1060 | 				&publicKey,
1061 | 				&privateKey)
1062 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1063 |
1064 | 			defer {
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1108:20: error: cannot find 'noErr' in scope
1106 | 					digest.rawValue)
1107 | 			})
1108 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1109 |
1110 | 			buffer.count = bufferSize
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1136:20: error: cannot find 'noErr' in scope
1134 | 					digest.rawValue)
1135 | 			})
1136 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1137 | 			buffer.count = bufferSize
1138 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1150:20: error: cannot find 'noErr' in scope
1148 | 					&key)
1149 | 			}
1150 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1151 |
1152 | 			return key!
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1161:20: error: cannot find 'noErr' in scope
1159 | 				return CCRSACryptorExport!(key, derKeyBytes, &derKeyLength)
1160 | 			}
1161 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1162 |
1163 | 			derKey.count = derKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1197:21: error: cannot find 'noErr' in scope
1195 | 						signedDataBytes, &signedDataLength)
1196 | 				})
1197 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1198 |
1199 | 				signedData.count = signedDataLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1236:21: error: cannot find 'noErr' in scope
1234 | 					return false
1235 | 				}
1236 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1237 | 				return true
1238 | 			case .pss:
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1260:20: error: cannot find 'noErr' in scope
1258 | 			})
1259 |
1260 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1261 | 			out.count = outLength
1262 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1657:20: error: cannot find 'noErr' in scope
1655 | 				&pubKey,
1656 | 				&privKey)
1657 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1658 |
1659 | 			defer {
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1693:20: error: cannot find 'noErr' in scope
1691 | 					signedDataBytes, &signedDataLength)
1692 | 			})
1693 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1694 |
1695 | 			signedData.count = signedDataLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1713:20: error: cannot find 'noErr' in scope
1711 | 					&valid)
1712 | 			})
1713 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1714 |
1715 | 			return valid != 0
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1732:20: error: cannot find 'noErr' in scope
1730 | 				return CCECCryptorComputeSharedSecret!(privKey, pubKey, resultBytes, &outSize)
1731 | 			}
1732 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1733 |
1734 | 			result.count = outSize
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1772:20: error: cannot find 'noErr' in scope
1770 | 													dBytes, &dSize)
1771 | 			})
1772 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1773 |
1774 | 			x.count = xSize
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1791:20: error: cannot find 'noErr' in scope
1789 | 												  yBytes, y.count, &pubKey)
1790 | 			})
1791 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1792 | 			defer { CCECCryptorRelease!(pubKey!) }
1793 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1806:20: error: cannot find 'noErr' in scope
1804 | 											keyType.rawValue, &impKey)
1805 | 			}
1806 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1807 |
1808 | 			return impKey!
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1823:20: error: cannot find 'noErr' in scope
1821 | 					key)
1822 | 			}
1823 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1824 |
1825 | 			expKey.count = expKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1984:20: error: cannot find 'noErr' in scope
1982 | 						&result)
1983 | 			}
1984 | 			guard status == noErr else {
     |                    `- error: cannot find 'noErr' in scope
1985 | 				throw CCError(status)
1986 | 			}
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2054:20: error: cannot find 'noErr' in scope
2052 | 											 resultBytes, rescount)
2053 | 			})
2054 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2055 |
2056 | 			return result
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2098:20: error: cannot find 'noErr' in scope
2096 | 					wrappedKeyBytes, &wrappedKeyLength)
2097 | 			})
2098 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2099 |
2100 | 			wrappedKey.count = wrappedKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2119:20: error: cannot find 'noErr' in scope
2117 | 					rawKeyBytes, &rawKeyLength)
2118 | 			})
2119 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2120 |
2121 | 			rawKey.count = rawKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2173:12: error: cannot find 'dlsym' in scope
2171 |
2172 | private func getFunc<T>(_ from: UnsafeMutableRawPointer, f: String) -> T? {
2173 | 	let sym = dlsym(from, f)
     |            `- error: cannot find 'dlsym' in scope
2174 | 	guard sym != nil else {
2175 | 		return nil
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
[54/172] Compiling SwiftProtobuf Message+AnyAdditions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
[55/172] Compiling SwiftProtobuf Message+BinaryAdditions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
[56/172] Compiling SwiftProtobuf Message+JSONAdditions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
[57/172] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift:55:25: error: cannot find 'ceil' in scope
53 |     let keyLengthFinal = Double(dkLen)
54 |     let hLen = Double(variant.digestLength)
55 |     let numBlocks = Int(ceil(keyLengthFinal / hLen)) // l = ceil(keyLength / hLen)
   |                         `- error: cannot find 'ceil' in scope
56 |     guard numBlocks <= 255 else {
57 |       throw Error.derivedKeyTooLong
[58/172] Emitting module Gzip
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Steam/Protobuf': File not found.
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/147] 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:890:30: error: cannot find 'dlopen' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:890:78: error: cannot find 'RTLD_NOW' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
[3/147] Compiling Gzip Data+Gzip.swift
[4/147] Emitting module Gzip
[6/148] Emitting module CryptoSwift
[7/157] Compiling SwiftProtobuf TextFormatDecoder.swift
[8/157] Compiling CryptoSwift Cryptor.swift
[9/157] Compiling CryptoSwift Cryptors.swift
[10/157] Compiling CryptoSwift Digest.swift
[11/157] Compiling CryptoSwift DigestType.swift
[12/157] Compiling CryptoSwift AES+Foundation.swift
[13/157] Compiling CryptoSwift Array+Foundation.swift
[14/157] Compiling CryptoSwift Blowfish+Foundation.swift
[15/157] Compiling CryptoSwift ChaCha20+Foundation.swift
[16/157] Compiling CryptoSwift Data+Extension.swift
[17/157] Compiling SwiftProtobuf Message.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[18/157] Compiling SwiftProtobuf MessageExtension.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[19/157] Compiling SwiftProtobuf NameMap.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[20/157] Compiling SwiftProtobuf ProtoNameProviding.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[21/157] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[22/157] Compiling SwiftProtobuf ProtobufMap.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[23/157] Compiling SwiftProtobuf SelectiveVisitor.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[24/157] Compiling SwiftProtobuf SimpleExtensionMap.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[25/157] Compiling SwiftProtobuf StringUtils.swift
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:62:28: error: cannot find 'pow' in scope
 60 |       let keyLengthFinal = Double(dkLen)
 61 |       let hLen = Double(prf.variant.digestLength)
 62 |       if keyLengthFinal > (pow(2, 32) - 1) * hLen {
    |                            `- error: cannot find 'pow' in scope
 63 |         throw Error.derivedKeyTooLong
 64 |       }
/host/spi-builder-workspace/.build/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift:70:28: error: cannot find 'ceil' in scope
 68 |       self.prf = prf
 69 |
 70 |       self.numBlocks = Int(ceil(Double(keyLengthFinal) / hLen)) // l = ceil(keyLength / hLen)
    |                            `- error: cannot find 'ceil' in scope
 71 |     }
 72 |
[30/157] Compiling CryptoSwift String+Extension.swift
[31/157] Compiling CryptoSwift UInt128.swift
[32/157] Compiling CryptoSwift UInt16+Extension.swift
[33/157] Compiling CryptoSwift UInt32+Extension.swift
[34/157] Compiling CryptoSwift UInt64+Extension.swift
[35/157] Compiling CryptoSwift UInt8+Extension.swift
[36/167] Compiling SwCrypt SwCrypt.swift
/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:890:30: error: cannot find 'dlopen' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                              `- error: cannot find 'dlopen' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		getFunc(dl!, f: "CCRandomGenerateBytes")
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:890:78: error: cannot find 'RTLD_NOW' in scope
 888 |
 889 |
 890 | 	fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
     |                                                                              `- error: cannot find 'RTLD_NOW' in scope
 891 | 	fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
 892 | 		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:742:19: error: cannot find 'noErr' in scope
 740 | 		})
 741 |
 742 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 743 |
 744 | 		defer { _ = CCCryptorRelease!(cryptor!) }
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:757:19: error: cannot find 'noErr' in scope
 755 | 				&updateLen)
 756 | 		})
 757 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 758 |
 759 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:768:19: error: cannot find 'noErr' in scope
 766 | 				&finalLen)
 767 | 		}
 768 | 		guard status == noErr else { throw CCError(status) }
     |                   `- error: cannot find 'noErr' in scope
 769 |
 770 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:924:20: error: cannot find 'noErr' in scope
 922 | 										 resultBytes, tagBytes, &tagLength_)
 923 | 			})
 924 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 925 |
 926 | 			tag.count = tagLength_
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:961:20: error: cannot find 'noErr' in scope
 959 | 					0, CCModeOptions(), &cryptor)
 960 | 			}
 961 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 962 | 			defer { _ = CCCryptorRelease!(cryptor!) }
 963 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:966:20: error: cannot find 'noErr' in scope
 964 | 			status = CCCryptorAddParameter!(cryptor!,
 965 | 				Parameter.dataSize.rawValue, nil, data.count)
 966 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 967 |
 968 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:969:20: error: cannot find 'noErr' in scope
 967 |
 968 | 			status = CCCryptorAddParameter!(cryptor!, Parameter.macSize.rawValue, nil, tagLength)
 969 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 970 |
 971 | 			status = iv.withUnsafeBytes { ivBytes in
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:974:20: error: cannot find 'noErr' in scope
 972 | 				return CCCryptorAddParameter!(cryptor!, Parameter.iv.rawValue, ivBytes, iv.count)
 973 | 			}
 974 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 975 |
 976 | 			status = aData.withUnsafeBytes { aDataBytes in
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:979:20: error: cannot find 'noErr' in scope
 977 | 				return CCCryptorAddParameter!(cryptor!, Parameter.authData.rawValue, aDataBytes, aData.count)
 978 | 			}
 979 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 980 |
 981 | 			var result = Data(count: data.count)
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:990:20: error: cannot find 'noErr' in scope
 988 | 					&updateLen)
 989 | 			})
 990 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 991 |
 992 | 			var finalLen: size_t = 0
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:998:20: error: cannot find 'noErr' in scope
 996 | 									   &finalLen)
 997 | 			}
 998 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
 999 |
1000 | 			result.count = updateLen + finalLen
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1008:20: error: cannot find 'noErr' in scope
1006 | 											  tagBytes, &tagLength_)
1007 | 			}
1008 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1009 |
1010 | 			tag.count = tagLength_
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1062:20: error: cannot find 'noErr' in scope
1060 | 				&publicKey,
1061 | 				&privateKey)
1062 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1063 |
1064 | 			defer {
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1108:20: error: cannot find 'noErr' in scope
1106 | 					digest.rawValue)
1107 | 			})
1108 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1109 |
1110 | 			buffer.count = bufferSize
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1136:20: error: cannot find 'noErr' in scope
1134 | 					digest.rawValue)
1135 | 			})
1136 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1137 | 			buffer.count = bufferSize
1138 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1150:20: error: cannot find 'noErr' in scope
1148 | 					&key)
1149 | 			}
1150 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1151 |
1152 | 			return key!
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1161:20: error: cannot find 'noErr' in scope
1159 | 				return CCRSACryptorExport!(key, derKeyBytes, &derKeyLength)
1160 | 			}
1161 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1162 |
1163 | 			derKey.count = derKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1197:21: error: cannot find 'noErr' in scope
1195 | 						signedDataBytes, &signedDataLength)
1196 | 				})
1197 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1198 |
1199 | 				signedData.count = signedDataLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1236:21: error: cannot find 'noErr' in scope
1234 | 					return false
1235 | 				}
1236 | 				guard status == noErr else { throw CCError(status) }
     |                     `- error: cannot find 'noErr' in scope
1237 | 				return true
1238 | 			case .pss:
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1260:20: error: cannot find 'noErr' in scope
1258 | 			})
1259 |
1260 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1261 | 			out.count = outLength
1262 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1657:20: error: cannot find 'noErr' in scope
1655 | 				&pubKey,
1656 | 				&privKey)
1657 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1658 |
1659 | 			defer {
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1693:20: error: cannot find 'noErr' in scope
1691 | 					signedDataBytes, &signedDataLength)
1692 | 			})
1693 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1694 |
1695 | 			signedData.count = signedDataLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1713:20: error: cannot find 'noErr' in scope
1711 | 					&valid)
1712 | 			})
1713 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1714 |
1715 | 			return valid != 0
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1732:20: error: cannot find 'noErr' in scope
1730 | 				return CCECCryptorComputeSharedSecret!(privKey, pubKey, resultBytes, &outSize)
1731 | 			}
1732 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1733 |
1734 | 			result.count = outSize
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1772:20: error: cannot find 'noErr' in scope
1770 | 													dBytes, &dSize)
1771 | 			})
1772 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1773 |
1774 | 			x.count = xSize
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1791:20: error: cannot find 'noErr' in scope
1789 | 												  yBytes, y.count, &pubKey)
1790 | 			})
1791 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1792 | 			defer { CCECCryptorRelease!(pubKey!) }
1793 |
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1806:20: error: cannot find 'noErr' in scope
1804 | 											keyType.rawValue, &impKey)
1805 | 			}
1806 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1807 |
1808 | 			return impKey!
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1823:20: error: cannot find 'noErr' in scope
1821 | 					key)
1822 | 			}
1823 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
1824 |
1825 | 			expKey.count = expKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:1984:20: error: cannot find 'noErr' in scope
1982 | 						&result)
1983 | 			}
1984 | 			guard status == noErr else {
     |                    `- error: cannot find 'noErr' in scope
1985 | 				throw CCError(status)
1986 | 			}
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2054:20: error: cannot find 'noErr' in scope
2052 | 											 resultBytes, rescount)
2053 | 			})
2054 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2055 |
2056 | 			return result
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2098:20: error: cannot find 'noErr' in scope
2096 | 					wrappedKeyBytes, &wrappedKeyLength)
2097 | 			})
2098 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2099 |
2100 | 			wrappedKey.count = wrappedKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2119:20: error: cannot find 'noErr' in scope
2117 | 					rawKeyBytes, &rawKeyLength)
2118 | 			})
2119 | 			guard status == noErr else { throw CCError(status) }
     |                    `- error: cannot find 'noErr' in scope
2120 |
2121 | 			rawKey.count = rawKeyLength
/host/spi-builder-workspace/.build/checkouts/SwCrypt/SwCrypt/SwCrypt.swift:2173:12: error: cannot find 'dlsym' in scope
2171 |
2172 | private func getFunc<T>(_ from: UnsafeMutableRawPointer, f: String) -> T? {
2173 | 	let sym = dlsym(from, f)
     |            `- error: cannot find 'dlsym' in scope
2174 | 	guard sym != nil else {
2175 | 		return nil
BUILD FAILURE 6.1 android