The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CryptomatorCryptoLib, reference develop (e0564d), with Swift 6.2 for macOS (SPM) on 7 Nov 2026 19:01:28 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
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 e0564dd harden ci: don't persist github token during checkout
Cloned https://github.com/cryptomator/cryptolib-swift.git
Revision (git rev-parse @):
e0564dda684238865ea6a3a336ab2d5a9572ac8e
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 Masterkey.swift
[7/17] Compiling CryptomatorCryptoLib MasterkeyFile.swift
[8/17] Compiling CryptomatorCryptoLib CryptoSupport.swift
[9/17] Compiling CryptomatorCryptoLib CryptoError.swift
[10/17] Compiling CryptomatorCryptoLib ContentCryptor.swift
[11/17] Compiling CryptomatorCryptoLib Base64.swift
[12/17] Compiling CryptomatorCryptoLib Base32.swift
[13/17] Compiling CryptomatorCryptoLib AesCtr.swift
[14/17] Compiling CryptomatorCryptoLib AesSiv.swift
[15/17] Emitting module CryptomatorCryptoLib
[16/17] Compiling CryptomatorCryptoLib Cryptor.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