Build Information
Successful build of YSwift, reference 0.2.1 (8c25f0
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 20:55:33 UTC.
Swift 6 data race errors: 14
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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/y-crdt/yswift.git
Reference: 0.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/y-crdt/yswift
* tag 0.2.1 -> FETCH_HEAD
HEAD is now at 8c25f08 updating package for 0.2.1 release
Cloned https://github.com/y-crdt/yswift.git
Revision (git rev-parse @):
8c25f088fcccfc3c428c37ac9206a297d031f1c5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/y-crdt/yswift.git at 0.2.1
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.27s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.54s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3188] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.56s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1369/12023644] Downloading https://github.com/y-crdt/yswift/releases/download/0.2.1/yniffiFFI.xcframework.zip
Downloading binary artifact https://github.com/y-crdt/yswift/releases/download/0.2.1/yniffiFFI.xcframework.zip
Downloaded https://github.com/y-crdt/yswift/releases/download/0.2.1/yniffiFFI.xcframework.zip (1.52s)
========================================
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": "yswift",
"name": "YSwift",
"url": "https://github.com/y-crdt/yswift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/yswift",
"dependencies": [
]
}
]
}
Fetching https://github.com/y-crdt/yswift.git
[1/2656] Fetching yswift
Fetched https://github.com/y-crdt/yswift.git from cache (1.28s)
Creating working copy for https://github.com/y-crdt/yswift.git
Working copy of https://github.com/y-crdt/yswift.git resolved at 0.2.1 (8c25f08)
Fetching binary artifact https://github.com/y-crdt/yswift/releases/download/0.2.1/yniffiFFI.xcframework.zip from cache
Fetched https://github.com/y-crdt/yswift/releases/download/0.2.1/yniffiFFI.xcframework.zip from cache (0.46s)
warning: '.resolve-product-dependencies': dependency 'yswift' 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/y-crdt/yswift.git
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "YSwift",
"name" : "YSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "YSwift",
"targets" : [
"YSwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SyncExample",
"targets" : [
"SyncExample"
],
"type" : {
"snippet" : null
}
}
],
"targets" : [
{
"c99name" : "yniffiFFI",
"module_type" : "BinaryTarget",
"name" : "yniffiFFI",
"path" : "remote/archive/yniffiFFI.xcframework.zip",
"product_memberships" : [
"YSwift",
"SyncExample"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "Yniffi",
"module_type" : "SwiftTarget",
"name" : "Yniffi",
"path" : "lib/swift/scaffold",
"product_memberships" : [
"YSwift",
"SyncExample"
],
"sources" : [
"yniffi.swift"
],
"target_dependencies" : [
"yniffiFFI"
],
"type" : "library"
},
{
"c99name" : "YSwiftTests",
"module_type" : "SwiftTarget",
"name" : "YSwiftTests",
"path" : "Tests/YSwiftTests",
"sources" : [
"Helpers.swift",
"YArrayTests.swift",
"YDocumentTests.swift",
"YMapTests.swift",
"YSubscriptionTests.swift",
"YTextTests.swift",
"YUndoManagerTests.swift"
],
"target_dependencies" : [
"YSwift"
],
"type" : "test"
},
{
"c99name" : "YSwift",
"module_type" : "SwiftTarget",
"name" : "YSwift",
"path" : "Sources/YSwift",
"product_memberships" : [
"YSwift",
"SyncExample"
],
"sources" : [
"Coder.swift",
"Origin.swift",
"Transactable.swift",
"YArray.swift",
"YDocument.swift",
"YMap.swift",
"YProtocol.swift",
"YSubscription.swift",
"YText.swift",
"YUndoManager.swift"
],
"target_dependencies" : [
"Yniffi"
],
"type" : "library"
},
{
"c99name" : "SyncExample",
"module_type" : "SwiftTarget",
"name" : "SyncExample",
"path" : "Snippets",
"product_memberships" : [
"SyncExample"
],
"sources" : [
"SyncExample.swift"
],
"target_dependencies" : [
"YSwift"
],
"type" : "snippet"
}
],
"tools_version" : "5.6"
}
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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/9] Write sources
[5/9] Copying libuniffi_yniffi.a
[6/9] Write swift-version--7754E27361AE5C74.txt
[8/11] Compiling Yniffi yniffi.swift
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2117:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2115 | // Create the VTable using a series of closures.
2116 | // Swift automatically converts these into C callback functions.
2117 | static var vtable: UniffiVTableCallbackInterfaceYrsArrayEachDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2118 | call: { (
2119 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2156:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2154 | // FfiConverter protocol for callback interfaces
2155 | private enum FfiConverterCallbackInterfaceYrsArrayEachDelegate {
2156 | fileprivate static var handleMap = UniffiHandleMap<YrsArrayEachDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2157 | }
2158 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2189:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2187 | // Create the VTable using a series of closures.
2188 | // Swift automatically converts these into C callback functions.
2189 | static var vtable: UniffiVTableCallbackInterfaceYrsArrayObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2190 | call: { (
2191 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2228:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2226 | // FfiConverter protocol for callback interfaces
2227 | private enum FfiConverterCallbackInterfaceYrsArrayObservationDelegate {
2228 | fileprivate static var handleMap = UniffiHandleMap<YrsArrayObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2229 | }
2230 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2261:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2259 | // Create the VTable using a series of closures.
2260 | // Swift automatically converts these into C callback functions.
2261 | static var vtable: UniffiVTableCallbackInterfaceYrsMapIteratorDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2262 | call: { (
2263 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2300:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2298 | // FfiConverter protocol for callback interfaces
2299 | private enum FfiConverterCallbackInterfaceYrsMapIteratorDelegate {
2300 | fileprivate static var handleMap = UniffiHandleMap<YrsMapIteratorDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2301 | }
2302 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2333:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2331 | // Create the VTable using a series of closures.
2332 | // Swift automatically converts these into C callback functions.
2333 | static var vtable: UniffiVTableCallbackInterfaceYrsMapKvIteratorDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2334 | call: { (
2335 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2374:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2372 | // FfiConverter protocol for callback interfaces
2373 | private enum FfiConverterCallbackInterfaceYrsMapKvIteratorDelegate {
2374 | fileprivate static var handleMap = UniffiHandleMap<YrsMapKvIteratorDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2375 | }
2376 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2407:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2405 | // Create the VTable using a series of closures.
2406 | // Swift automatically converts these into C callback functions.
2407 | static var vtable: UniffiVTableCallbackInterfaceYrsMapObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2408 | call: { (
2409 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2446:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2444 | // FfiConverter protocol for callback interfaces
2445 | private enum FfiConverterCallbackInterfaceYrsMapObservationDelegate {
2446 | fileprivate static var handleMap = UniffiHandleMap<YrsMapObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2447 | }
2448 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2479:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2477 | // Create the VTable using a series of closures.
2478 | // Swift automatically converts these into C callback functions.
2479 | static var vtable: UniffiVTableCallbackInterfaceYrsTextObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2480 | call: { (
2481 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2518:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2516 | // FfiConverter protocol for callback interfaces
2517 | private enum FfiConverterCallbackInterfaceYrsTextObservationDelegate {
2518 | fileprivate static var handleMap = UniffiHandleMap<YrsTextObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2519 | }
2520 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2551:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2549 | // Create the VTable using a series of closures.
2550 | // Swift automatically converts these into C callback functions.
2551 | static var vtable: UniffiVTableCallbackInterfaceYrsUndoManagerObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2552 | call: { (
2553 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2592:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2590 | // FfiConverter protocol for callback interfaces
2591 | private enum FfiConverterCallbackInterfaceYrsUndoManagerObservationDelegate {
2592 | fileprivate static var handleMap = UniffiHandleMap<YrsUndoManagerObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2593 | }
2594 |
[9/11] Emitting module Yniffi
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2117:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2115 | // Create the VTable using a series of closures.
2116 | // Swift automatically converts these into C callback functions.
2117 | static var vtable: UniffiVTableCallbackInterfaceYrsArrayEachDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2118 | call: { (
2119 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2156:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2154 | // FfiConverter protocol for callback interfaces
2155 | private enum FfiConverterCallbackInterfaceYrsArrayEachDelegate {
2156 | fileprivate static var handleMap = UniffiHandleMap<YrsArrayEachDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2157 | }
2158 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2189:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2187 | // Create the VTable using a series of closures.
2188 | // Swift automatically converts these into C callback functions.
2189 | static var vtable: UniffiVTableCallbackInterfaceYrsArrayObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2190 | call: { (
2191 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2228:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2226 | // FfiConverter protocol for callback interfaces
2227 | private enum FfiConverterCallbackInterfaceYrsArrayObservationDelegate {
2228 | fileprivate static var handleMap = UniffiHandleMap<YrsArrayObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2229 | }
2230 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2261:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2259 | // Create the VTable using a series of closures.
2260 | // Swift automatically converts these into C callback functions.
2261 | static var vtable: UniffiVTableCallbackInterfaceYrsMapIteratorDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2262 | call: { (
2263 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2300:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2298 | // FfiConverter protocol for callback interfaces
2299 | private enum FfiConverterCallbackInterfaceYrsMapIteratorDelegate {
2300 | fileprivate static var handleMap = UniffiHandleMap<YrsMapIteratorDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2301 | }
2302 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2333:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2331 | // Create the VTable using a series of closures.
2332 | // Swift automatically converts these into C callback functions.
2333 | static var vtable: UniffiVTableCallbackInterfaceYrsMapKvIteratorDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2334 | call: { (
2335 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2374:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2372 | // FfiConverter protocol for callback interfaces
2373 | private enum FfiConverterCallbackInterfaceYrsMapKvIteratorDelegate {
2374 | fileprivate static var handleMap = UniffiHandleMap<YrsMapKvIteratorDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2375 | }
2376 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2407:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2405 | // Create the VTable using a series of closures.
2406 | // Swift automatically converts these into C callback functions.
2407 | static var vtable: UniffiVTableCallbackInterfaceYrsMapObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2408 | call: { (
2409 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2446:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2444 | // FfiConverter protocol for callback interfaces
2445 | private enum FfiConverterCallbackInterfaceYrsMapObservationDelegate {
2446 | fileprivate static var handleMap = UniffiHandleMap<YrsMapObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2447 | }
2448 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2479:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2477 | // Create the VTable using a series of closures.
2478 | // Swift automatically converts these into C callback functions.
2479 | static var vtable: UniffiVTableCallbackInterfaceYrsTextObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2480 | call: { (
2481 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2518:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2516 | // FfiConverter protocol for callback interfaces
2517 | private enum FfiConverterCallbackInterfaceYrsTextObservationDelegate {
2518 | fileprivate static var handleMap = UniffiHandleMap<YrsTextObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2519 | }
2520 |
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2551:16: warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2549 | // Create the VTable using a series of closures.
2550 | // Swift automatically converts these into C callback functions.
2551 | static var vtable: UniffiVTableCallbackInterfaceYrsUndoManagerObservationDelegate = .init(
| |- warning: static property 'vtable' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vtable' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'vtable' 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
2552 | call: { (
2553 | uniffiHandle: UInt64,
/Users/admin/builder/spi-builder-workspace/lib/swift/scaffold/yniffi.swift:2592:28: warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2590 | // FfiConverter protocol for callback interfaces
2591 | private enum FfiConverterCallbackInterfaceYrsUndoManagerObservationDelegate {
2592 | fileprivate static var handleMap = UniffiHandleMap<YrsUndoManagerObservationDelegate>()
| |- warning: static property 'handleMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handleMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'handleMap' 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
2593 | }
2594 |
[10/21] Compiling YSwift YText.swift
[11/21] Compiling YSwift YSubscription.swift
[12/22] Compiling YSwift YProtocol.swift
[13/22] Compiling YSwift YDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/YSwift/YDocument.swift:64:30: warning: capture of 'self' with non-sendable type 'YDocument?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
3 |
4 | /// YDocument holds YSwift shared data types and coordinates collaboration and changes.
5 | public final class YDocument {
| `- note: class 'YDocument' does not conform to the 'Sendable' protocol
6 | private let document: YrsDoc
7 | /// Multiple `YDocument` instances are supported. Because `label` is required only for debugging purposes.
:
62 | public func transactAsync<T>(_ origin: Origin? = nil, _ changes: @escaping (YrsTransaction) -> T, completion: @escaping (T) -> Void) {
63 | transactionQueue.async { [weak self] in
64 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'YDocument?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | let transaction = self.document.transact(origin: origin?.origin)
66 | defer {
/Users/admin/builder/spi-builder-workspace/Sources/YSwift/YDocument.swift:69:26: warning: capture of 'changes' with non-sendable type '(YrsTransaction) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | transaction.free()
68 | }
69 | let result = changes(transaction)
| |- warning: capture of 'changes' with non-sendable type '(YrsTransaction) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
70 | completion(result)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/YSwift/YDocument.swift:70:13: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | }
69 | let result = changes(transaction)
70 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/YSwift/YDocument.swift:54:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
52 | await withCheckedContinuation { continuation in
53 | transactAsync(origin, changes) { result in
54 | continuation.resume(returning: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
55 | }
56 | }
[14/22] Compiling YSwift YMap.swift
[15/22] Compiling YSwift Coder.swift
[16/22] Compiling YSwift Origin.swift
[17/22] Emitting module YSwift
[18/22] Compiling YSwift Transactable.swift
[19/22] Compiling YSwift YArray.swift
[20/22] Compiling YSwift YUndoManager.swift
[21/24] Compiling SyncExample SyncExample.swift
[22/24] Emitting module SyncExample
[22/24] Write Objects.LinkFileList
[23/24] Linking SyncExample
Build complete! (19.63s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "YSwift",
"name" : "YSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "YSwift",
"targets" : [
"YSwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SyncExample",
"targets" : [
"SyncExample"
],
"type" : {
"snippet" : null
}
}
],
"targets" : [
{
"c99name" : "yniffiFFI",
"module_type" : "BinaryTarget",
"name" : "yniffiFFI",
"path" : "remote/archive/yniffiFFI.xcframework.zip",
"product_memberships" : [
"YSwift",
"SyncExample"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "Yniffi",
"module_type" : "SwiftTarget",
"name" : "Yniffi",
"path" : "lib/swift/scaffold",
"product_memberships" : [
"YSwift",
"SyncExample"
],
"sources" : [
"yniffi.swift"
],
"target_dependencies" : [
"yniffiFFI"
],
"type" : "library"
},
{
"c99name" : "YSwiftTests",
"module_type" : "SwiftTarget",
"name" : "YSwiftTests",
"path" : "Tests/YSwiftTests",
"sources" : [
"Helpers.swift",
"YArrayTests.swift",
"YDocumentTests.swift",
"YMapTests.swift",
"YSubscriptionTests.swift",
"YTextTests.swift",
"YUndoManagerTests.swift"
],
"target_dependencies" : [
"YSwift"
],
"type" : "test"
},
{
"c99name" : "YSwift",
"module_type" : "SwiftTarget",
"name" : "YSwift",
"path" : "Sources/YSwift",
"product_memberships" : [
"YSwift",
"SyncExample"
],
"sources" : [
"Coder.swift",
"Origin.swift",
"Transactable.swift",
"YArray.swift",
"YDocument.swift",
"YMap.swift",
"YProtocol.swift",
"YSubscription.swift",
"YText.swift",
"YUndoManager.swift"
],
"target_dependencies" : [
"Yniffi"
],
"type" : "library"
},
{
"c99name" : "SyncExample",
"module_type" : "SwiftTarget",
"name" : "SyncExample",
"path" : "Snippets",
"product_memberships" : [
"SyncExample"
],
"sources" : [
"SyncExample.swift"
],
"target_dependencies" : [
"YSwift"
],
"type" : "snippet"
}
],
"tools_version" : "5.6"
}
Done.