Build Information
Failed to build CryptomatorCryptoLib, reference develop (303e86), with Swift 6.2 for macOS (SPM) on 1 Dec 2026 11:58:59 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.2.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cryptomator/cryptolib-swift.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cryptomator/cryptolib-swift
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 303e862 Build and test on the iPhone 18 Pro simulator instead of the iPhone 17 [ci skip]
Cloned https://github.com/cryptomator/cryptolib-swift.git
Revision (git rev-parse @):
303e862a7bf23d847b8bd5e3968637efb2deca5b
SUCCESS checkout https://github.com/cryptomator/cryptolib-swift.git at develop
========================================
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 sha256.c
[4/5] Compiling scrypt crypto_scrypt.c
[6/16] Compiling CryptomatorCryptoLib ContentCryptor.swift
[7/16] Compiling CryptomatorCryptoLib Cryptor.swift
[8/16] Compiling CryptomatorCryptoLib CryptoError.swift
[9/16] Compiling CryptomatorCryptoLib Masterkey.swift
[10/16] Compiling CryptomatorCryptoLib CryptoSupport.swift
[11/16] Compiling CryptomatorCryptoLib Base64.swift
[12/16] Emitting module CryptomatorCryptoLib
[13/16] Compiling CryptomatorCryptoLib AesCtr.swift
[14/16] Compiling CryptomatorCryptoLib AesSiv.swift
[15/16] Compiling CryptomatorCryptoLib Base32.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