Build Information
Successful build of SwCrypt, reference 5.1.4 (d18cf9
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 06:49:10 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/soyersoyer/SwCrypt.git
Reference: 5.1.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/soyersoyer/SwCrypt
* tag 5.1.4 -> FETCH_HEAD
HEAD is now at d18cf90 Added SPM Support (#60)
Cloned https://github.com/soyersoyer/SwCrypt.git
Revision (git rev-parse @):
d18cf90973a32dc0d28f94eec91faf14ae8b4443
SUCCESS checkout https://github.com/soyersoyer/SwCrypt.git at 5.1.4
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swcrypt",
"name": "SwCrypt",
"url": "https://github.com/soyersoyer/SwCrypt.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwCrypt",
"dependencies": [
]
}
]
}
Fetching https://github.com/soyersoyer/SwCrypt.git
[1/592] Fetching swcrypt
Fetched https://github.com/soyersoyer/SwCrypt.git from cache (0.83s)
Creating working copy for https://github.com/soyersoyer/SwCrypt.git
Working copy of https://github.com/soyersoyer/SwCrypt.git resolved at 5.1.4 (d18cf90)
warning: '.resolve-product-dependencies': dependency 'swcrypt' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/soyersoyer/SwCrypt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module SwCrypt
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1476:49: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1474 | getFunc(dl!, f: "CCRSACryptorEncrypt")
1475 |
1476 | fileprivate typealias CCRSACryptorDecryptT = @convention (c) (
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1477 | _ privateKey: CCRSACryptorRef,
1478 | _ padding: CCAsymmetricPadding,
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:17:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | case missingEntitlement = -34018
16 |
17 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
18 |
19 | init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:93:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 | case keyNotEncrypted
92 |
93 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
94 |
95 | init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:373:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
371 | case keyNotEncrypted
372 |
373 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
374 |
375 | init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:607:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
605 | case invalidKey = -4311
606 |
607 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
608 |
609 | init(_ status: CCCryptorStatus, function: String = #function,
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:890:25: warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
888 |
889 |
890 | fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
| |- warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dl' 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
891 | fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
892 | getFunc(dl!, f: "CCRandomGenerateBytes")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1609:26: warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1607 |
1608 | fileprivate typealias kCCDHRFC3526Group5TM = UnsafePointer<CCDHParameters>
1609 | fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
| |- warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC3526Group5M' 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
1610 | getFunc(dl!, f: "kCCDHRFC3526Group5")
1611 | fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1611:26: warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1609 | fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
1610 | getFunc(dl!, f: "kCCDHRFC3526Group5")
1611 | fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
| |- warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC3526Group5' 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
1612 |
1613 | fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1614:26: warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1612 |
1613 | fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
1614 | fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
| |- warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC2409Group2M' 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
1615 | getFunc(dl!, f: "kCCDHRFC2409Group2")
1616 | fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1616:26: warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1614 | fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
1615 | getFunc(dl!, f: "kCCDHRFC2409Group2")
1616 | fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
| |- warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC2409Group2' 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
1617 |
1618 | fileprivate typealias CCDHCreateT = @convention(c) (
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:2081:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2079 |
2080 | fileprivate static let rfc3394IVData: [UInt8] = [0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6]
2081 | public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2082 |
2083 | public static func SymmetricKeyWrap(_ iv: Data,
[4/4] Compiling SwCrypt SwCrypt.swift
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1476:49: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1474 | getFunc(dl!, f: "CCRSACryptorEncrypt")
1475 |
1476 | fileprivate typealias CCRSACryptorDecryptT = @convention (c) (
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
1477 | _ privateKey: CCRSACryptorRef,
1478 | _ padding: CCAsymmetricPadding,
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:17:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | case missingEntitlement = -34018
16 |
17 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
18 |
19 | init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:93:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 | case keyNotEncrypted
92 |
93 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
94 |
95 | init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:373:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
371 | case keyNotEncrypted
372 |
373 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
374 |
375 | init(_ type: SwError, function: String = #function, file: String = #file, line: Int = #line) {
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:607:21: warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
605 | case invalidKey = -4311
606 |
607 | public static var debugLevel = 1
| |- warning: static property 'debugLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugLevel' 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
608 |
609 | init(_ status: CCCryptorStatus, function: String = #function,
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:890:25: warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
888 |
889 |
890 | fileprivate static let dl = dlopen("/usr/lib/system/libcommonCrypto.dylib", RTLD_NOW)
| |- warning: static property 'dl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dl' 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
891 | fileprivate static let CCRandomGenerateBytes: CCRandomGenerateBytesT? =
892 | getFunc(dl!, f: "CCRandomGenerateBytes")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1609:26: warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1607 |
1608 | fileprivate typealias kCCDHRFC3526Group5TM = UnsafePointer<CCDHParameters>
1609 | fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
| |- warning: static property 'kCCDHRFC3526Group5M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC3526Group5TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC3526Group5M' 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
1610 | getFunc(dl!, f: "kCCDHRFC3526Group5")
1611 | fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1611:26: warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1609 | fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? =
1610 | getFunc(dl!, f: "kCCDHRFC3526Group5")
1611 | fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee
| |- warning: static property 'kCCDHRFC3526Group5' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC3526Group5' 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
1612 |
1613 | fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1614:26: warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
1612 |
1613 | fileprivate typealias kCCDHRFC2409Group2TM = UnsafePointer<CCDHParameters>
1614 | fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
| |- warning: static property 'kCCDHRFC2409Group2M' is not concurrency-safe because non-'Sendable' type 'CC.DH.kCCDHRFC2409Group2TM?' (aka 'Optional<UnsafePointer<UnsafeRawPointer>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC2409Group2M' 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
1615 | getFunc(dl!, f: "kCCDHRFC2409Group2")
1616 | fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:1616:26: warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
1614 | fileprivate static let kCCDHRFC2409Group2M: kCCDHRFC2409Group2TM? =
1615 | getFunc(dl!, f: "kCCDHRFC2409Group2")
1616 | fileprivate static let kCCDHRFC2409Group2 = kCCDHRFC2409Group2M?.pointee
| |- warning: static property 'kCCDHRFC2409Group2' is not concurrency-safe because non-'Sendable' type 'CC.DH.CCDHParameters?' (aka 'Optional<UnsafeRawPointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kCCDHRFC2409Group2' 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
1617 |
1618 | fileprivate typealias CCDHCreateT = @convention(c) (
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/SwCrypt/SwCrypt.swift:2081:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2079 |
2080 | fileprivate static let rfc3394IVData: [UInt8] = [0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6, 0xA6]
2081 | public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
2082 |
2083 | public static func SymmetricKeyWrap(_ iv: Data,
Build complete! (7.24s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwCrypt",
"name" : "SwCrypt",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwCrypt",
"targets" : [
"SwCrypt"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwCryptTests",
"module_type" : "SwiftTarget",
"name" : "SwCryptTests",
"path" : "SwCryptTests",
"sources" : [
"SwCryptTests.swift"
],
"target_dependencies" : [
"SwCrypt"
],
"type" : "test"
},
{
"c99name" : "SwCrypt",
"module_type" : "SwiftTarget",
"name" : "SwCrypt",
"path" : "SwCrypt",
"product_memberships" : [
"SwCrypt"
],
"sources" : [
"SwCrypt.swift"
],
"type" : "library"
}
],
"tools_version" : "4.1"
}
Done.