The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SCrypto, reference master (11de70), with Swift 6.4 for macOS (SPM) on 21 Sep 2026 12:33:11 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgl0v/SCrypto.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgl0v/SCrypto
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 11de700 Fixed code coverage report.
Cloned https://github.com/sgl0v/SCrypto.git
Revision (git rev-parse @):
11de70020265d863bc469636094b8580bd70eb5e
SUCCESS checkout https://github.com/sgl0v/SCrypto.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/sgl0v/SCrypto.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Planning deferred tasks]
[20 / 33]
[21 / 34] SCrypto
[31 / 71]
[36 / 71]
[40 / 71]
[41 / 71]
[45 / 71]
[47 / 71]
[50 / 71]
[53 / 71]
[55 / 71]
[56 / 71]
[58 / 71] SCrypto
[66 / 71] SCrypto
[69 / 71] SCrypto-product
Build complete! (7.14 sec)
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:109:47: warning: 'CC_MD2' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
107 |             switch self {
108 |             case .md2:
109 |                 return (CC_MD2_DIGEST_LENGTH, CC_MD2)
    |                                               `- warning: 'CC_MD2' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
110 |             case .md4:
111 |                 return (CC_MD4_DIGEST_LENGTH, CC_MD4)
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:111:47: warning: 'CC_MD4' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
109 |                 return (CC_MD2_DIGEST_LENGTH, CC_MD2)
110 |             case .md4:
111 |                 return (CC_MD4_DIGEST_LENGTH, CC_MD4)
    |                                               `- warning: 'CC_MD4' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
112 |             case .md5:
113 |                 return (CC_MD5_DIGEST_LENGTH, CC_MD5)
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:113:47: warning: 'CC_MD5' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
111 |                 return (CC_MD4_DIGEST_LENGTH, CC_MD4)
112 |             case .md5:
113 |                 return (CC_MD5_DIGEST_LENGTH, CC_MD5)
    |                                               `- warning: 'CC_MD5' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
114 |             case .sha1:
115 |                 return (CC_SHA1_DIGEST_LENGTH, CC_SHA1)
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:269:48: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
267 |         digest.update(self.bytesArray())
268 |         let messageDigest = digest.final()
269 |         return type(of: self).init(Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count))
    |                                                |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                                `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
270 |     }
271 |
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:288:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
286 |         digest.update(self.data(using: String.Encoding.utf8)!.bytesArray())
287 |         let messageDigest = digest.final()
288 |         return Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count).hexString()
    |                            |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
289 |     }
290 |
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:329:32: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
327 |     static func random(_ length : Int) throws -> Data {
328 |         let bytes = try Random.generateBytes(length)
329 |         let data = Data(bytes: UnsafePointer<UInt8>(bytes), count: bytes.count)
    |                                |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
330 |         return data
331 |     }
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:433:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
431 |         hmac.update(self.bytesArray())
432 |         let result = hmac.final()
433 |         return Data(bytes: UnsafePointer<UInt8>(result), count: result.count)
    |                            |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
434 |     }
435 |
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:589:45: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
587 |         var dataOutMoved = 0
588 |         var outData = [UInt8](repeating: UInt8(0), count: Int(data.count + self.algorithm.blockSize))
589 |         let ivData = self.iv == nil ? nil : UnsafeRawPointer(self.iv!)
    |                                             |                       |- note: implicit argument conversion from 'Cipher.IV' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                             |                       `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                             `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
590 |         let status = CCCrypt(operation.rawValue, // operation
591 |             self.algorithm.rawValue, // algorithm
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:628:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
626 |         let cipher = Cipher(algorithm: algorithm, options: options, iv: iv?.bytesArray())
627 |         let encryptedBytes = try cipher.encrypt(self.bytesArray(), key: key.bytesArray())
628 |         return Data(bytes: UnsafePointer<UInt8>(encryptedBytes), count: encryptedBytes.count)
    |                            |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
629 |     }
630 |
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:646:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
644 |         let cipher = Cipher(algorithm: algorithm, options: options, iv: iv?.bytesArray())
645 |         let decryptedBytes = try cipher.decrypt(self.bytesArray(), key: key.bytesArray())
646 |         return Data(bytes: UnsafePointer<UInt8>(decryptedBytes), count: decryptedBytes.count)
    |                            |                    |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
647 |     }
648 |
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:744:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
742 |     func derivedKey(_ salt: Data, pseudoRandomAlgorithm: PBKDF.PseudoRandomAlgorithm, rounds: UInt32, derivedKeyLength: Int) throws -> Data {
743 |         let key = try PBKDF.derivedKey(withLength: derivedKeyLength, password: self.bytesArray(), salt: salt.bytesArray(), pseudoRandomAlgorithm: pseudoRandomAlgorithm, rounds: rounds)
744 |         return Data(bytes: UnsafePointer<UInt8>(key), count: key.count)
    |                            |                    |- note: implicit argument conversion from 'PBKDF.DerivedKey' (aka 'Array<UInt8>') to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
745 |     }
746 |
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:16:35: warning: forming 'UnsafeMutableRawPointer' to a variable of type '[T]'; this is likely incorrect because 'T' may contain an object reference.
 14 |     func bytesArray<T: ExpressibleByIntegerLiteral>() -> [T] {
 15 |         var bytes = Array<T>(repeating: 0, count: self.count)
 16 |         (self as NSData).getBytes(&bytes, length:self.count * MemoryLayout<T>.size)
    |                                   `- warning: forming 'UnsafeMutableRawPointer' to a variable of type '[T]'; this is likely incorrect because 'T' may contain an object reference.
 17 |         return bytes
 18 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SCrypto",
  "name" : "SCrypto",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "SCrypto",
      "targets" : [
        "SCrypto"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SCrypto_Tests",
      "module_type" : "SwiftTarget",
      "name" : "SCrypto Tests",
      "path" : "Tests",
      "sources" : [
        "SCryptoTests.swift"
      ],
      "target_dependencies" : [
        "SCrypto"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SCrypto",
      "module_type" : "SwiftTarget",
      "name" : "SCrypto",
      "path" : "Source",
      "product_memberships" : [
        "SCrypto"
      ],
      "sources" : [
        "SCrypto.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.