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/benspratling4/swiftawssignaturev4.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/benspratling4/swiftawssignaturev4
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at af742d9 correct supported mac versions
Cloned https://github.com/benspratling4/swiftawssignaturev4.git
Revision (git rev-parse @):
af742d9af23e165df7845487aafbc78167901a20
SUCCESS checkout https://github.com/benspratling4/swiftawssignaturev4.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/benspratling4/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/65] Compiling Crypto EdDSA.swift
[5/65] Compiling Crypto Signature.swift
[6/65] Compiling Crypto ArbitraryPrecisionInteger_boring.swift
[7/65] Compiling Crypto CryptoKitErrors_boring.swift
[8/65] Compiling Crypto FiniteFieldArithmeticContext_boring.swift
[9/65] Compiling Crypto RNG_boring.swift
[10/65] Compiling Crypto SEC1PrivateKey.swift
[11/65] Compiling Crypto SubjectPublicKeyInfo.swift
[12/65] Compiling Crypto CryptoKitErrors.swift
[13/65] Compiling Crypto Digest_boring.swift
[14/65] Compiling Crypto Digest.swift
[15/65] Compiling Crypto Digests.swift
[16/65] Compiling Crypto HashFunctions.swift
[17/71] Compiling Crypto ASN1Any.swift
[18/71] Compiling Crypto ASN1BitString.swift
[19/71] Compiling Crypto ASN1Boolean.swift
[20/71] Compiling Crypto ASN1Identifier.swift
[21/71] Compiling Crypto ASN1Integer.swift
[22/71] Compiling Crypto ASN1Null.swift
[23/71] Compiling Crypto ASN1OctetString.swift
[24/71] Emitting module Crypto
[25/71] Compiling Crypto Curve25519.swift
[26/71] Compiling Crypto Ed25519.swift
[27/71] Compiling Crypto NISTCurvesKeys.swift
[28/71] Compiling Crypto X25519Keys.swift
[29/71] Compiling Crypto SymmetricKeys.swift
[30/71] Compiling Crypto HMAC.swift
[31/71] Compiling Crypto MACFunctions.swift
[32/71] Compiling Crypto AES-GCM.swift
[33/71] Compiling Crypto AES-GCM_boring.swift
[34/71] Compiling Crypto ChaChaPoly_boring.swift
[35/71] Compiling Crypto ChaChaPoly.swift
[36/71] Compiling Crypto Cipher.swift
[37/71] Compiling Crypto Nonces.swift
[38/71] Compiling Crypto ASN1.swift
[39/71] Compiling Crypto MessageAuthenticationCode.swift
[40/71] Compiling Crypto AES.swift
[41/71] Compiling Crypto ECDSASignature_boring.swift
[42/71] Compiling Crypto ECDSA_boring.swift
[43/71] Compiling Crypto EdDSA_boring.swift
[44/71] Compiling Crypto ECDSA.swift
[45/71] Compiling Crypto HashFunctions_SHA2.swift
[46/71] Compiling Crypto Insecure.swift
[47/71] Compiling Crypto Insecure_HashFunctions.swift
[48/71] Compiling Crypto ECDH_boring.swift
[49/71] Compiling Crypto DH.swift
[50/71] Compiling Crypto ECDH.swift
[51/71] Compiling Crypto HKDF.swift
[52/71] Compiling Crypto ASN1Strings.swift
[53/71] Compiling Crypto ArraySliceBigint.swift
[54/71] Compiling Crypto GeneralizedTime.swift
[55/71] Compiling Crypto ObjectIdentifier.swift
[56/71] Compiling Crypto ECDSASignature.swift
[57/71] Compiling Crypto PEMDocument.swift
[58/71] Compiling Crypto PKCS8PrivateKey.swift
[59/71] Compiling Crypto AESWrap.swift
[60/71] Compiling Crypto AESWrap_boring.swift
[61/71] Compiling Crypto Ed25519_boring.swift
[62/71] Compiling Crypto EllipticCurvePoint_boring.swift
[63/71] Compiling Crypto EllipticCurve_boring.swift
[64/71] Compiling Crypto NISTCurvesKeys_boring.swift
[65/71] Compiling Crypto X25519Keys_boring.swift
[66/71] Compiling Crypto SafeCompare_boring.swift
[67/71] Compiling Crypto Zeroization_boring.swift
[68/71] Compiling Crypto PrettyBytes.swift
[69/71] Compiling Crypto SafeCompare.swift
[70/71] Compiling Crypto SecureBytes.swift
[71/71] Compiling Crypto Zeroization.swift
[72/77] Compiling SwiftAWSSignatureV4 String+Extensions.swift
[73/77] Compiling SwiftAWSSignatureV4 AWSAccount.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:46: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
44 | }
45 |
46 | 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
47 | var aCalendar = Calendar(identifier: .gregorian)
48 | //TODO: can we do this on linux?
[74/77] Compiling SwiftAWSSignatureV4 Data+Extensions.swift
[75/77] Compiling SwiftAWSSignatureV4 URLRequest+AWSAccountSigning.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:46: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
44 | }
45 |
46 | 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
47 | var aCalendar = Calendar(identifier: .gregorian)
48 | //TODO: can we do this on linux?
[76/77] Emitting module SwiftAWSSignatureV4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:46: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
44 | }
45 |
46 | 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
47 | var aCalendar = Calendar(identifier: .gregorian)
48 | //TODO: can we do this on linux?
[77/77] Compiling SwiftAWSSignatureV4 Chunking.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:200:5: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 | ,let (runloop, mode) = scheduledRunLoopsMode {
199 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
200 | 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
201 | })
202 | }
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:200:87: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |
147 |
148 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
149 |
150 | static let readBufferSize:Int = 8192
:
198 | ,let (runloop, mode) = scheduledRunLoopsMode {
199 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
200 | 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
201 | })
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:206:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | if let (runloop, mode) = scheduledRunLoopsMode {
205 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
206 | 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
207 | })
208 | }
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:206:74: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |
147 |
148 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
149 |
150 | static let readBufferSize:Int = 8192
:
204 | if let (runloop, mode) = scheduledRunLoopsMode {
205 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
206 | 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
207 | })
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:213:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 | if let (runloop, mode) = scheduledRunLoopsMode {
212 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
213 | 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
214 | })
215 | }
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:213:88: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |
147 |
148 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
149 |
150 | static let readBufferSize:Int = 8192
:
211 | if let (runloop, mode) = scheduledRunLoopsMode {
212 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
213 | 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
214 | })
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:364:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
362 | if let (runloop, mode) = scheduledRunLoopsMode {
363 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
364 | 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
365 | })
366 | }
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:364:88: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |
147 |
148 | @objc public class ChunkedStream : InputStream, StreamDelegate {
| `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
149 |
150 | static let readBufferSize:Int = 8192
:
362 | if let (runloop, mode) = scheduledRunLoopsMode {
363 | delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
364 | 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
365 | })
366 | }
Build complete! (29.12s)
Fetching https://github.com/apple/swift-crypto.git
[1/7811] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.78s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 2.5.0 (0.74s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 2.5.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "2.5.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
}
],
"manifest_display_name" : "SwiftAWSSignatureV4",
"name" : "SwiftAWSSignatureV4",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftAWSSignatureV4",
"targets" : [
"SwiftAWSSignatureV4"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftAWSSignatureV4Tests",
"module_type" : "SwiftTarget",
"name" : "SwiftAWSSignatureV4Tests",
"path" : "Tests/SwiftAWSSignatureV4Tests",
"product_dependencies" : [
"Crypto"
],
"sources" : [
"HexTests.swift"
],
"target_dependencies" : [
"SwiftAWSSignatureV4"
],
"type" : "test"
},
{
"c99name" : "SwiftAWSSignatureV4",
"module_type" : "SwiftTarget",
"name" : "SwiftAWSSignatureV4",
"path" : "Sources/SwiftAWSSignatureV4",
"product_dependencies" : [
"Crypto"
],
"product_memberships" : [
"SwiftAWSSignatureV4"
],
"sources" : [
"AWSAccount.swift",
"Chunking.swift",
"Data+Extensions.swift",
"String+Extensions.swift",
"URLRequest+AWSAccountSigning.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.