Build Information
Failed to build CryptomatorCryptoLib, reference 3.0.0 (3811ce), with Swift 6.2 for macOS (SPM) on 25 Oct 2026 01:44:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cryptomator/cryptolib-swift.git
Reference: 3.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cryptomator/cryptolib-swift
* tag 3.0.0 -> FETCH_HEAD
HEAD is now at 3811cef Merge branch 'release/3.0.0'
Cloned https://github.com/cryptomator/cryptolib-swift.git
Revision (git rev-parse @):
3811cef0d8b67bee81ce541f291a7985dd8e0929
SUCCESS checkout https://github.com/cryptomator/cryptolib-swift.git at 3.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/cryptomator/cryptolib-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version--3CB7CFEC50E0D141.txt
[2/5] Compiling scrypt insecure_memzero.c
[3/5] Compiling scrypt crypto_scrypt.c
[4/5] Compiling scrypt sha256.c
[6/16] Compiling CryptomatorCryptoLib CryptoSupport.swift
[7/16] Compiling CryptomatorCryptoLib AesCtr.swift
[8/16] Compiling CryptomatorCryptoLib AesSiv.swift
[9/16] Compiling CryptomatorCryptoLib CryptoError.swift
[10/16] Compiling CryptomatorCryptoLib Base64.swift
[11/16] Emitting module CryptomatorCryptoLib
[12/16] Compiling CryptomatorCryptoLib Cryptor.swift
[13/16] Compiling CryptomatorCryptoLib Masterkey.swift
[14/16] Compiling CryptomatorCryptoLib Base32.swift
[15/16] Compiling CryptomatorCryptoLib ContentCryptor.swift
[16/16] Compiling CryptomatorCryptoLib MasterkeyFile.swift
[17/17] Compiling CryptomatorCryptoLib SecretBytes.swift
/Users/admin/builder/spi-builder-workspace/Sources/CryptomatorCryptoLib/SecretBytes.swift:51:7: error: mutating method 'withUnsafeMutableBytes' may not be used on immutable value 'self.storage'
27 | // `@unchecked Sendable` is safe because the bytes are written only during construction, through `mutating` access, and in `deinit`, all of which need exclusive ownership. Lent pointers must not escape their closures, and the stored deallocator is `@Sendable`.
28 |
29 | private let storage: UnsafeMutableRawBufferPointer
| `- note: change 'let' to 'var' to make it mutable
30 | private let deallocator: @Sendable (UnsafeMutableRawBufferPointer) -> Void
31 | let count: Int
:
49 | self.deallocator = deallocator
50 | self.count = count
51 | try withUnsafeMutableBytes(body)
| `- error: mutating method 'withUnsafeMutableBytes' may not be used on immutable value 'self.storage'
52 | }
53 |
BUILD FAILURE 6.2 macosSpm