Build Information
Successful build of SwiftAWSSignatureV4 with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
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/crspybits/SwiftAWSSignatureV4.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/crspybits/SwiftAWSSignatureV4
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c66f2db Updated docs.
Cloned https://github.com/crspybits/SwiftAWSSignatureV4.git
Revision (git rev-parse @):
c66f2db1211ad1969e3d11791b9de62361c78f45
SUCCESS checkout https://github.com/crspybits/SwiftAWSSignatureV4.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/crspybits/SwiftAWSSignatureV4.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/14] Compiling Cryptor SSLPointerTricks.swift
[5/14] Compiling Cryptor Random.swift
[6/14] Compiling Cryptor StreamCryptor.swift
[7/14] Compiling Cryptor Status.swift
[8/15] Compiling Cryptor KeyDerivation.swift
[9/15] Compiling Cryptor Digest.swift
[10/15] Compiling Cryptor HMAC.swift
[11/15] Compiling Cryptor Crypto.swift
[12/15] Compiling Cryptor Cryptor.swift
[13/15] Emitting module Cryptor
[14/15] Compiling Cryptor Updatable.swift
[15/15] Compiling Cryptor Utilities.swift
[16/20] Compiling SwiftAWSSignatureV4 String+Extensions.swift
[17/20] Compiling SwiftAWSSignatureV4 URLRequest+AWSAccountSigning.swift
[18/20] Emitting module SwiftAWSSignatureV4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:44:13: warning: static property 'calendar' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | }
43 |
44 | static var calendar:Calendar = { ()->(Calendar) in
| |- warning: static property 'calendar' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendar' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | var aCalendar = Calendar(identifier: .gregorian)
46 | //TODO: can we do this on linux?
[19/20] Compiling SwiftAWSSignatureV4 AWSAccount.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:44:13: warning: static property 'calendar' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | }
43 |
44 | static var calendar:Calendar = { ()->(Calendar) in
| |- warning: static property 'calendar' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendar' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | var aCalendar = Calendar(identifier: .gregorian)
46 | //TODO: can we do this on linux?
[20/20] Compiling SwiftAWSSignatureV4 Chunking.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:199:5: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | ,let (runloop, mode) = scheduledRunLoopsMode {
198 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
199 | runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
| `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | })
201 | }
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
1 | open class RunLoop : NSObject {
| `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
2 | open class var current: RunLoop { get }
3 | @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:199:87: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | static let readBufferSize:Int = 8192
:
197 | ,let (runloop, mode) = scheduledRunLoopsMode {
198 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
199 | runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
| `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | })
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:205:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | if let (runloop, mode) = scheduledRunLoopsMode {
204 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
205 | runloop.perform(#selector(ChunkedStream.triggerSendingEnd), target: self, argument: nil, order: 1, modes: [mode])
| `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | })
207 | }
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
1 | open class RunLoop : NSObject {
| `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
2 | open class var current: RunLoop { get }
3 | @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:205:74: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | static let readBufferSize:Int = 8192
:
203 | if let (runloop, mode) = scheduledRunLoopsMode {
204 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
205 | runloop.perform(#selector(ChunkedStream.triggerSendingEnd), target: self, argument: nil, order: 1, modes: [mode])
| `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | })
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:212:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | if let (runloop, mode) = scheduledRunLoopsMode {
211 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
212 | runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 1, modes: [mode])
| `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 | })
214 | }
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
1 | open class RunLoop : NSObject {
| `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
2 | open class var current: RunLoop { get }
3 | @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:212:88: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | static let readBufferSize:Int = 8192
:
210 | if let (runloop, mode) = scheduledRunLoopsMode {
211 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
212 | runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 1, modes: [mode])
| `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 | })
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:363:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 | if let (runloop, mode) = scheduledRunLoopsMode {
362 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
363 | runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
| `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 | })
365 | }
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
1 | open class RunLoop : NSObject {
| `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
2 | open class var current: RunLoop { get }
3 | @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:363:88: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | static let readBufferSize:Int = 8192
:
361 | if let (runloop, mode) = scheduledRunLoopsMode {
362 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
363 | runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
| `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 | })
365 | }
Build complete! (25.16s)
Fetching https://github.com/IBM-Swift/BlueCryptor.git
[1/1652] Fetching bluecryptor
Fetched https://github.com/IBM-Swift/BlueCryptor.git from cache (0.92s)
Computing version for https://github.com/IBM-Swift/BlueCryptor.git
Computed https://github.com/IBM-Swift/BlueCryptor.git at 1.0.32 (0.69s)
Creating working copy for https://github.com/IBM-Swift/BlueCryptor.git
Working copy of https://github.com/IBM-Swift/BlueCryptor.git resolved at 1.0.32
Build complete.
{
"dependencies" : [
{
"identity" : "bluecryptor",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/IBM-Swift/BlueCryptor.git"
}
],
"manifest_display_name" : "SwiftAWSSignatureV4",
"name" : "SwiftAWSSignatureV4",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftAWSSignatureV4",
"targets" : [
"SwiftAWSSignatureV4"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"5"
],
"targets" : [
{
"c99name" : "SwiftAWSSignatureV4Tests",
"module_type" : "SwiftTarget",
"name" : "SwiftAWSSignatureV4Tests",
"path" : "Tests/SwiftAWSSignatureV4Tests",
"sources" : [
"HexTests.swift",
"SigningTests.swift"
],
"target_dependencies" : [
"SwiftAWSSignatureV4"
],
"type" : "test"
},
{
"c99name" : "SwiftAWSSignatureV4",
"module_type" : "SwiftTarget",
"name" : "SwiftAWSSignatureV4",
"path" : "Sources/SwiftAWSSignatureV4",
"product_dependencies" : [
"Cryptor"
],
"product_memberships" : [
"SwiftAWSSignatureV4"
],
"sources" : [
"AWSAccount.swift",
"Chunking.swift",
"String+Extensions.swift",
"URLRequest+AWSAccountSigning.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.