Build Information
Successful build of AMSMB2 with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amosavian/AMSMB2.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/amosavian/AMSMB2
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 77156f4 docs: Fix some mistakes in documentation
Submodule path 'Dependencies/libsmb2': checked out '2571e0a6158629651ea3198e2b864399f5bfed7f'
Submodule 'Dependencies/libsmb2' (https://github.com/amosavian/libsmb2.git) 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 @):
77156f4c8794fdb41e36c3e2ccdc153e08cbca22
SUCCESS checkout https://github.com/amosavian/AMSMB2.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/amosavian/AMSMB2.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/52] Compiling errors.c
[1/52] Compiling smb2-data-security-descriptor.c
[2/52] Compiling dcerpc-srvsvc.c
[3/52] Compiling smb2-cmd-logoff.c
[4/52] Compiling hmac.c
[5/52] Write swift-version-6F35C1178C84523A.txt
[6/52] Compiling usha.c
[7/52] Compiling timestamps.c
[8/52] Compiling unicode.c
[9/52] Compiling smb2-signing.c
[10/52] Compiling sync.c
[11/52] Compiling smb2-share-enum.c
[12/52] Compiling smb3-seal.c
[13/52] Compiling smb2-data-reparse-point.c
[14/52] Compiling smb2-data-filesystem-info.c
[15/52] Compiling smb2-data-file-info.c
[16/52] Compiling socket.c
[17/52] Compiling smb2-cmd-write.c
[18/52] Compiling smb2-cmd-tree-disconnect.c
[19/52] Compiling smb2-cmd-tree-connect.c
[20/52] Compiling smb2-cmd-set-info.c
[21/52] Compiling smb2-cmd-session-setup.c
[22/52] Compiling hmac-md5.c
[23/52] Compiling dcerpc.c
[24/52] Compiling smb2-cmd-read.c
[25/52] Compiling smb2-cmd-query-directory.c
[26/52] Compiling smb2-cmd-query-info.c
[27/52] Compiling smb2-cmd-ioctl.c
[27/52] Compiling smb2-cmd-negotiate.c
[29/52] Compiling smb2-cmd-error.c
[30/52] Compiling smb2-cmd-flush.c
[31/52] Compiling smb2-cmd-echo.c
[32/52] Compiling smb2-cmd-create.c
[33/52] Compiling smb2-cmd-close.c
[33/52] Compiling sha1.c
[35/52] Compiling sha384-512.c
[36/52] Compiling sha224-256.c
[37/52] Compiling pdu.c
[37/52] Compiling ntlmssp.c
[39/52] Compiling krb5-wrapper.c
[39/52] Write sources
[41/52] Compiling md4c.c
[42/52] Compiling compat.c
[43/52] Compiling md5.c
[44/52] Compiling alloc.c
[45/52] Compiling dcerpc-lsa.c
[46/52] Compiling init.c
[47/52] Compiling aes128ccm.c
[48/52] Compiling aes.c
[49/52] Compiling libsmb2.c
[51/62] Compiling AMSMB2 Directory.swift
[52/62] Compiling AMSMB2 FileHandle.swift
[53/62] Compiling AMSMB2 ObjCCompat.swift
[54/62] Compiling AMSMB2 Parsers.swift
[55/62] Compiling AMSMB2 MSRPC.swift
[56/62] Compiling AMSMB2 Fsctl.swift
[57/62] Compiling AMSMB2 AMSMB2.swift
/Users/admin/builder/spi-builder-workspace/AMSMB2/AMSMB2.swift:1159:41: warning: capture of 'stream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1157 | with(completionHandler: completionHandler) { context in
1158 | try self.write(
1159 | context: context, from: stream, toPath: path, chunkSize: chunkSize,
| `- warning: capture of 'stream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1160 | progress: progress
1161 | )
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/AMSMB2/AMSMB2.swift:1402:61: warning: capture of 'stream' with non-sendable type 'OutputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1400 | ) {
1401 | with(completionHandler: completionHandler) { context in
1402 | try self.read(context: context, path: path, to: stream, progress: progress)
| `- warning: capture of 'stream' with non-sendable type 'OutputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1403 | }
1404 | }
Foundation.OutputStream:1:12: note: class 'OutputStream' does not conform to the 'Sendable' protocol
1 | open class OutputStream : Stream {
| `- note: class 'OutputStream' does not conform to the 'Sendable' protocol
2 | open func write(_ buffer: UnsafePointer<UInt8>, maxLength len: Int) -> Int
3 | open var hasSpaceAvailable: Bool { get }
[58/62] Compiling AMSMB2 Extensions.swift
[59/62] Emitting module AMSMB2
/Users/admin/builder/spi-builder-workspace/AMSMB2/Context.swift:482:1: warning: extension declares a conformance of imported type 'smb2_negotiate_version' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'SMB2' introduce this conformance in the future
480 | }
481 |
482 | extension smb2_negotiate_version: Hashable {
| |- warning: extension declares a conformance of imported type 'smb2_negotiate_version' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'SMB2' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
483 | static let any = SMB2_VERSION_ANY
484 | static let v2 = SMB2_VERSION_ANY2
[60/62] Compiling AMSMB2 Context.swift
/Users/admin/builder/spi-builder-workspace/AMSMB2/Context.swift:482:1: warning: extension declares a conformance of imported type 'smb2_negotiate_version' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'SMB2' introduce this conformance in the future
480 | }
481 |
482 | extension smb2_negotiate_version: Hashable {
| |- warning: extension declares a conformance of imported type 'smb2_negotiate_version' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'SMB2' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
483 | static let any = SMB2_VERSION_ANY
484 | static let v2 = SMB2_VERSION_ANY2
[60/62] Write Objects.LinkFileList
[61/62] Linking libAMSMB2.dylib
Build complete! (29.25s)
Fetching https://github.com/apple/swift-atomics.git
[1/1563] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.12s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.53s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics.git"
}
],
"manifest_display_name" : "AMSMB2",
"name" : "AMSMB2",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "AMSMB2",
"targets" : [
"AMSMB2"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "libsmb2",
"module_type" : "ClangTarget",
"name" : "libsmb2",
"path" : "Dependencies/libsmb2",
"product_memberships" : [
"AMSMB2"
],
"sources" : [
"lib/aes.c",
"lib/aes128ccm.c",
"lib/alloc.c",
"lib/compat.c",
"lib/dcerpc-lsa.c",
"lib/dcerpc-srvsvc.c",
"lib/dcerpc.c",
"lib/errors.c",
"lib/hmac-md5.c",
"lib/hmac.c",
"lib/init.c",
"lib/krb5-wrapper.c",
"lib/libsmb2.c",
"lib/md4c.c",
"lib/md5.c",
"lib/ntlmssp.c",
"lib/pdu.c",
"lib/sha1.c",
"lib/sha224-256.c",
"lib/sha384-512.c",
"lib/smb2-cmd-close.c",
"lib/smb2-cmd-create.c",
"lib/smb2-cmd-echo.c",
"lib/smb2-cmd-error.c",
"lib/smb2-cmd-flush.c",
"lib/smb2-cmd-ioctl.c",
"lib/smb2-cmd-logoff.c",
"lib/smb2-cmd-negotiate.c",
"lib/smb2-cmd-query-directory.c",
"lib/smb2-cmd-query-info.c",
"lib/smb2-cmd-read.c",
"lib/smb2-cmd-session-setup.c",
"lib/smb2-cmd-set-info.c",
"lib/smb2-cmd-tree-connect.c",
"lib/smb2-cmd-tree-disconnect.c",
"lib/smb2-cmd-write.c",
"lib/smb2-data-file-info.c",
"lib/smb2-data-filesystem-info.c",
"lib/smb2-data-reparse-point.c",
"lib/smb2-data-security-descriptor.c",
"lib/smb2-share-enum.c",
"lib/smb2-signing.c",
"lib/smb3-seal.c",
"lib/socket.c",
"lib/sync.c",
"lib/timestamps.c",
"lib/unicode.c",
"lib/usha.c"
],
"type" : "library"
},
{
"c99name" : "AMSMB2Tests",
"module_type" : "SwiftTarget",
"name" : "AMSMB2Tests",
"path" : "AMSMB2Tests",
"product_dependencies" : [
"Atomics"
],
"sources" : [
"SMB2ManagerTests.swift"
],
"target_dependencies" : [
"AMSMB2"
],
"type" : "test"
},
{
"c99name" : "AMSMB2",
"module_type" : "SwiftTarget",
"name" : "AMSMB2",
"path" : "AMSMB2",
"product_memberships" : [
"AMSMB2"
],
"sources" : [
"AMSMB2.swift",
"Context.swift",
"Directory.swift",
"Extensions.swift",
"FileHandle.swift",
"Fsctl.swift",
"MSRPC.swift",
"ObjCCompat.swift",
"Parsers.swift"
],
"target_dependencies" : [
"libsmb2"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.