The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SourceView, reference main (53dc51), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 11:11:36 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/SourceView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/SourceView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 53dc51b Making command processors public
Cloned https://github.com/ChimeHQ/SourceView.git
Revision (git rev-parse @):
53dc51befb131a6eced5f965453e7e9f32750d8c
SUCCESS checkout https://github.com/ChimeHQ/SourceView.git at main
========================================
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": "sourceview",
      "name": "SourceView",
      "url": "https://github.com/ChimeHQ/SourceView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SourceView",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ChimeHQ/SourceView.git
[1/83] Fetching sourceview
Fetched https://github.com/ChimeHQ/SourceView.git from cache (0.73s)
Creating working copy for https://github.com/ChimeHQ/SourceView.git
Working copy of https://github.com/ChimeHQ/SourceView.git resolved at main (53dc51b)
warning: '.resolve-product-dependencies': dependency 'sourceview' 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/ChimeHQ/SourceView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling SourceView WhitespaceDisplayMode.swift
[4/12] Compiling SourceView TextCommandProcessor.swift
[5/12] Compiling SourceView NSTextView+Behavior.swift
[6/12] Emitting module SourceView
[7/12] Compiling SourceView NSTextView+Selection.swift
[8/12] Compiling SourceView BaseTextView.swift
[9/12] Compiling SourceView NSTextView+Undo.swift
/Users/admin/builder/spi-builder-workspace/Sources/SourceView/NSTextView+Undo.swift:15:26: warning: capture of 'currentSelection' with non-sendable type '[NSValue]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 |
14 | 		undoManager?.registerUndo(withTarget: self, handler: { view in
15 | 			view.selectedRanges = currentSelection
   |                          `- warning: capture of 'currentSelection' with non-sendable type '[NSValue]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | 		})
17 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/SourceView/NSTextView+Undo.swift:15:9: warning: main actor-isolated property 'selectedRanges' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
13 |
14 | 		undoManager?.registerUndo(withTarget: self, handler: { view in
15 | 			view.selectedRanges = currentSelection
   |         `- warning: main actor-isolated property 'selectedRanges' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
16 | 		})
17 |
AppKit.NSTextView:2:25: note: mutation of this property is only permitted within the actor
 1 | extension NSTextView {
 2 |     @MainActor open var selectedRanges: [NSValue] { get set }
   |                         `- note: mutation of this property is only permitted within the actor
 3 |     open func setSelectedRanges(_ ranges: [NSValue], affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool)
 4 |     open func setSelectedRange(_ charRange: NSRange, affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool)
[10/12] Compiling SourceView TextIndentationProcessor.swift
[11/12] Compiling SourceView TextMovementProcessor.swift
[12/12] Compiling SourceView SourceView.swift
Build complete! (16.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SourceView",
  "name" : "SourceView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SourceView",
      "targets" : [
        "SourceView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SourceViewTests",
      "module_type" : "SwiftTarget",
      "name" : "SourceViewTests",
      "path" : "Tests/SourceViewTests",
      "sources" : [
        "BaseTextViewTests.swift",
        "SourceViewTests.swift"
      ],
      "target_dependencies" : [
        "SourceView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SourceView",
      "module_type" : "SwiftTarget",
      "name" : "SourceView",
      "path" : "Sources/SourceView",
      "product_memberships" : [
        "SourceView"
      ],
      "sources" : [
        "BaseTextView.swift",
        "NSTextView+Behavior.swift",
        "NSTextView+Selection.swift",
        "NSTextView+Undo.swift",
        "SourceView.swift",
        "TextCommandProcessor.swift",
        "TextIndentationProcessor.swift",
        "TextMovementProcessor.swift",
        "WhitespaceDisplayMode.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.