Build Information
Successful build of CryptorRSA with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
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/Kitura/BlueRSA.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/BlueRSA
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 440f78d More updates to community Kitura org (#72)
Cloned https://github.com/Kitura/BlueRSA.git
Revision (git rev-parse @):
440f78db26d8bb073f29590f1c7bd31004da09ae
SUCCESS checkout https://github.com/Kitura/BlueRSA.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kitura/BlueRSA.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/11] Compiling CryptorRSA SSLPointerTricks.swift
[4/11] Compiling CryptorRSA Data+Extensions.swift
[5/11] Compiling CryptorRSA CryptorRSAUtilities.swift
[6/11] Compiling CryptorRSA CryptorRSAErrors.swift
[7/11] Compiling CryptorRSA CryptorRSADigest.swift
[8/11] Compiling CryptorRSA CryptorRSAKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:598:22: warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
598 | public static let bits1024 = KeySize(bits: 1024)
| |- warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits1024' 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
599 | /// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
600 | public static let bits2048 = KeySize(bits: 2048)
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:600:22: warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
598 | public static let bits1024 = KeySize(bits: 1024)
599 | /// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
600 | public static let bits2048 = KeySize(bits: 2048)
| |- warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits2048' 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
601 | /// A 3072 bit RSA key. Recommended if security is required beyond 2030.
602 | public static let bits3072 = KeySize(bits: 3072)
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:602:22: warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
:
600 | public static let bits2048 = KeySize(bits: 2048)
601 | /// A 3072 bit RSA key. Recommended if security is required beyond 2030.
602 | public static let bits3072 = KeySize(bits: 3072)
| |- warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits3072' 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
603 | /// A 4096 bit RSA key.
604 | public static let bits4096 = KeySize(bits: 4096)
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:604:22: warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
:
602 | public static let bits3072 = KeySize(bits: 3072)
603 | /// A 4096 bit RSA key.
604 | public static let bits4096 = KeySize(bits: 4096)
| |- warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits4096' 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
605 | }
606 |
[9/11] Compiling CryptorRSA CryptorRSA.swift
[10/11] Emitting module CryptorRSA
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:598:22: warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
598 | public static let bits1024 = KeySize(bits: 1024)
| |- warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits1024' 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
599 | /// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
600 | public static let bits2048 = KeySize(bits: 2048)
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:600:22: warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
598 | public static let bits1024 = KeySize(bits: 1024)
599 | /// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
600 | public static let bits2048 = KeySize(bits: 2048)
| |- warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits2048' 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
601 | /// A 3072 bit RSA key. Recommended if security is required beyond 2030.
602 | public static let bits3072 = KeySize(bits: 3072)
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:602:22: warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
:
600 | public static let bits2048 = KeySize(bits: 2048)
601 | /// A 3072 bit RSA key. Recommended if security is required beyond 2030.
602 | public static let bits3072 = KeySize(bits: 3072)
| |- warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits3072' 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
603 | /// A 4096 bit RSA key.
604 | public static let bits4096 = KeySize(bits: 4096)
/Users/admin/builder/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:604:22: warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
593 |
594 | /// Denotes the size of the RSA key.
595 | public struct KeySize {
| `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
596 | let bits: Int
597 | /// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
:
602 | public static let bits3072 = KeySize(bits: 3072)
603 | /// A 4096 bit RSA key.
604 | public static let bits4096 = KeySize(bits: 4096)
| |- warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bits4096' 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
605 | }
606 |
[11/11] Compiling CryptorRSA CryptorRSAConstants.swift
Build complete! (19.97s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CryptorRSA",
"name" : "CryptorRSA",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CryptorRSA",
"targets" : [
"CryptorRSA"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CryptorRSATests",
"module_type" : "SwiftTarget",
"name" : "CryptorRSATests",
"path" : "Tests/CryptorRSATests",
"sources" : [
"CryptorRSATests.swift"
],
"target_dependencies" : [
"CryptorRSA"
],
"type" : "test"
},
{
"c99name" : "CryptorRSA",
"module_type" : "SwiftTarget",
"name" : "CryptorRSA",
"path" : "Sources/CryptorRSA",
"product_memberships" : [
"CryptorRSA"
],
"sources" : [
"CryptorRSA.swift",
"CryptorRSAConstants.swift",
"CryptorRSADigest.swift",
"CryptorRSAErrors.swift",
"CryptorRSAKey.swift",
"CryptorRSAUtilities.swift",
"Data+Extensions.swift",
"SSLPointerTricks.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.