Build Information
Successful build of EUDCCKit, reference 0.0.4 (864b82
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 18:34:08 UTC.
Swift 6 data race errors: 11
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SvenTiigi/EUDCCKit.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SvenTiigi/EUDCCKit
* tag 0.0.4 -> FETCH_HEAD
HEAD is now at 864b826 Merge pull request #9 from chili-ios/main
Cloned https://github.com/SvenTiigi/EUDCCKit.git
Revision (git rev-parse @):
864b8262e0babe3080e0fcbf1feb96dded19f9c6
SUCCESS checkout https://github.com/SvenTiigi/EUDCCKit.git at 0.0.4
Fetching https://github.com/unrelentingtech/SwiftCBOR.git
[1/1387] Fetching swiftcbor
Fetched https://github.com/unrelentingtech/SwiftCBOR.git from cache (0.87s)
Computing version for https://github.com/unrelentingtech/SwiftCBOR.git
Computed https://github.com/unrelentingtech/SwiftCBOR.git at 0.4.3 (1.47s)
Creating working copy for https://github.com/unrelentingtech/SwiftCBOR.git
Working copy of https://github.com/unrelentingtech/SwiftCBOR.git resolved at 0.4.3
========================================
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": "eudcckit",
"name": "EUDCCKit",
"url": "https://github.com/SvenTiigi/EUDCCKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EUDCCKit",
"dependencies": [
{
"identity": "swiftcbor",
"name": "SwiftCBOR",
"url": "https://github.com/unrelentingtech/SwiftCBOR.git",
"version": "0.4.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftCBOR",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/SvenTiigi/EUDCCKit.git
[1/582] Fetching eudcckit
Fetched https://github.com/SvenTiigi/EUDCCKit.git from cache (0.81s)
Fetching https://github.com/unrelentingtech/SwiftCBOR.git from cache
Fetched https://github.com/unrelentingtech/SwiftCBOR.git from cache (0.43s)
Computing version for https://github.com/unrelentingtech/SwiftCBOR.git
Computed https://github.com/unrelentingtech/SwiftCBOR.git at 0.4.3 (0.49s)
Creating working copy for https://github.com/unrelentingtech/SwiftCBOR.git
Working copy of https://github.com/unrelentingtech/SwiftCBOR.git resolved at 0.4.3
Creating working copy for https://github.com/SvenTiigi/EUDCCKit.git
Working copy of https://github.com/SvenTiigi/EUDCCKit.git resolved at 0.0.4 (864b826)
warning: '.resolve-product-dependencies': dependency 'eudcckit' is not used by any target
Found 1 product dependencies
- SwiftCBOR
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/SvenTiigi/EUDCCKit.git
https://github.com/SvenTiigi/EUDCCKit.git
{
"dependencies" : [
{
"identity" : "swiftcbor",
"requirement" : {
"exact" : [
"0.4.3"
]
},
"type" : "sourceControl",
"url" : "https://github.com/unrelentingtech/SwiftCBOR.git"
}
],
"manifest_display_name" : "EUDCCKit",
"name" : "EUDCCKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "5.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "EUDCC",
"targets" : [
"EUDCC"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EUDCCDecoder",
"targets" : [
"EUDCCDecoder"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EUDCCVerifier",
"targets" : [
"EUDCCVerifier"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EUDCCValidator",
"targets" : [
"EUDCCValidator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EUDCCVerifierTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCVerifierTests",
"path" : "Tests/EUDCCVerifierTests",
"sources" : [
"EUDCCVerifierTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCVerifier",
"module_type" : "SwiftTarget",
"name" : "EUDCCVerifier",
"path" : "Sources/EUDCCVerifier",
"product_dependencies" : [
"SwiftCBOR"
],
"product_memberships" : [
"EUDCCVerifier"
],
"sources" : [
"Extensions/Data+encodedASN1.swift",
"Extensions/EUDCC+Verify.swift",
"Models/EUDCC+SignedPayload.swift",
"Models/EUDCC+TrustCertificate+KeyID.swift",
"Models/EUDCC+TrustCertificate.swift",
"Models/EUDCC+VerificationCandidate.swift",
"TrustService/EUDCCTrustService.swift",
"TrustService/GroupableEUDCCTrustService.swift",
"TrustService/Implementations/EUCentralEUDCCTrustService.swift",
"TrustService/Implementations/RobertKochInstituteEUDCCTrustService.swift",
"Verifier/EUDCCVerifier.swift"
],
"target_dependencies" : [
"EUDCC"
],
"type" : "library"
},
{
"c99name" : "EUDCCValidatorTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCValidatorTests",
"path" : "Tests/EUDCCValidatorTests",
"sources" : [
"EUDCCValidatorTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCValidator",
"module_type" : "SwiftTarget",
"name" : "EUDCCValidator",
"path" : "Sources/EUDCCValidator",
"product_memberships" : [
"EUDCCValidator"
],
"sources" : [
"Extensions/EUDCC+Validate.swift",
"Models/EUDCC+ValidationRule+CompareAgainst.swift",
"Models/EUDCC+ValidationRule+ComparisonOperators.swift",
"Models/EUDCC+ValidationRule+Defaults.swift",
"Models/EUDCC+ValidationRule+If.swift",
"Models/EUDCC+ValidationRule+LogicalOperators.swift",
"Models/EUDCC+ValidationRule+Tag.swift",
"Models/EUDCC+ValidationRule.swift",
"Validator/EUDCCValidator.swift"
],
"target_dependencies" : [
"EUDCC"
],
"type" : "library"
},
{
"c99name" : "EUDCCTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCTests",
"path" : "Tests/EUDCCTests",
"sources" : [
"EUDCCTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCKitTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCKitTests",
"path" : "Tests/_EUDCCKitTests",
"sources" : [
"EUDCCKitTests.swift"
],
"target_dependencies" : [
"EUDCC",
"EUDCCDecoder",
"EUDCCValidator",
"EUDCCVerifier"
],
"type" : "library"
},
{
"c99name" : "EUDCCDecoderTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCDecoderTests",
"path" : "Tests/EUDCCDecoderTests",
"sources" : [
"EUDCCDecoderTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCDecoder",
"module_type" : "SwiftTarget",
"name" : "EUDCCDecoder",
"path" : "Sources/EUDCCDecoder",
"product_dependencies" : [
"SwiftCBOR"
],
"product_memberships" : [
"EUDCCDecoder"
],
"sources" : [
"Decoder/EUDCCDecoder.swift",
"Extension/CBOR+DictionaryRepresentation.swift",
"Extension/Data+Base45.swift",
"Extension/Data+Compression.swift",
"Extension/EUDCC+Decode.swift"
],
"target_dependencies" : [
"EUDCC"
],
"type" : "library"
},
{
"c99name" : "EUDCC",
"module_type" : "SwiftTarget",
"name" : "EUDCC",
"path" : "Sources/EUDCC",
"product_memberships" : [
"EUDCC",
"EUDCCDecoder",
"EUDCCVerifier",
"EUDCCValidator"
],
"sources" : [
"DateFormatter/AnyDateFormatter.swift",
"DateFormatter/EUDCCDateFormatter.swift",
"DateFormatter/EUDCCTimestampFormatter.swift",
"Extensions/Codable+DateFormatter.swift",
"Models/EUDCC+Codable.swift",
"Models/EUDCC+Content.swift",
"Models/EUDCC+Country.swift",
"Models/EUDCC+CryptographicSignature.swift",
"Models/EUDCC+DiseaseAgentTargeted.swift",
"Models/EUDCC+Name.swift",
"Models/EUDCC.swift",
"Models/Recovery/EUDCC+Recovery.swift",
"Models/Test/EUDCC+Test+TestResult.swift",
"Models/Test/EUDCC+Test+TestType.swift",
"Models/Test/EUDCC+Test.swift",
"Models/Vaccination/EUDCC+Vaccination+VaccineMarketingAuthorizationHolder.swift",
"Models/Vaccination/EUDCC+Vaccination+VaccineMedicinalProduct.swift",
"Models/Vaccination/EUDCC+Vaccination+VaccineOrProphylaxis.swift",
"Models/Vaccination/EUDCC+Vaccination.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/7] Write sources
[6/7] Write swift-version-2F0A5646E1D333AE.txt
[8/42] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[9/42] Compiling EUDCC AnyDateFormatter.swift
[10/42] Compiling EUDCC EUDCCDateFormatter.swift
[11/43] Emitting module EUDCC
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCDateFormatter.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// The EUDCCDateFormatter
6 | final class EUDCCDateFormatter: ISO8601DateFormatter {
| `- note: class 'EUDCCDateFormatter' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Static-Properties
9 |
10 | /// The default `EUDCCDateFormatter` instance
11 | static let `default` = EUDCCDateFormatter()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /// The Date-Only `ISO8601DateFormatter` instance
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCDateFormatter.swift:14:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Date-Only `ISO8601DateFormatter` instance
14 | private static let dateFormatter: ISO8601DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dateFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | let formatter = ISO8601DateFormatter()
16 | formatter.formatOptions.remove([.withTime, .withTimeZone])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCTimestampFormatter.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCTimestampFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// A EUDCC Timestamp Formatter
6 | final class EUDCCTimestampFormatter: AnyDateFormatter {
| `- note: class 'EUDCCTimestampFormatter' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Static-Properties
9 |
10 | /// The default `EUDCCTimestampFormatter` instance
11 | static let `default` = EUDCCTimestampFormatter()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCTimestampFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | // MARK: AnyDateFormatter
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestResult.swift:51:16: warning: static property 'positive' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Not detected
34 | case notDetected = "260415000"
:
49 |
50 | /// Positive TestResult value represented by `detected` case
51 | static let positive: Self = .detected
| |- warning: static property 'positive' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'positive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Negative TestResult value represented by `notDetected` case
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestResult.swift:54:16: warning: static property 'negative' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Not detected
34 | case notDetected = "260415000"
:
52 |
53 | /// Negative TestResult value represented by `notDetected` case
54 | static let negative: Self = .notDetected
| |- warning: static property 'negative' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'negative' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestType.swift:51:16: warning: static property 'pcr' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestType.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Nucleic acid amplification with probe detection
34 | case nucleicACIDAmplificationWithProbeDetection = "LP6464-4"
:
49 |
50 | /// PCR represented by `nucleicACIDAmplificationWithProbeDetection` case
51 | static let pcr: Self = .nucleicACIDAmplificationWithProbeDetection
| |- warning: static property 'pcr' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestType.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pcr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Vaccination/EUDCC+Vaccination+VaccineMedicinalProduct.swift:71:16: warning: static property 'astraZeneca' is not concurrency-safe because non-'Sendable' type 'EUDCC.Vaccination.VaccineMedicinalProduct.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Comirnaty
34 | case comirnaty = "EU/1/20/1528"
:
69 |
70 | /// AstraZeneca represented by `vaxzevria` case
71 | static let astraZeneca: Self = .vaxzevria
| |- warning: static property 'astraZeneca' is not concurrency-safe because non-'Sendable' type 'EUDCC.Vaccination.VaccineMedicinalProduct.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'astraZeneca' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | }
[12/44] Compiling EUDCC EUDCC+Test+TestResult.swift
[13/44] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
[14/44] Compiling SwiftCBOR SingleValueEncodingContainer.swift
[15/44] Compiling EUDCC EUDCC+Vaccination+VaccineMedicinalProduct.swift
[16/44] Compiling EUDCC EUDCC+Vaccination+VaccineOrProphylaxis.swift
[17/44] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[18/44] Compiling EUDCC EUDCC+DiseaseAgentTargeted.swift
[19/44] Compiling EUDCC EUDCC+Name.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Vaccination/EUDCC+Vaccination+VaccineMedicinalProduct.swift:71:16: warning: static property 'astraZeneca' is not concurrency-safe because non-'Sendable' type 'EUDCC.Vaccination.VaccineMedicinalProduct.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Comirnaty
34 | case comirnaty = "EU/1/20/1528"
:
69 |
70 | /// AstraZeneca represented by `vaxzevria` case
71 | static let astraZeneca: Self = .vaxzevria
| |- warning: static property 'astraZeneca' is not concurrency-safe because non-'Sendable' type 'EUDCC.Vaccination.VaccineMedicinalProduct.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'astraZeneca' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Vaccination/EUDCC+Vaccination+VaccineMedicinalProduct.swift:71:16: warning: static property 'astraZeneca' is not concurrency-safe because non-'Sendable' type 'EUDCC.Vaccination.VaccineMedicinalProduct.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Comirnaty
34 | case comirnaty = "EU/1/20/1528"
:
69 |
70 | /// AstraZeneca represented by `vaxzevria` case
71 | static let astraZeneca: Self = .vaxzevria
| |- warning: static property 'astraZeneca' is not concurrency-safe because non-'Sendable' type 'EUDCC.Vaccination.VaccineMedicinalProduct.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'astraZeneca' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | }
[22/44] Emitting module SwiftCBOR
[23/44] Compiling EUDCC EUDCC+Codable.swift
[24/44] Compiling EUDCC EUDCC+Content.swift
[25/44] Compiling SwiftCBOR CBORDecoder.swift
[26/44] Compiling SwiftCBOR CBOREncodable.swift
[29/44] Compiling EUDCC EUDCC.swift
[30/44] Compiling EUDCC EUDCC+Recovery.swift
[31/44] Compiling EUDCC EUDCC+Test.swift
[32/44] Compiling EUDCC EUDCC+Vaccination+VaccineMarketingAuthorizationHolder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestResult.swift:51:16: warning: static property 'positive' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Not detected
34 | case notDetected = "260415000"
:
49 |
50 | /// Positive TestResult value represented by `detected` case
51 | static let positive: Self = .detected
| |- warning: static property 'positive' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'positive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Negative TestResult value represented by `notDetected` case
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestResult.swift:54:16: warning: static property 'negative' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Not detected
34 | case notDetected = "260415000"
:
52 |
53 | /// Negative TestResult value represented by `notDetected` case
54 | static let negative: Self = .notDetected
| |- warning: static property 'negative' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'negative' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestType.swift:51:16: warning: static property 'pcr' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestType.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Nucleic acid amplification with probe detection
34 | case nucleicACIDAmplificationWithProbeDetection = "LP6464-4"
:
49 |
50 | /// PCR represented by `nucleicACIDAmplificationWithProbeDetection` case
51 | static let pcr: Self = .nucleicACIDAmplificationWithProbeDetection
| |- warning: static property 'pcr' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestType.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pcr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestResult.swift:51:16: warning: static property 'positive' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Not detected
34 | case notDetected = "260415000"
:
49 |
50 | /// Positive TestResult value represented by `detected` case
51 | static let positive: Self = .detected
| |- warning: static property 'positive' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'positive' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Negative TestResult value represented by `notDetected` case
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestResult.swift:54:16: warning: static property 'negative' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Not detected
34 | case notDetected = "260415000"
:
52 |
53 | /// Negative TestResult value represented by `notDetected` case
54 | static let negative: Self = .notDetected
| |- warning: static property 'negative' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestResult.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'negative' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/Test/EUDCC+Test+TestType.swift:51:16: warning: static property 'pcr' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestType.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The WellKnownValue
32 | enum WellKnownValue: String, Codable, Hashable, CaseIterable {
| `- note: consider making enum 'WellKnownValue' conform to the 'Sendable' protocol
33 | /// Nucleic acid amplification with probe detection
34 | case nucleicACIDAmplificationWithProbeDetection = "LP6464-4"
:
49 |
50 | /// PCR represented by `nucleicACIDAmplificationWithProbeDetection` case
51 | static let pcr: Self = .nucleicACIDAmplificationWithProbeDetection
| |- warning: static property 'pcr' is not concurrency-safe because non-'Sendable' type 'EUDCC.Test.TestType.WellKnownValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pcr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCDateFormatter.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// The EUDCCDateFormatter
6 | final class EUDCCDateFormatter: ISO8601DateFormatter {
| `- note: class 'EUDCCDateFormatter' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Static-Properties
9 |
10 | /// The default `EUDCCDateFormatter` instance
11 | static let `default` = EUDCCDateFormatter()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /// The Date-Only `ISO8601DateFormatter` instance
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCDateFormatter.swift:14:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Date-Only `ISO8601DateFormatter` instance
14 | private static let dateFormatter: ISO8601DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dateFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | let formatter = ISO8601DateFormatter()
16 | formatter.formatOptions.remove([.withTime, .withTimeZone])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCDateFormatter.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// The EUDCCDateFormatter
6 | final class EUDCCDateFormatter: ISO8601DateFormatter {
| `- note: class 'EUDCCDateFormatter' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Static-Properties
9 |
10 | /// The default `EUDCCDateFormatter` instance
11 | static let `default` = EUDCCDateFormatter()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /// The Date-Only `ISO8601DateFormatter` instance
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCDateFormatter.swift:14:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Date-Only `ISO8601DateFormatter` instance
14 | private static let dateFormatter: ISO8601DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dateFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | let formatter = ISO8601DateFormatter()
16 | formatter.formatOptions.remove([.withTime, .withTimeZone])
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCTimestampFormatter.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCTimestampFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// A EUDCC Timestamp Formatter
6 | final class EUDCCTimestampFormatter: AnyDateFormatter {
| `- note: class 'EUDCCTimestampFormatter' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Static-Properties
9 |
10 | /// The default `EUDCCTimestampFormatter` instance
11 | static let `default` = EUDCCTimestampFormatter()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCTimestampFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | // MARK: AnyDateFormatter
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/DateFormatter/EUDCCTimestampFormatter.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCTimestampFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// A EUDCC Timestamp Formatter
6 | final class EUDCCTimestampFormatter: AnyDateFormatter {
| `- note: class 'EUDCCTimestampFormatter' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Static-Properties
9 |
10 | /// The default `EUDCCTimestampFormatter` instance
11 | static let `default` = EUDCCTimestampFormatter()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'EUDCCTimestampFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | // MARK: AnyDateFormatter
[41/44] Compiling EUDCC EUDCC+Country.swift
[42/44] Compiling EUDCC EUDCC+CryptographicSignature.swift
[43/44] Compiling SwiftCBOR Util.swift
[44/44] Compiling EUDCC EUDCC+Vaccination.swift
[45/71] Compiling EUDCCValidator EUDCCValidator.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCValidator/Validator/EUDCCValidator.swift:33:20: warning: stored property 'unsatisfiedRule' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'EUDCC.ValidationRule'; this is an error in the Swift 6 language mode
31 |
32 | /// The unsatisfied ValidationRule
33 | public let unsatisfiedRule: EUDCC.ValidationRule
| `- warning: stored property 'unsatisfiedRule' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'EUDCC.ValidationRule'; this is an error in the Swift 6 language mode
34 |
35 | /// The failure reason
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCValidator/Models/EUDCC+ValidationRule.swift:9:12: note: consider making struct 'ValidationRule' conform to the 'Sendable' protocol
7 |
8 | /// An `EUDCC` ValidationRule
9 | struct ValidationRule {
| `- note: consider making struct 'ValidationRule' conform to the 'Sendable' protocol
10 |
11 | // MARK: Typealias
[46/71] Compiling EUDCCVerifier EUDCC+VerificationCandidate.swift
[47/72] Compiling EUDCCValidator EUDCC+ValidationRule+CompareAgainst.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCValidator/Models/EUDCC+ValidationRule+CompareAgainst.swift:75:27: warning: static property 'currentDate' is not concurrency-safe because non-'Sendable' type 'EUDCC.ValidationRule.CompareAgainstDate' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | /// The CompareAgainstDate Parameter
70 | struct CompareAgainstDate {
| `- note: consider making struct 'CompareAgainstDate' conform to the 'Sendable' protocol
71 |
72 | // MARK: Static-Properties
73 |
74 | /// The current Date CompareAgainstDate
75 | public static let currentDate: Self = .init(
| |- warning: static property 'currentDate' is not concurrency-safe because non-'Sendable' type 'EUDCC.ValidationRule.CompareAgainstDate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'currentDate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | .constant(.init())
77 | )
[48/72] Compiling EUDCCValidator EUDCC+Validate.swift
[49/72] Emitting module EUDCCValidator
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCValidator/Models/EUDCC+ValidationRule+CompareAgainst.swift:75:27: warning: static property 'currentDate' is not concurrency-safe because non-'Sendable' type 'EUDCC.ValidationRule.CompareAgainstDate' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | /// The CompareAgainstDate Parameter
70 | struct CompareAgainstDate {
| `- note: consider making struct 'CompareAgainstDate' conform to the 'Sendable' protocol
71 |
72 | // MARK: Static-Properties
73 |
74 | /// The current Date CompareAgainstDate
75 | public static let currentDate: Self = .init(
| |- warning: static property 'currentDate' is not concurrency-safe because non-'Sendable' type 'EUDCC.ValidationRule.CompareAgainstDate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'currentDate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | .constant(.init())
77 | )
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCValidator/Validator/EUDCCValidator.swift:33:20: warning: stored property 'unsatisfiedRule' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'EUDCC.ValidationRule'; this is an error in the Swift 6 language mode
31 |
32 | /// The unsatisfied ValidationRule
33 | public let unsatisfiedRule: EUDCC.ValidationRule
| `- warning: stored property 'unsatisfiedRule' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'EUDCC.ValidationRule'; this is an error in the Swift 6 language mode
34 |
35 | /// The failure reason
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCValidator/Models/EUDCC+ValidationRule.swift:9:12: note: consider making struct 'ValidationRule' conform to the 'Sendable' protocol
7 |
8 | /// An `EUDCC` ValidationRule
9 | struct ValidationRule {
| `- note: consider making struct 'ValidationRule' conform to the 'Sendable' protocol
10 |
11 | // MARK: Typealias
[50/72] Compiling EUDCCVerifier EUDCCTrustService.swift
[51/72] Compiling EUDCCVerifier EUDCC+TrustCertificate+KeyID.swift
[52/72] Compiling EUDCCVerifier EUDCC+SignedPayload.swift
[53/72] Compiling EUDCCVerifier EUDCC+TrustCertificate.swift
[54/72] Compiling EUDCCValidator EUDCC+ValidationRule+Tag.swift
[55/72] Compiling EUDCCValidator EUDCC+ValidationRule.swift
[56/72] Compiling EUDCCDecoder EUDCC+Decode.swift
[57/72] Compiling EUDCCDecoder Data+Base45.swift
[58/72] Compiling EUDCCDecoder Data+Compression.swift
[59/72] Compiling EUDCCDecoder CBOR+DictionaryRepresentation.swift
[60/72] Compiling EUDCCVerifier GroupableEUDCCTrustService.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/GroupableEUDCCTrustService.swift:92:21: warning: capture of 'results' with non-sendable type '[Result<[EUDCC.TrustCertificate], any Error>]' in a '@Sendable' closure
90 | dispatchQueue.async {
91 | // Append Result
92 | results.append(result)
| `- warning: capture of 'results' with non-sendable type '[Result<[EUDCC.TrustCertificate], any Error>]' in a '@Sendable' closure
93 | // Leave DispatchGroup
94 | dispatchGroup.leave()
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Models/EUDCC+TrustCertificate.swift:10:12: note: consider making struct 'TrustCertificate' conform to the 'Sendable' protocol
8 |
9 | /// An EUDCC TrustCertificate
10 | struct TrustCertificate: Codable, Hashable {
| `- note: consider making struct 'TrustCertificate' conform to the 'Sendable' protocol
11 |
12 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/GroupableEUDCCTrustService.swift:92:36: warning: capture of 'result' with non-sendable type 'Result<[EUDCC.TrustCertificate], any Error>' in a '@Sendable' closure
90 | dispatchQueue.async {
91 | // Append Result
92 | results.append(result)
| `- warning: capture of 'result' with non-sendable type 'Result<[EUDCC.TrustCertificate], any Error>' in a '@Sendable' closure
93 | // Leave DispatchGroup
94 | dispatchGroup.leave()
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Models/EUDCC+TrustCertificate.swift:10:12: note: consider making struct 'TrustCertificate' conform to the 'Sendable' protocol
8 |
9 | /// An EUDCC TrustCertificate
10 | struct TrustCertificate: Codable, Hashable {
| `- note: consider making struct 'TrustCertificate' conform to the 'Sendable' protocol
11 |
12 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/GroupableEUDCCTrustService.swift:92:21: warning: mutation of captured var 'results' in concurrently-executing code
90 | dispatchQueue.async {
91 | // Append Result
92 | results.append(result)
| `- warning: mutation of captured var 'results' in concurrently-executing code
93 | // Leave DispatchGroup
94 | dispatchGroup.leave()
[61/72] Compiling EUDCCVerifier EUCentralEUDCCTrustService.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/Implementations/EUCentralEUDCCTrustService.swift:79:24: warning: capture of 'completion' with non-sendable type '([EUDCC.TrustCertificate]) -> Void' in a '@Sendable' closure
77 | httpResponse.statusCode == 200 else {
78 | // Otherwise complete with current TrustCertificates
79 | return completion(trustCertificates)
| |- warning: capture of 'completion' with non-sendable type '([EUDCC.TrustCertificate]) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
80 | }
81 | // Verify KeyID and Data is available
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/Implementations/EUCentralEUDCCTrustService.swift:79:35: warning: capture of 'trustCertificates' with non-sendable type '[EUDCC.TrustCertificate]' in a '@Sendable' closure
77 | httpResponse.statusCode == 200 else {
78 | // Otherwise complete with current TrustCertificates
79 | return completion(trustCertificates)
| `- warning: capture of 'trustCertificates' with non-sendable type '[EUDCC.TrustCertificate]' in a '@Sendable' closure
80 | }
81 | // Verify KeyID and Data is available
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Models/EUDCC+TrustCertificate.swift:10:12: note: consider making struct 'TrustCertificate' conform to the 'Sendable' protocol
8 |
9 | /// An EUDCC TrustCertificate
10 | struct TrustCertificate: Codable, Hashable {
| `- note: consider making struct 'TrustCertificate' conform to the 'Sendable' protocol
11 |
12 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/Implementations/EUCentralEUDCCTrustService.swift:102:13: warning: capture of 'self' with non-sendable type 'EUCentralEUDCCTrustService?' in a '@Sendable' closure
5 |
6 | /// The EU Central EUDCC TrustService
7 | public final class EUCentralEUDCCTrustService {
| `- note: class 'EUCentralEUDCCTrustService' does not conform to the 'Sendable' protocol
8 |
9 | // MARK: Properties
:
100 | }
101 | // Re-Fetch Certificates with next ResumeToken
102 | self?.fetchCertificates(
| `- warning: capture of 'self' with non-sendable type 'EUCentralEUDCCTrustService?' in a '@Sendable' closure
103 | resumeToken: nextResumeToken,
104 | trustCertificates: trustCertificates,
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/Implementations/EUCentralEUDCCTrustService.swift:40:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
38 | DispatchQueue.main.async {
39 | // Complete with success
40 | completion(.success(trustCertificates))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/Implementations/EUCentralEUDCCTrustService.swift:40:37: warning: sending 'trustCertificates' risks causing data races; this is an error in the Swift 6 language mode
38 | DispatchQueue.main.async {
39 | // Complete with success
40 | completion(.success(trustCertificates))
| |- warning: sending 'trustCertificates' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'trustCertificates' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
41 | }
42 | }
[62/72] Compiling EUDCCVerifier RobertKochInstituteEUDCCTrustService.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/TrustService/Implementations/RobertKochInstituteEUDCCTrustService.swift:99:21: warning: capture of 'completion' with non-sendable type '(Result<[EUDCC.TrustCertificate], any Error>) -> Void' in a '@Sendable' closure
97 | // Complete with failure
98 | return DispatchQueue.main.async {
99 | completion(.failure(Failure.requestError(error)))
| |- warning: capture of 'completion' with non-sendable type '(Result<[EUDCC.TrustCertificate], any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
100 | }
101 | }
[63/72] Emitting module EUDCCDecoder
[64/72] Compiling EUDCCDecoder EUDCCDecoder.swift
[65/72] Compiling EUDCCValidator EUDCC+ValidationRule+If.swift
[66/72] Compiling EUDCCValidator EUDCC+ValidationRule+ComparisonOperators.swift
[67/72] Compiling EUDCCValidator EUDCC+ValidationRule+LogicalOperators.swift
[68/72] Compiling EUDCCValidator EUDCC+ValidationRule+Defaults.swift
[69/72] Compiling EUDCCVerifier EUDCCVerifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:50:14: warning: associated value 'malformedCertificateKeyID' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC'; this is an error in the Swift 6 language mode
48 | enum Failure: Error {
49 | /// Malformed Certificate KeyID from EUDCC
50 | case malformedCertificateKeyID(EUDCC)
| `- warning: associated value 'malformedCertificateKeyID' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC'; this is an error in the Swift 6 language mode
51 | /// TrustService Error
52 | case trustServiceError(Error)
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/EUDCC.swift:6:15: note: struct 'EUDCC' does not conform to the 'Sendable' protocol
4 |
5 | /// The European Digital COVID Certificate (EUCC)
6 | public struct EUDCC: Hashable {
| `- note: struct 'EUDCC' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'EUDCC'
1 | import EUDCC
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'EUDCC'
2 | import Foundation
3 | import Security
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:54:14: warning: associated value 'noMatchingTrustCertificate' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC.TrustCertificate.KeyID'; this is an error in the Swift 6 language mode
52 | case trustServiceError(Error)
53 | /// No matching TrustCertificate for EUDCC KeyID
54 | case noMatchingTrustCertificate(EUDCC.TrustCertificate.KeyID)
| `- warning: associated value 'noMatchingTrustCertificate' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC.TrustCertificate.KeyID'; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Models/EUDCC+TrustCertificate+KeyID.swift:10:12: note: consider making struct 'KeyID' conform to the 'Sendable' protocol
8 |
9 | /// The EUDCC TrustCertificate KeyID
10 | struct KeyID: Codable, Hashable {
| `- note: consider making struct 'KeyID' conform to the 'Sendable' protocol
11 |
12 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:86:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
84 | DispatchQueue.main.async {
85 | // Invoke completion with Verification
86 | completion(verificationResult)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:86:36: warning: sending 'verificationResult' risks causing data races; this is an error in the Swift 6 language mode
84 | DispatchQueue.main.async {
85 | // Invoke completion with Verification
86 | completion(verificationResult)
| |- warning: sending 'verificationResult' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'verificationResult' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
87 | }
88 | }
[70/72] Compiling EUDCCVerifier Data+encodedASN1.swift
[71/72] Compiling EUDCCVerifier EUDCC+Verify.swift
[72/72] Emitting module EUDCCVerifier
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:50:14: warning: associated value 'malformedCertificateKeyID' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC'; this is an error in the Swift 6 language mode
48 | enum Failure: Error {
49 | /// Malformed Certificate KeyID from EUDCC
50 | case malformedCertificateKeyID(EUDCC)
| `- warning: associated value 'malformedCertificateKeyID' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC'; this is an error in the Swift 6 language mode
51 | /// TrustService Error
52 | case trustServiceError(Error)
/Users/admin/builder/spi-builder-workspace/Sources/EUDCC/Models/EUDCC.swift:6:15: note: struct 'EUDCC' does not conform to the 'Sendable' protocol
4 |
5 | /// The European Digital COVID Certificate (EUCC)
6 | public struct EUDCC: Hashable {
| `- note: struct 'EUDCC' does not conform to the 'Sendable' protocol
7 |
8 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'EUDCC'
1 | import EUDCC
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'EUDCC'
2 | import Foundation
3 | import Security
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Verifier/EUDCCVerifier.swift:54:14: warning: associated value 'noMatchingTrustCertificate' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC.TrustCertificate.KeyID'; this is an error in the Swift 6 language mode
52 | case trustServiceError(Error)
53 | /// No matching TrustCertificate for EUDCC KeyID
54 | case noMatchingTrustCertificate(EUDCC.TrustCertificate.KeyID)
| `- warning: associated value 'noMatchingTrustCertificate' of 'Sendable'-conforming enum 'Failure' has non-sendable type 'EUDCC.TrustCertificate.KeyID'; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/EUDCCVerifier/Models/EUDCC+TrustCertificate+KeyID.swift:10:12: note: consider making struct 'KeyID' conform to the 'Sendable' protocol
8 |
9 | /// The EUDCC TrustCertificate KeyID
10 | struct KeyID: Codable, Hashable {
| `- note: consider making struct 'KeyID' conform to the 'Sendable' protocol
11 |
12 | // MARK: Properties
[73/74] Compiling EUDCCKitTests EUDCCKitTests.swift
/Users/admin/builder/spi-builder-workspace/Tests/_EUDCCKitTests/EUDCCKitTests.swift:45:14: warning: call to main actor-isolated instance method 'waitForExpectations(timeout:handler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | /// - timeout: The timeout
34 | /// - test: The test execution
35 | public final func performTest(
| `- note: add '@MainActor' to make instance method 'performTest(name:timeout:test:)' part of global actor 'MainActor'
36 | name: String = "\(#file) L\(#line):\(#column) \(#function)",
37 | timeout: TimeInterval = 10,
:
43 | test(expectation)
44 | // Wait for expectation been fulfilled with custom or default timeout
45 | self.waitForExpectations(
| `- warning: call to main actor-isolated instance method 'waitForExpectations(timeout:handler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | timeout: timeout,
47 | handler: nil
XCTest.XCTestCase.waitForExpectations:2:22: note: calls to instance method 'waitForExpectations(timeout:handler:)' from outside of its actor context are implicitly asynchronous
1 | class XCTestCase {
2 | @MainActor open func waitForExpectations(timeout: TimeInterval, handler: (@Sendable ((any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'waitForExpectations(timeout:handler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Tests/_EUDCCKitTests/EUDCCKitTests.swift:45:14: warning: sending value of non-Sendable type 'EUDCCKitTests' risks causing data races; this is an error in the Swift 6 language mode
43 | test(expectation)
44 | // Wait for expectation been fulfilled with custom or default timeout
45 | self.waitForExpectations(
| |- warning: sending value of non-Sendable type 'EUDCCKitTests' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'EUDCCKitTests' to main actor-isolated instance method 'waitForExpectations(timeout:handler:)' risks causing races in between task-isolated and main actor-isolated uses
46 | timeout: timeout,
47 | handler: nil
[74/74] Emitting module EUDCCKitTests
Build complete! (17.65s)
Build complete.
{
"dependencies" : [
{
"identity" : "swiftcbor",
"requirement" : {
"exact" : [
"0.4.3"
]
},
"type" : "sourceControl",
"url" : "https://github.com/unrelentingtech/SwiftCBOR.git"
}
],
"manifest_display_name" : "EUDCCKit",
"name" : "EUDCCKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "5.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "EUDCC",
"targets" : [
"EUDCC"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EUDCCDecoder",
"targets" : [
"EUDCCDecoder"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EUDCCVerifier",
"targets" : [
"EUDCCVerifier"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EUDCCValidator",
"targets" : [
"EUDCCValidator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EUDCCVerifierTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCVerifierTests",
"path" : "Tests/EUDCCVerifierTests",
"sources" : [
"EUDCCVerifierTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCVerifier",
"module_type" : "SwiftTarget",
"name" : "EUDCCVerifier",
"path" : "Sources/EUDCCVerifier",
"product_dependencies" : [
"SwiftCBOR"
],
"product_memberships" : [
"EUDCCVerifier"
],
"sources" : [
"Extensions/Data+encodedASN1.swift",
"Extensions/EUDCC+Verify.swift",
"Models/EUDCC+SignedPayload.swift",
"Models/EUDCC+TrustCertificate+KeyID.swift",
"Models/EUDCC+TrustCertificate.swift",
"Models/EUDCC+VerificationCandidate.swift",
"TrustService/EUDCCTrustService.swift",
"TrustService/GroupableEUDCCTrustService.swift",
"TrustService/Implementations/EUCentralEUDCCTrustService.swift",
"TrustService/Implementations/RobertKochInstituteEUDCCTrustService.swift",
"Verifier/EUDCCVerifier.swift"
],
"target_dependencies" : [
"EUDCC"
],
"type" : "library"
},
{
"c99name" : "EUDCCValidatorTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCValidatorTests",
"path" : "Tests/EUDCCValidatorTests",
"sources" : [
"EUDCCValidatorTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCValidator",
"module_type" : "SwiftTarget",
"name" : "EUDCCValidator",
"path" : "Sources/EUDCCValidator",
"product_memberships" : [
"EUDCCValidator"
],
"sources" : [
"Extensions/EUDCC+Validate.swift",
"Models/EUDCC+ValidationRule+CompareAgainst.swift",
"Models/EUDCC+ValidationRule+ComparisonOperators.swift",
"Models/EUDCC+ValidationRule+Defaults.swift",
"Models/EUDCC+ValidationRule+If.swift",
"Models/EUDCC+ValidationRule+LogicalOperators.swift",
"Models/EUDCC+ValidationRule+Tag.swift",
"Models/EUDCC+ValidationRule.swift",
"Validator/EUDCCValidator.swift"
],
"target_dependencies" : [
"EUDCC"
],
"type" : "library"
},
{
"c99name" : "EUDCCTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCTests",
"path" : "Tests/EUDCCTests",
"sources" : [
"EUDCCTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCKitTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCKitTests",
"path" : "Tests/_EUDCCKitTests",
"sources" : [
"EUDCCKitTests.swift"
],
"target_dependencies" : [
"EUDCC",
"EUDCCDecoder",
"EUDCCValidator",
"EUDCCVerifier"
],
"type" : "library"
},
{
"c99name" : "EUDCCDecoderTests",
"module_type" : "SwiftTarget",
"name" : "EUDCCDecoderTests",
"path" : "Tests/EUDCCDecoderTests",
"sources" : [
"EUDCCDecoderTests.swift"
],
"target_dependencies" : [
"EUDCCKitTests"
],
"type" : "test"
},
{
"c99name" : "EUDCCDecoder",
"module_type" : "SwiftTarget",
"name" : "EUDCCDecoder",
"path" : "Sources/EUDCCDecoder",
"product_dependencies" : [
"SwiftCBOR"
],
"product_memberships" : [
"EUDCCDecoder"
],
"sources" : [
"Decoder/EUDCCDecoder.swift",
"Extension/CBOR+DictionaryRepresentation.swift",
"Extension/Data+Base45.swift",
"Extension/Data+Compression.swift",
"Extension/EUDCC+Decode.swift"
],
"target_dependencies" : [
"EUDCC"
],
"type" : "library"
},
{
"c99name" : "EUDCC",
"module_type" : "SwiftTarget",
"name" : "EUDCC",
"path" : "Sources/EUDCC",
"product_memberships" : [
"EUDCC",
"EUDCCDecoder",
"EUDCCVerifier",
"EUDCCValidator"
],
"sources" : [
"DateFormatter/AnyDateFormatter.swift",
"DateFormatter/EUDCCDateFormatter.swift",
"DateFormatter/EUDCCTimestampFormatter.swift",
"Extensions/Codable+DateFormatter.swift",
"Models/EUDCC+Codable.swift",
"Models/EUDCC+Content.swift",
"Models/EUDCC+Country.swift",
"Models/EUDCC+CryptographicSignature.swift",
"Models/EUDCC+DiseaseAgentTargeted.swift",
"Models/EUDCC+Name.swift",
"Models/EUDCC.swift",
"Models/Recovery/EUDCC+Recovery.swift",
"Models/Test/EUDCC+Test+TestResult.swift",
"Models/Test/EUDCC+Test+TestType.swift",
"Models/Test/EUDCC+Test.swift",
"Models/Vaccination/EUDCC+Vaccination+VaccineMarketingAuthorizationHolder.swift",
"Models/Vaccination/EUDCC+Vaccination+VaccineMedicinalProduct.swift",
"Models/Vaccination/EUDCC+Vaccination+VaccineOrProphylaxis.swift",
"Models/Vaccination/EUDCC+Vaccination.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.