The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TweetNacl, reference 1.2.0 (92375f), with Swift 6.1 for Android on 10 Dec 2025 07:22:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pusher/tweetnacl-swiftwrap.git
Reference: 1.2.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/pusher/tweetnacl-swiftwrap
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 92375f8 Fix C/Swift interop for CocoaPods that makes the build fail
Cloned https://github.com/pusher/tweetnacl-swiftwrap.git
Revision (git rev-parse @):
92375f83c3af1b8af011d3c0af1001929844b936
SUCCESS checkout https://github.com/pusher/tweetnacl-swiftwrap.git at 1.2.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pusher/tweetnacl-swiftwrap.git
https://github.com/pusher/tweetnacl-swiftwrap.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TweetNacl",
  "name" : "TweetNacl",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "TweetNacl",
      "targets" : [
        "TweetNacl"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TweetNaclTests",
      "module_type" : "SwiftTarget",
      "name" : "TweetNaclTests",
      "path" : "Tests/TweetNaclTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/TweetNaclTests/BoxTestData.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TweetNaclTests/ScalarMultiTestData.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TweetNaclTests/SecretboxTestData.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/TweetNaclTests/SignTestData.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "NaclBox_Tests.swift",
        "NaclScalarMulti_Tests.swift",
        "NaclSecretbox_Tests.swift",
        "NaclSign_Tests.swift"
      ],
      "target_dependencies" : [
        "TweetNacl"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TweetNacl",
      "module_type" : "SwiftTarget",
      "name" : "TweetNacl",
      "path" : "Sources/TweetNacl",
      "product_memberships" : [
        "TweetNacl"
      ],
      "sources" : [
        "Constant.swift",
        "TweetNacl.swift"
      ],
      "target_dependencies" : [
        "CTweetNacl"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CTweetNacl",
      "module_type" : "ClangTarget",
      "name" : "CTweetNacl",
      "path" : "Sources/CTweetNacl",
      "product_memberships" : [
        "TweetNacl"
      ],
      "sources" : [
        "ctweetnacl.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/3] Write sources
[1/3] Compiling CTweetNacl ctweetnacl.c
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling TweetNacl Constant.swift
[5/6] Emitting module TweetNacl
[6/6] Compiling TweetNacl TweetNacl.swift
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:64:20: error: cannot find 'SecRandomCopyBytes' in scope
 62 |         var randomData = Data(count: count)
 63 |         let result = randomData.withUnsafeMutableBytes {
 64 |             return SecRandomCopyBytes(kSecRandomDefault, count, $0)
    |                    `- error: cannot find 'SecRandomCopyBytes' in scope
 65 |         }
 66 |         guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:64:39: error: cannot find 'kSecRandomDefault' in scope
 62 |         var randomData = Data(count: count)
 63 |         let result = randomData.withUnsafeMutableBytes {
 64 |             return SecRandomCopyBytes(kSecRandomDefault, count, $0)
    |                                       `- error: cannot find 'kSecRandomDefault' in scope
 65 |         }
 66 |         guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:66:25: error: cannot find 'errSecSuccess' in scope
 64 |             return SecRandomCopyBytes(kSecRandomDefault, count, $0)
 65 |         }
 66 |         guard result == errSecSuccess else {
    |                         `- error: cannot find 'errSecSuccess' in scope
 67 |             throw NaclUtilError.internalError
 68 |         }
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:77:22: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
 75 |     public static func hash(message: Data) throws -> Data {
 76 |         var hash = Data(count: Constants.Hash.bytes)
 77 |         let r = hash.withUnsafeMutableBytes { (hashPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
 78 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
 79 |                 return crypto_hash_sha512_tweet(hashPointer, messagePointer, UInt64(message.count))
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:78:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 76 |         var hash = Data(count: Constants.Hash.bytes)
 77 |         let r = hash.withUnsafeMutableBytes { (hashPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
 78 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
    |                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 79 |                 return crypto_hash_sha512_tweet(hashPointer, messagePointer, UInt64(message.count))
 80 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:99:19: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 97 |         }
 98 |
 99 |         let r = x.withUnsafeBytes { (xPointer: UnsafePointer<UInt8>) -> Int32 in
    |                   `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
100 |             return y.withUnsafeBytes({ (yPointer: UnsafePointer<UInt8>) -> Int32 in
101 |                 return crypto_verify_32_tweet(xPointer, yPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:100:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 98 |
 99 |         let r = x.withUnsafeBytes { (xPointer: UnsafePointer<UInt8>) -> Int32 in
100 |             return y.withUnsafeBytes({ (yPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
101 |                 return crypto_verify_32_tweet(xPointer, yPointer)
102 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:121:25: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
119 |         var pk = Data(count: Constants.Box.secretKeyBytes)
120 |
121 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                         `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
122 |             return sk.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
123 |                 return crypto_scalarmult_curve25519_tweet_base(pkPointer, skPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:122:23: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
120 |
121 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
122 |             return sk.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
    |                       `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
123 |                 return crypto_scalarmult_curve25519_tweet_base(pkPointer, skPointer)
124 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:145:25: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
143 |         sk.replaceSubrange(0..<Constants.Sign.publicKeyBytes, with: secretKey.subdata(in: 0..<Constants.Sign.publicKeyBytes))
144 |
145 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                         `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
146 |             return sk.withUnsafeMutableBytes({ (skPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
147 |                 return crypto_sign_ed25519_tweet_keypair(pkPointer, skPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:146:23: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
144 |
145 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
146 |             return sk.withUnsafeMutableBytes({ (skPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                       `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
147 |                 return crypto_sign_ed25519_tweet_keypair(pkPointer, skPointer)
148 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:176:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
174 |         var c = Data(count: m.count)
175 |
176 |         let result = c.withUnsafeMutableBytes { (cPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:177:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
175 |
176 |         let result = c.withUnsafeMutableBytes { (cPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
179 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:178:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
176 |         let result = c.withUnsafeMutableBytes { (cPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
179 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
180 |                         return crypto_secretbox_xsalsa20poly1305_tweet(cPointer, mPointer, UInt64(m.count), noncePointer, keyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:179:32: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
179 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
180 |                         return crypto_secretbox_xsalsa20poly1305_tweet(cPointer, mPointer, UInt64(m.count), noncePointer, keyPointer)
181 |                     })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:201:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
199 |         var m = Data(count: c.count)
200 |
201 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:202:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
200 |
201 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
204 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:203:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
201 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
204 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
205 |                         return crypto_secretbox_xsalsa20poly1305_tweet_open(mPointer, cPointer, UInt64(c.count), noncePointer, keyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:204:32: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
204 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
205 |                         return crypto_secretbox_xsalsa20poly1305_tweet_open(mPointer, cPointer, UInt64(c.count), noncePointer, keyPointer)
206 |                     })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:239:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
237 |         var q = Data(count: Constants.Scalarmult.bytes)
238 |
239 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
240 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
241 |                 return p.withUnsafeBytes({ (pPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:240:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
238 |
239 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
240 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
241 |                 return p.withUnsafeBytes({ (pPointer: UnsafePointer<UInt8>) -> Int32 in
242 |                     return crypto_scalarmult_curve25519_tweet(qPointer, nPointer, pPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:241:26: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
239 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
240 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
241 |                 return p.withUnsafeBytes({ (pPointer: UnsafePointer<UInt8>) -> Int32 in
    |                          `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
242 |                     return crypto_scalarmult_curve25519_tweet(qPointer, nPointer, pPointer)
243 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:261:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
259 |         var q = Data(count: Constants.Scalarmult.bytes)
260 |
261 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
262 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
263 |                 return crypto_scalarmult_curve25519_tweet_base(qPointer, nPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:262:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
260 |
261 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
262 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
263 |                 return crypto_scalarmult_curve25519_tweet_base(qPointer, nPointer)
264 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:295:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
293 |         var k = Data(count: Constants.Box.beforeNMBytes)
294 |
295 |         let result = k.withUnsafeMutableBytes { (kPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
296 |             return publicKey.withUnsafeBytes({ (pkPointer: UnsafePointer<UInt8>) -> Int32 in
297 |                 return secretKey.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:296:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
294 |
295 |         let result = k.withUnsafeMutableBytes { (kPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
296 |             return publicKey.withUnsafeBytes({ (pkPointer: UnsafePointer<UInt8>) -> Int32 in
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
297 |                 return secretKey.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
298 |                     return crypto_box_curve25519xsalsa20poly1305_tweet_beforenm(kPointer, pkPointer, skPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:297:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
295 |         let result = k.withUnsafeMutableBytes { (kPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
296 |             return publicKey.withUnsafeBytes({ (pkPointer: UnsafePointer<UInt8>) -> Int32 in
297 |                 return secretKey.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
298 |                     return crypto_box_curve25519xsalsa20poly1305_tweet_beforenm(kPointer, pkPointer, skPointer)
299 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:349:36: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
347 |         let tmpLength = UnsafeMutablePointer<UInt64>.allocate(capacity: 1)
348 |
349 |         let result = signedMessage.withUnsafeMutableBytes { (signedMessagePointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                                    `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
350 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
351 |                 return secretKey.withUnsafeBytes({ (secretKeyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:350:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
348 |
349 |         let result = signedMessage.withUnsafeMutableBytes { (signedMessagePointer: UnsafeMutablePointer<UInt8>) -> Int32 in
350 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
    |                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
351 |                 return secretKey.withUnsafeBytes({ (secretKeyPointer: UnsafePointer<UInt8>) -> Int32 in
352 |                     return crypto_sign_ed25519_tweet(signedMessagePointer, tmpLength, messagePointer, UInt64(message.count), secretKeyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:351:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
349 |         let result = signedMessage.withUnsafeMutableBytes { (signedMessagePointer: UnsafeMutablePointer<UInt8>) -> Int32 in
350 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
351 |                 return secretKey.withUnsafeBytes({ (secretKeyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
352 |                     return crypto_sign_ed25519_tweet(signedMessagePointer, tmpLength, messagePointer, UInt64(message.count), secretKeyPointer)
353 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:372:26: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
370 |         let tmpLength = UnsafeMutablePointer<UInt64>.allocate(capacity: 1)
371 |
372 |         let result = tmp.withUnsafeMutableBytes { (tmpPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                          `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
373 |             return signedMessage.withUnsafeBytes({ (signMessagePointer: UnsafePointer<UInt8>) -> Int32 in
374 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:373:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
371 |
372 |         let result = tmp.withUnsafeMutableBytes { (tmpPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
373 |             return signedMessage.withUnsafeBytes({ (signMessagePointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
374 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
375 |                     return crypto_sign_ed25519_tweet_open(tmpPointer, tmpLength, signMessagePointer, UInt64(signedMessage.count), publicKeyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:374:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
372 |         let result = tmp.withUnsafeMutableBytes { (tmpPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
373 |             return signedMessage.withUnsafeBytes({ (signMessagePointer: UnsafePointer<UInt8>) -> Int32 in
374 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
375 |                     return crypto_sign_ed25519_tweet_open(tmpPointer, tmpLength, signMessagePointer, UInt64(signedMessage.count), publicKeyPointer)
376 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:413:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
411 |         let tmpLength = UnsafeMutablePointer<UInt64>.allocate(capacity: 1)
412 |
413 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
414 |             return sm.withUnsafeBytes({ (smPointer: UnsafePointer<UInt8>) -> Int32 in
415 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:414:23: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
412 |
413 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
414 |             return sm.withUnsafeBytes({ (smPointer: UnsafePointer<UInt8>) -> Int32 in
    |                       `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
415 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
416 |                     return crypto_sign_ed25519_tweet_open(mPointer, tmpLength, smPointer, UInt64(sm.count), publicKeyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:415:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
413 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
414 |             return sm.withUnsafeBytes({ (smPointer: UnsafePointer<UInt8>) -> Int32 in
415 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
416 |                     return crypto_sign_ed25519_tweet_open(mPointer, tmpLength, smPointer, UInt64(sm.count), publicKeyPointer)
417 |                 })
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling TweetNacl Constant.swift
[3/4] Emitting module TweetNacl
[4/4] Compiling TweetNacl TweetNacl.swift
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:64:20: error: cannot find 'SecRandomCopyBytes' in scope
 62 |         var randomData = Data(count: count)
 63 |         let result = randomData.withUnsafeMutableBytes {
 64 |             return SecRandomCopyBytes(kSecRandomDefault, count, $0)
    |                    `- error: cannot find 'SecRandomCopyBytes' in scope
 65 |         }
 66 |         guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:64:39: error: cannot find 'kSecRandomDefault' in scope
 62 |         var randomData = Data(count: count)
 63 |         let result = randomData.withUnsafeMutableBytes {
 64 |             return SecRandomCopyBytes(kSecRandomDefault, count, $0)
    |                                       `- error: cannot find 'kSecRandomDefault' in scope
 65 |         }
 66 |         guard result == errSecSuccess else {
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:66:25: error: cannot find 'errSecSuccess' in scope
 64 |             return SecRandomCopyBytes(kSecRandomDefault, count, $0)
 65 |         }
 66 |         guard result == errSecSuccess else {
    |                         `- error: cannot find 'errSecSuccess' in scope
 67 |             throw NaclUtilError.internalError
 68 |         }
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:77:22: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
 75 |     public static func hash(message: Data) throws -> Data {
 76 |         var hash = Data(count: Constants.Hash.bytes)
 77 |         let r = hash.withUnsafeMutableBytes { (hashPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
 78 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
 79 |                 return crypto_hash_sha512_tweet(hashPointer, messagePointer, UInt64(message.count))
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:78:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 76 |         var hash = Data(count: Constants.Hash.bytes)
 77 |         let r = hash.withUnsafeMutableBytes { (hashPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
 78 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
    |                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 79 |                 return crypto_hash_sha512_tweet(hashPointer, messagePointer, UInt64(message.count))
 80 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:99:19: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 97 |         }
 98 |
 99 |         let r = x.withUnsafeBytes { (xPointer: UnsafePointer<UInt8>) -> Int32 in
    |                   `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
100 |             return y.withUnsafeBytes({ (yPointer: UnsafePointer<UInt8>) -> Int32 in
101 |                 return crypto_verify_32_tweet(xPointer, yPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:100:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 98 |
 99 |         let r = x.withUnsafeBytes { (xPointer: UnsafePointer<UInt8>) -> Int32 in
100 |             return y.withUnsafeBytes({ (yPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
101 |                 return crypto_verify_32_tweet(xPointer, yPointer)
102 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:121:25: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
119 |         var pk = Data(count: Constants.Box.secretKeyBytes)
120 |
121 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                         `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
122 |             return sk.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
123 |                 return crypto_scalarmult_curve25519_tweet_base(pkPointer, skPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:122:23: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
120 |
121 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
122 |             return sk.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
    |                       `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
123 |                 return crypto_scalarmult_curve25519_tweet_base(pkPointer, skPointer)
124 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:145:25: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
143 |         sk.replaceSubrange(0..<Constants.Sign.publicKeyBytes, with: secretKey.subdata(in: 0..<Constants.Sign.publicKeyBytes))
144 |
145 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                         `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
146 |             return sk.withUnsafeMutableBytes({ (skPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
147 |                 return crypto_sign_ed25519_tweet_keypair(pkPointer, skPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:146:23: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
144 |
145 |         let result = pk.withUnsafeMutableBytes({ (pkPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
146 |             return sk.withUnsafeMutableBytes({ (skPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                       `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
147 |                 return crypto_sign_ed25519_tweet_keypair(pkPointer, skPointer)
148 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:176:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
174 |         var c = Data(count: m.count)
175 |
176 |         let result = c.withUnsafeMutableBytes { (cPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:177:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
175 |
176 |         let result = c.withUnsafeMutableBytes { (cPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
179 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:178:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
176 |         let result = c.withUnsafeMutableBytes { (cPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
179 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
180 |                         return crypto_secretbox_xsalsa20poly1305_tweet(cPointer, mPointer, UInt64(m.count), noncePointer, keyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:179:32: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
177 |             return m.withUnsafeBytes({ (mPointer: UnsafePointer<UInt8>) -> Int32 in
178 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
179 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
180 |                         return crypto_secretbox_xsalsa20poly1305_tweet(cPointer, mPointer, UInt64(m.count), noncePointer, keyPointer)
181 |                     })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:201:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
199 |         var m = Data(count: c.count)
200 |
201 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:202:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
200 |
201 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
204 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:203:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
201 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
204 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
205 |                         return crypto_secretbox_xsalsa20poly1305_tweet_open(mPointer, cPointer, UInt64(c.count), noncePointer, keyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:204:32: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
202 |             return c.withUnsafeBytes({ (cPointer: UnsafePointer<UInt8>) -> Int32 in
203 |                 return nonce.withUnsafeBytes({ (noncePointer: UnsafePointer<UInt8>) -> Int32 in
204 |                     return key.withUnsafeBytes({ (keyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
205 |                         return crypto_secretbox_xsalsa20poly1305_tweet_open(mPointer, cPointer, UInt64(c.count), noncePointer, keyPointer)
206 |                     })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:239:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
237 |         var q = Data(count: Constants.Scalarmult.bytes)
238 |
239 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
240 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
241 |                 return p.withUnsafeBytes({ (pPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:240:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
238 |
239 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
240 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
241 |                 return p.withUnsafeBytes({ (pPointer: UnsafePointer<UInt8>) -> Int32 in
242 |                     return crypto_scalarmult_curve25519_tweet(qPointer, nPointer, pPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:241:26: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
239 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
240 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
241 |                 return p.withUnsafeBytes({ (pPointer: UnsafePointer<UInt8>) -> Int32 in
    |                          `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
242 |                     return crypto_scalarmult_curve25519_tweet(qPointer, nPointer, pPointer)
243 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:261:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
259 |         var q = Data(count: Constants.Scalarmult.bytes)
260 |
261 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
262 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
263 |                 return crypto_scalarmult_curve25519_tweet_base(qPointer, nPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:262:22: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
260 |
261 |         let result = q.withUnsafeMutableBytes { (qPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
262 |             return n.withUnsafeBytes({ (nPointer: UnsafePointer<UInt8>) -> Int32 in
    |                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
263 |                 return crypto_scalarmult_curve25519_tweet_base(qPointer, nPointer)
264 |             })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:295:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
293 |         var k = Data(count: Constants.Box.beforeNMBytes)
294 |
295 |         let result = k.withUnsafeMutableBytes { (kPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
296 |             return publicKey.withUnsafeBytes({ (pkPointer: UnsafePointer<UInt8>) -> Int32 in
297 |                 return secretKey.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:296:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
294 |
295 |         let result = k.withUnsafeMutableBytes { (kPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
296 |             return publicKey.withUnsafeBytes({ (pkPointer: UnsafePointer<UInt8>) -> Int32 in
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
297 |                 return secretKey.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
298 |                     return crypto_box_curve25519xsalsa20poly1305_tweet_beforenm(kPointer, pkPointer, skPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:297:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
295 |         let result = k.withUnsafeMutableBytes { (kPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
296 |             return publicKey.withUnsafeBytes({ (pkPointer: UnsafePointer<UInt8>) -> Int32 in
297 |                 return secretKey.withUnsafeBytes({ (skPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
298 |                     return crypto_box_curve25519xsalsa20poly1305_tweet_beforenm(kPointer, pkPointer, skPointer)
299 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:349:36: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
347 |         let tmpLength = UnsafeMutablePointer<UInt64>.allocate(capacity: 1)
348 |
349 |         let result = signedMessage.withUnsafeMutableBytes { (signedMessagePointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                                    `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
350 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
351 |                 return secretKey.withUnsafeBytes({ (secretKeyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:350:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
348 |
349 |         let result = signedMessage.withUnsafeMutableBytes { (signedMessagePointer: UnsafeMutablePointer<UInt8>) -> Int32 in
350 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
    |                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
351 |                 return secretKey.withUnsafeBytes({ (secretKeyPointer: UnsafePointer<UInt8>) -> Int32 in
352 |                     return crypto_sign_ed25519_tweet(signedMessagePointer, tmpLength, messagePointer, UInt64(message.count), secretKeyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:351:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
349 |         let result = signedMessage.withUnsafeMutableBytes { (signedMessagePointer: UnsafeMutablePointer<UInt8>) -> Int32 in
350 |             return message.withUnsafeBytes({ (messagePointer: UnsafePointer<UInt8>) -> Int32 in
351 |                 return secretKey.withUnsafeBytes({ (secretKeyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
352 |                     return crypto_sign_ed25519_tweet(signedMessagePointer, tmpLength, messagePointer, UInt64(message.count), secretKeyPointer)
353 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:372:26: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
370 |         let tmpLength = UnsafeMutablePointer<UInt64>.allocate(capacity: 1)
371 |
372 |         let result = tmp.withUnsafeMutableBytes { (tmpPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                          `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
373 |             return signedMessage.withUnsafeBytes({ (signMessagePointer: UnsafePointer<UInt8>) -> Int32 in
374 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:373:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
371 |
372 |         let result = tmp.withUnsafeMutableBytes { (tmpPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
373 |             return signedMessage.withUnsafeBytes({ (signMessagePointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
374 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
375 |                     return crypto_sign_ed25519_tweet_open(tmpPointer, tmpLength, signMessagePointer, UInt64(signedMessage.count), publicKeyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:374:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
372 |         let result = tmp.withUnsafeMutableBytes { (tmpPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
373 |             return signedMessage.withUnsafeBytes({ (signMessagePointer: UnsafePointer<UInt8>) -> Int32 in
374 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
375 |                     return crypto_sign_ed25519_tweet_open(tmpPointer, tmpLength, signMessagePointer, UInt64(signedMessage.count), publicKeyPointer)
376 |                 })
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:413:24: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
411 |         let tmpLength = UnsafeMutablePointer<UInt64>.allocate(capacity: 1)
412 |
413 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
    |                        `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
414 |             return sm.withUnsafeBytes({ (smPointer: UnsafePointer<UInt8>) -> Int32 in
415 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:414:23: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
412 |
413 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
414 |             return sm.withUnsafeBytes({ (smPointer: UnsafePointer<UInt8>) -> Int32 in
    |                       `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
415 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
416 |                     return crypto_sign_ed25519_tweet_open(mPointer, tmpLength, smPointer, UInt64(sm.count), publicKeyPointer)
/host/spi-builder-workspace/Sources/TweetNacl/TweetNacl.swift:415:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
413 |         let result = m.withUnsafeMutableBytes { (mPointer: UnsafeMutablePointer<UInt8>) -> Int32 in
414 |             return sm.withUnsafeBytes({ (smPointer: UnsafePointer<UInt8>) -> Int32 in
415 |                 return publicKey.withUnsafeBytes({ (publicKeyPointer: UnsafePointer<UInt8>) -> Int32 in
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
416 |                     return crypto_sign_ed25519_tweet_open(mPointer, tmpLength, smPointer, UInt64(sm.count), publicKeyPointer)
417 |                 })
BUILD FAILURE 6.1 android