The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AMSMB2, reference 4.0.2 (0e8a77), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 06:30:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amosavian/AMSMB2.git
Reference: 4.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/amosavian/AMSMB2
 * tag               4.0.2      -> FETCH_HEAD
HEAD is now at 0e8a776 chore: Minor refactors
Submodule path 'Dependencies/libsmb2': checked out '2f3ea145cdb5b01e30a817bd5fe843ac6281403e'
Submodule 'Dependencies/libsmb2' (https://github.com/sahlberg/libsmb2) registered for path 'Dependencies/libsmb2'
Cloning into '/Users/admin/builder/spi-builder-workspace/Dependencies/libsmb2'...
Cloned https://github.com/amosavian/AMSMB2.git
Revision (git rev-parse @):
0e8a77612c6dc8048c4093ed7a00089bb1238102
SUCCESS checkout https://github.com/amosavian/AMSMB2.git at 4.0.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/amosavian/AMSMB2.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/59] Compiling compat.c
[1/59] Write swift-version-1EA4D86E10B52AF.txt
[2/59] Compiling usha.c
[3/59] Compiling aes_apple.c
[4/59] Compiling hmac-md5.c
[5/59] Compiling dcerpc-lsa.c
[6/59] Compiling aes128ccm.c
[7/59] Compiling timestamps.c
[8/59] Compiling unicode.c
[9/59] Compiling sync.c
[10/59] Compiling spnego-wrapper.c
[11/59] Compiling asn1-ber.c
[12/59] Compiling socket.c
[13/59] Compiling smb3-seal.c
[14/59] Compiling smb2-cmd-echo.c
[15/59] Compiling smb2-signing.c
[16/59] Compiling smb2-data-reparse-point.c
[17/59] Compiling smb2-share-enum.c
[18/59] Compiling smb2-data-security-descriptor.c
[19/59] Compiling smb2-data-filesystem-info.c
[20/59] Compiling smb2-data-file-info.c
[21/59] Compiling smb2-cmd-write.c
[22/59] Compiling smb2-cmd-tree-disconnect.c
[23/59] Compiling smb2-cmd-tree-connect.c
[24/59] Compiling smb2-cmd-set-info.c
[25/59] Compiling smb2-cmd-session-setup.c
[26/59] Compiling smb2-cmd-read.c
[27/59] Compiling dcerpc-srvsvc.c
[28/59] Compiling smb2-cmd-query-info.c
[29/59] Compiling smb2-cmd-query-directory.c
[30/59] Compiling smb2-cmd-oplock-break.c
[31/59] Compiling smb2-cmd-notify-change.c
[32/59] Compiling smb2-cmd-logoff.c
[33/59] Compiling smb2-cmd-negotiate.c
[34/59] Compiling smb2-cmd-lock.c
[35/59] Compiling smb2-cmd-ioctl.c
[36/59] Compiling smb2-cmd-flush.c
[37/59] Compiling smb2-cmd-error.c
[38/59] Compiling smb2-cmd-create.c
[39/59] Compiling smb2-cmd-close.c
[40/59] Compiling sha384-512.c
[41/59] Compiling sha224-256.c
[42/59] Compiling sha1.c
[43/59] Compiling pdu.c
[44/59] Compiling md5.c
[45/59] Compiling krb5-wrapper.c
[46/59] Compiling md4c.c
[47/59] Write sources
[48/59] Compiling ntlmssp.c
[49/59] Compiling hmac.c
[50/59] Compiling init.c
[51/59] Compiling dcerpc.c
[52/59] Compiling aes.c
[53/59] Compiling alloc.c
[54/59] Compiling aes_reference.c
[55/59] Compiling libsmb2.c
[56/59] Compiling errors.c
[58/70] Compiling AMSMB2 MSRPC.swift
[59/70] Compiling AMSMB2 ObjCCompat.swift
[60/71] Compiling AMSMB2 FileMonitoring.swift
[61/71] Compiling AMSMB2 Parsers.swift
[62/71] Compiling AMSMB2 Fsctl.swift
[63/71] Compiling AMSMB2 Stream.swift
/Users/admin/builder/spi-builder-workspace/AMSMB2/Stream.swift:176:38: warning: capture of non-sendable type 'Seq.Element.Type' in an isolated closure
174 |         Task {
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                      `- warning: capture of non-sendable type 'Seq.Element.Type' in an isolated closure
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
/Users/admin/builder/spi-builder-workspace/AMSMB2/Stream.swift:176:44: warning: capture of non-sendable type 'Seq.AsyncIterator.Type' in an isolated closure
174 |         Task {
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                            `- warning: capture of non-sendable type 'Seq.AsyncIterator.Type' in an isolated closure
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
/Users/admin/builder/spi-builder-workspace/AMSMB2/Stream.swift:176:44: warning: capture of non-sendable type 'Seq.Type' in an isolated closure
174 |         Task {
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                            `- warning: capture of non-sendable type 'Seq.Type' in an isolated closure
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
/Users/admin/builder/spi-builder-workspace/AMSMB2/Stream.swift:173:18: warning: capture of non-sendable type 'Seq.Type' in an isolated closure
171 |     }
172 |
173 |     private func prefetchData() {
    |                  `- warning: capture of non-sendable type 'Seq.Type' in an isolated closure
174 |         Task {
175 |             do {
/Users/admin/builder/spi-builder-workspace/AMSMB2/Stream.swift:174:9: error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
172 |
173 |     private func prefetchData() {
174 |         Task {
    |         `- error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
[64/71] Compiling AMSMB2 Directory.swift
[65/71] Compiling AMSMB2 AMSMB2.swift
[66/71] Compiling AMSMB2 Context.swift
[67/71] Compiling AMSMB2 Extensions.swift
/Users/admin/builder/spi-builder-workspace/AMSMB2/Extensions.swift:228:51: warning: capture of non-sendable type 'T.Type' in an isolated closure
226 |
227 |     func scanInt<T: FixedWidthInteger>(offset: Int, as _: T.Type) -> Int? {
228 |         scanValue(offset: offset, as: T.self).map(Int.init)
    |                                                   `- warning: capture of non-sendable type 'T.Type' in an isolated closure
229 |     }
230 | }
[68/71] Emitting module AMSMB2
[69/71] Compiling AMSMB2 FileHandle.swift
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.02s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.45s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
BUILD FAILURE 6.2 macosSpm