Build Information
Successful build of PersistentHistoryTrackingKit, reference main (697620
), with Swift 6.1 for macOS (SPM) on 23 Aug 2025 00:12:04 UTC.
Swift 6 data race errors: 0
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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fatbobman/PersistentHistoryTrackingKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatbobman/PersistentHistoryTrackingKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6976209 将原 performAndWait 改成 performAndWaitWithResult 以解决 Xcode 26 beta 5 后的兼容性问题
Cloned https://github.com/fatbobman/PersistentHistoryTrackingKit.git
Revision (git rev-parse @):
6976209cd3da925177cd70f411f3f6d1164729ba
SUCCESS checkout https://github.com/fatbobman/PersistentHistoryTrackingKit.git at main
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-collections.git from cache
[1/5133] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.16s)
Computing version for https://github.com/apple/swift-async-algorithms
Fetched https://github.com/apple/swift-collections.git from cache (1.17s)
Computed https://github.com/apple/swift-async-algorithms at 1.0.4 (1.75s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.59s)
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
========================================
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": "persistenthistorytrackingkit",
"name": "PersistentHistoryTrackingKit",
"url": "https://github.com/fatbobman/PersistentHistoryTrackingKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PersistentHistoryTrackingKit",
"dependencies": [
{
"identity": "swift-async-algorithms",
"name": "swift-async-algorithms",
"url": "https://github.com/apple/swift-async-algorithms",
"version": "1.0.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-async-algorithms",
"dependencies": [
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/fatbobman/PersistentHistoryTrackingKit.git
[6/543] Fetching persistenthistorytrackingkit
Fetched https://github.com/fatbobman/PersistentHistoryTrackingKit.git from cache (0.74s)
Fetching https://github.com/apple/swift-async-algorithms from cache
Fetched https://github.com/apple/swift-async-algorithms from cache (0.50s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.0.4 (1.03s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.55s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.60s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
Creating working copy for https://github.com/fatbobman/PersistentHistoryTrackingKit.git
Working copy of https://github.com/fatbobman/PersistentHistoryTrackingKit.git resolved at main (6976209)
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.0.4
warning: '.resolve-product-dependencies': dependency 'persistenthistorytrackingkit' is not used by any target
Found 1 product dependencies
- swift-async-algorithms
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/fatbobman/PersistentHistoryTrackingKit.git
https://github.com/fatbobman/PersistentHistoryTrackingKit.git
{
"dependencies" : [
{
"identity" : "swift-async-algorithms",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-async-algorithms"
}
],
"manifest_display_name" : "PersistentHistoryTrackingKit",
"name" : "PersistentHistoryTrackingKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "PersistentHistoryTrackingKit",
"targets" : [
"PersistentHistoryTrackingKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PersistentHistoryTrackingKitTests",
"module_type" : "SwiftTarget",
"name" : "PersistentHistoryTrackingKitTests",
"path" : "Tests/PersistentHistoryTrackingKitTests",
"sources" : [
"CleanStrategyTests.swift",
"CleanerTests.swift",
"FetcherTests.swift",
"LoggerTests.swift",
"MergerTests.swift",
"PersistentHistoryTrackingKitTests.swift",
"TestsHelper/CoreDataStackHelper.swift",
"TestsHelper/Extension.swift",
"TimestampManagerTests.swift"
],
"target_dependencies" : [
"PersistentHistoryTrackingKit"
],
"type" : "test"
},
{
"c99name" : "PersistentHistoryTrackingKit",
"module_type" : "SwiftTarget",
"name" : "PersistentHistoryTrackingKit",
"path" : "Sources/PersistentHistoryTrackingKit",
"product_dependencies" : [
"AsyncAlgorithms"
],
"product_memberships" : [
"PersistentHistoryTrackingKit"
],
"sources" : [
"CleanStrategy.swift",
"Cleaner.swift",
"DefaultLogger.swift",
"Extensions.swift",
"Fetcher.swift",
"Merger.swift",
"PersistentHistoryTrackingKit.swift",
"Protocol/CleanerProtocol.swift",
"Protocol/DeduplicatorProtocol.swift",
"Protocol/FetcherProtocol.swift",
"Protocol/LoggerProtocol.swift",
"Protocol/MergerProtocol.swift",
"Protocol/TransactionTimestampManagerProtocol.swift",
"TransactionTimestampManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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/6] Write sources
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/20] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[8/21] Compiling InternalCollectionsUtilities Debugging.swift
[9/21] Compiling InternalCollectionsUtilities Descriptions.swift
[10/21] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[11/21] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[12/21] Compiling InternalCollectionsUtilities _SortedCollection.swift
[13/21] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[14/21] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[15/21] Compiling InternalCollectionsUtilities UInt+reversed.swift
[16/21] Emitting module InternalCollectionsUtilities
[17/21] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[18/21] Compiling InternalCollectionsUtilities Integer rank.swift
[19/21] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[20/21] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[21/21] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[22/93] Compiling DequeModule _DequeBufferHeader.swift
[23/94] Compiling DequeModule _DequeSlot.swift
[24/94] Compiling DequeModule _DequeBuffer.swift
[25/94] Compiling DequeModule _UnsafeWrappedBuffer.swift
[26/94] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[27/94] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[28/94] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[29/94] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[30/94] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[31/94] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[32/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[33/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[34/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[35/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[36/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[37/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[38/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[39/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[40/100] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[41/100] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[42/100] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[43/100] Compiling OrderedCollections OrderedSet+Sendable.swift
[44/100] Compiling OrderedCollections _HashTable+Testing.swift
[45/100] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[46/100] Compiling OrderedCollections _HashTable+Constants.swift
[47/100] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[48/100] Compiling OrderedCollections _HashTable+Bucket.swift
[49/100] Compiling OrderedCollections _HashTable+BucketIterator.swift
[50/100] Compiling OrderedCollections _HashTable.swift
[51/100] Compiling OrderedCollections OrderedDictionary+Elements.swift
[52/100] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[53/100] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[54/100] Compiling OrderedCollections OrderedSet+Hashable.swift
[55/100] Compiling OrderedCollections OrderedSet+Initializers.swift
[56/100] Compiling OrderedCollections OrderedSet+Insertions.swift
[57/100] Compiling OrderedCollections OrderedSet+Invariants.swift
[58/100] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[59/100] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[60/100] Compiling OrderedCollections OrderedSet+Codable.swift
[61/100] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[62/100] Compiling OrderedCollections OrderedSet+Descriptions.swift
[63/100] Compiling OrderedCollections OrderedSet+Diffing.swift
[64/100] Compiling OrderedCollections OrderedSet+Equatable.swift
[65/100] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[66/100] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[67/100] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[68/100] Emitting module DequeModule
[69/100] Compiling OrderedCollections _Hashtable+Header.swift
[70/100] Compiling OrderedCollections OrderedDictionary+Codable.swift
[71/100] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[72/100] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[73/100] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[74/100] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[80/100] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[81/100] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[82/100] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[83/100] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[84/100] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[85/100] Compiling OrderedCollections OrderedDictionary+Values.swift
[86/100] Compiling OrderedCollections OrderedDictionary.swift
[94/100] Compiling OrderedCollections OrderedSet+SubSequence.swift
[95/100] Compiling OrderedCollections OrderedSet+Testing.swift
[96/100] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[97/100] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[98/100] Compiling OrderedCollections OrderedSet.swift
[99/100] Compiling OrderedCollections _UnsafeBitset.swift
[100/100] Emitting module OrderedCollections
[101/146] Emitting module AsyncAlgorithms
[102/151] Compiling AsyncAlgorithms AsyncChunkedOnProjectionSequence.swift
[103/151] Compiling AsyncAlgorithms AsyncChunksOfCountOrSignalSequence.swift
[104/151] Compiling AsyncAlgorithms AsyncChunksOfCountSequence.swift
[105/151] Compiling AsyncAlgorithms AsyncCompactedSequence.swift
[106/151] Compiling AsyncAlgorithms AsyncExclusiveReductionsSequence.swift
[107/151] Compiling AsyncAlgorithms MergeStateMachine.swift
[108/151] Compiling AsyncAlgorithms MergeStorage.swift
[109/151] Compiling AsyncAlgorithms RangeReplaceableCollection.swift
[110/151] Compiling AsyncAlgorithms Rethrow.swift
[111/151] Compiling AsyncAlgorithms SetAlgebra.swift
[112/151] Compiling AsyncAlgorithms BoundedBufferStateMachine.swift
[113/151] Compiling AsyncAlgorithms BoundedBufferStorage.swift
[114/151] Compiling AsyncAlgorithms UnboundedBufferStateMachine.swift
[115/151] Compiling AsyncAlgorithms UnboundedBufferStorage.swift
[116/151] Compiling AsyncAlgorithms AsyncChannel.swift
[117/151] Compiling AsyncAlgorithms AsyncInclusiveReductionsSequence.swift
[118/151] Compiling AsyncAlgorithms AsyncJoinedBySeparatorSequence.swift
[119/151] Compiling AsyncAlgorithms AsyncJoinedSequence.swift
[120/151] Compiling AsyncAlgorithms AsyncRemoveDuplicatesSequence.swift
[121/151] Compiling AsyncAlgorithms AsyncSyncSequence.swift
[122/151] Compiling AsyncAlgorithms AsyncAdjacentPairsSequence.swift
[123/151] Compiling AsyncAlgorithms AsyncBufferedByteIterator.swift
[124/151] Compiling AsyncAlgorithms AsyncChain2Sequence.swift
[125/151] Compiling AsyncAlgorithms AsyncChain3Sequence.swift
[126/151] Compiling AsyncAlgorithms AsyncChunkedByGroupSequence.swift
[127/151] Compiling AsyncAlgorithms AsyncThrottleSequence.swift
[128/151] Compiling AsyncAlgorithms AsyncThrowingExclusiveReductionsSequence.swift
[129/151] Compiling AsyncAlgorithms AsyncThrowingInclusiveReductionsSequence.swift
[130/151] Compiling AsyncAlgorithms AsyncTimerSequence.swift
[131/151] Compiling AsyncAlgorithms AsyncBufferSequence.swift
[132/151] Compiling AsyncAlgorithms AsyncThrowingChannel.swift
[133/151] Compiling AsyncAlgorithms ChannelStateMachine.swift
[134/151] Compiling AsyncAlgorithms ChannelStorage.swift
[135/151] Compiling AsyncAlgorithms AsyncCombineLatest2Sequence.swift
[136/151] Compiling AsyncAlgorithms AsyncCombineLatest3Sequence.swift
[137/151] Compiling AsyncAlgorithms Dictionary.swift
[138/151] Compiling AsyncAlgorithms AsyncInterspersedSequence.swift
[139/151] Compiling AsyncAlgorithms Locking.swift
[140/151] Compiling AsyncAlgorithms AsyncMerge2Sequence.swift
[141/151] Compiling AsyncAlgorithms AsyncMerge3Sequence.swift
[142/151] Compiling AsyncAlgorithms UnsafeTransfer.swift
[143/151] Compiling AsyncAlgorithms AsyncZip2Sequence.swift
[144/151] Compiling AsyncAlgorithms AsyncZip3Sequence.swift
[145/151] Compiling AsyncAlgorithms ZipStateMachine.swift
[146/151] Compiling AsyncAlgorithms ZipStorage.swift
[147/151] Compiling AsyncAlgorithms CombineLatestStateMachine.swift
[148/151] Compiling AsyncAlgorithms CombineLatestStorage.swift
[149/151] Compiling AsyncAlgorithms AsyncDebounceSequence.swift
[150/151] Compiling AsyncAlgorithms DebounceStateMachine.swift
[151/151] Compiling AsyncAlgorithms DebounceStorage.swift
[152/165] Compiling PersistentHistoryTrackingKit TransactionTimestampManagerProtocol.swift
[153/165] Compiling PersistentHistoryTrackingKit DeduplicatorProtocol.swift
[154/165] Compiling PersistentHistoryTrackingKit LoggerProtocol.swift
[155/165] Compiling PersistentHistoryTrackingKit MergerProtocol.swift
[156/166] Compiling PersistentHistoryTrackingKit FetcherProtocol.swift
[157/166] Compiling PersistentHistoryTrackingKit PersistentHistoryTrackingKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:382:1: warning: extension declares a conformance of imported type 'Notification' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
380 | }
381 |
382 | extension Notification:@unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'Notification' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
383 |
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:91:45: warning: type 'AsyncPublisher<NotificationCenter.Publisher>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
89 | object: coordinator
90 | )
91 | for await _ in publisher.values.buffer(policy: .unbounded) where !Task.isCancelled {
| `- warning: type 'AsyncPublisher<NotificationCenter.Publisher>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | sendMessage(type: .info,
93 | level: 2,
Combine.AsyncPublisher:2:15: note: generic struct 'AsyncPublisher' does not conform to the 'Sendable' protocol
1 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
2 | public struct AsyncPublisher<P> : AsyncSequence where P : Publisher, P.Failure == Never {
| `- note: generic struct 'AsyncPublisher' does not conform to the 'Sendable' protocol
3 | public typealias Element = P.Output
4 | public struct Iterator : AsyncIteratorProtocol {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:84:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
82 | /// 通过将持久化历史跟踪记录的通知转换成异步序列,实现了逐个处理的机制。
83 | func createTransactionProcessingTask() -> Task<Void, Never> {
84 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
85 | sendMessage(type: .info, level: 1, message: "Persistent History Track Kit Start")
| `- note: closure captures 'self' which is accessible to code in the current task
86 | // 响应 notification
87 | let publisher = NotificationCenter.default.publisher(
[158/166] Compiling PersistentHistoryTrackingKit CleanerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:382:1: warning: extension declares a conformance of imported type 'Notification' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
380 | }
381 |
382 | extension Notification:@unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'Notification' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
383 |
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:91:45: warning: type 'AsyncPublisher<NotificationCenter.Publisher>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
89 | object: coordinator
90 | )
91 | for await _ in publisher.values.buffer(policy: .unbounded) where !Task.isCancelled {
| `- warning: type 'AsyncPublisher<NotificationCenter.Publisher>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | sendMessage(type: .info,
93 | level: 2,
Combine.AsyncPublisher:2:15: note: generic struct 'AsyncPublisher' does not conform to the 'Sendable' protocol
1 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
2 | public struct AsyncPublisher<P> : AsyncSequence where P : Publisher, P.Failure == Never {
| `- note: generic struct 'AsyncPublisher' does not conform to the 'Sendable' protocol
3 | public typealias Element = P.Output
4 | public struct Iterator : AsyncIteratorProtocol {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:84:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
82 | /// 通过将持久化历史跟踪记录的通知转换成异步序列,实现了逐个处理的机制。
83 | func createTransactionProcessingTask() -> Task<Void, Never> {
84 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
85 | sendMessage(type: .info, level: 1, message: "Persistent History Track Kit Start")
| `- note: closure captures 'self' which is accessible to code in the current task
86 | // 响应 notification
87 | let publisher = NotificationCenter.default.publisher(
[159/166] Compiling PersistentHistoryTrackingKit Fetcher.swift
[160/166] Compiling PersistentHistoryTrackingKit Merger.swift
[161/166] Compiling PersistentHistoryTrackingKit CleanStrategy.swift
[162/166] Compiling PersistentHistoryTrackingKit Cleaner.swift
[163/166] Emitting module PersistentHistoryTrackingKit
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/PersistentHistoryTrackingKit.swift:382:1: warning: extension declares a conformance of imported type 'Notification' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
380 | }
381 |
382 | extension Notification:@unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'Notification' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
383 |
[164/166] Compiling PersistentHistoryTrackingKit DefaultLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/Extensions.swift:63:34: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
61 | subscription = upstream
62 | .sink(receiveValue: { value in
63 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
64 | })
65 | }
[165/166] Compiling PersistentHistoryTrackingKit Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistentHistoryTrackingKit/Extensions.swift:63:34: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
61 | subscription = upstream
62 | .sink(receiveValue: { value in
63 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
64 | })
65 | }
[166/166] Compiling PersistentHistoryTrackingKit TransactionTimestampManager.swift
Build complete! (9.47s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-async-algorithms",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-async-algorithms"
}
],
"manifest_display_name" : "PersistentHistoryTrackingKit",
"name" : "PersistentHistoryTrackingKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "PersistentHistoryTrackingKit",
"targets" : [
"PersistentHistoryTrackingKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PersistentHistoryTrackingKitTests",
"module_type" : "SwiftTarget",
"name" : "PersistentHistoryTrackingKitTests",
"path" : "Tests/PersistentHistoryTrackingKitTests",
"sources" : [
"CleanStrategyTests.swift",
"CleanerTests.swift",
"FetcherTests.swift",
"LoggerTests.swift",
"MergerTests.swift",
"PersistentHistoryTrackingKitTests.swift",
"TestsHelper/CoreDataStackHelper.swift",
"TestsHelper/Extension.swift",
"TimestampManagerTests.swift"
],
"target_dependencies" : [
"PersistentHistoryTrackingKit"
],
"type" : "test"
},
{
"c99name" : "PersistentHistoryTrackingKit",
"module_type" : "SwiftTarget",
"name" : "PersistentHistoryTrackingKit",
"path" : "Sources/PersistentHistoryTrackingKit",
"product_dependencies" : [
"AsyncAlgorithms"
],
"product_memberships" : [
"PersistentHistoryTrackingKit"
],
"sources" : [
"CleanStrategy.swift",
"Cleaner.swift",
"DefaultLogger.swift",
"Extensions.swift",
"Fetcher.swift",
"Merger.swift",
"PersistentHistoryTrackingKit.swift",
"Protocol/CleanerProtocol.swift",
"Protocol/DeduplicatorProtocol.swift",
"Protocol/FetcherProtocol.swift",
"Protocol/LoggerProtocol.swift",
"Protocol/MergerProtocol.swift",
"Protocol/TransactionTimestampManagerProtocol.swift",
"TransactionTimestampManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.