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 TextEditorPlus, reference v1.3.0 (530f82), with Swift 6.0 for macOS (SPM) on 18 Jan 2025 21:37:26 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jaywcjlove/swiftui-texteditor.git
Reference: v1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jaywcjlove/swiftui-texteditor
 * tag               v1.3.0     -> FETCH_HEAD
HEAD is now at 530f822 doc: update .github/FUNDING.yml
Cloned https://github.com/jaywcjlove/swiftui-texteditor.git
Revision (git rev-parse @):
530f82201b1428ccd4fdc8ab8ed87d60ef6b5d0f
SUCCESS checkout https://github.com/jaywcjlove/swiftui-texteditor.git at v1.3.0
Fetching https://github.com/apple/swift-docc-plugin
[1/2048] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.31s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.78s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3263] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.30s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.54s)
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
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
========================================
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": "swiftui-texteditor",
      "name": "TextEditorPlus",
      "url": "https://github.com/jaywcjlove/swiftui-texteditor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-texteditor",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jaywcjlove/swiftui-texteditor.git
[1/7329] Fetching swiftui-texteditor
Fetched https://github.com/jaywcjlove/swiftui-texteditor.git from cache (1.26s)
Creating working copy for https://github.com/jaywcjlove/swiftui-texteditor.git
Working copy of https://github.com/jaywcjlove/swiftui-texteditor.git resolved at v1.3.0 (530f822)
warning: '.resolve-product-dependencies': dependency 'swiftui-texteditor' 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/jaywcjlove/swiftui-texteditor.git
https://github.com/jaywcjlove/swiftui-texteditor.git
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "TextEditorPlus",
  "name" : "TextEditorPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "TextEditorPlus",
      "targets" : [
        "TextEditorPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextEditorPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "TextEditorPlusTests",
      "path" : "Tests/TextEditorPlusTests",
      "sources" : [
        "TextEditorPlusTests.swift"
      ],
      "target_dependencies" : [
        "TextEditorPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextEditorPlus",
      "module_type" : "SwiftTarget",
      "name" : "TextEditorPlus",
      "path" : "Sources/TextEditorPlus",
      "product_memberships" : [
        "TextEditorPlus"
      ],
      "sources" : [
        "Extensions/Coordinator.swift",
        "Settings/Font.swift",
        "Settings/TextSetting.swift",
        "TextEditorPlus.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/4] Write sources
[3/4] Write swift-version-5BDAB9E9C0126B9D.txt
[5/9] Compiling TextEditorPlus TextSetting.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:20:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | fileprivate struct TextViewIsEditable: EnvironmentKey {
 20 |     static var defaultValue: Bool = true
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 21 | }
 22 | fileprivate struct TextViewInsetPadding: EnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:23:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | }
 22 | fileprivate struct TextViewInsetPadding: EnvironmentKey {
 23 |     static var defaultValue: CGFloat = 18
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 24 | }
 25 | fileprivate struct TextViewBackgroundColor: EnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:26:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 24 | }
 25 | fileprivate struct TextViewBackgroundColor: EnvironmentKey {
 26 |     static var defaultValue: ViewColor?
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 27 | }
 28 | fileprivate struct TextViewPlaceholderString: EnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 27 | }
 28 | fileprivate struct TextViewPlaceholderString: EnvironmentKey {
 29 |     static var defaultValue: String?
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 30 | }
 31 |
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:33:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 |
 32 | fileprivate struct TextViewAttributedString: EnvironmentKey {
 33 |     static var defaultValue: (NSMutableAttributedString) -> NSMutableAttributedString? = { _ in nil }
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 34 | }
 35 |
[6/9] Compiling TextEditorPlus Font.swift
[7/9] Compiling TextEditorPlus TextEditorPlus.swift
[8/9] Emitting module TextEditorPlus
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:20:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | fileprivate struct TextViewIsEditable: EnvironmentKey {
 20 |     static var defaultValue: Bool = true
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 21 | }
 22 | fileprivate struct TextViewInsetPadding: EnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:23:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | }
 22 | fileprivate struct TextViewInsetPadding: EnvironmentKey {
 23 |     static var defaultValue: CGFloat = 18
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 24 | }
 25 | fileprivate struct TextViewBackgroundColor: EnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:26:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 24 | }
 25 | fileprivate struct TextViewBackgroundColor: EnvironmentKey {
 26 |     static var defaultValue: ViewColor?
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 27 | }
 28 | fileprivate struct TextViewPlaceholderString: EnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 27 | }
 28 | fileprivate struct TextViewPlaceholderString: EnvironmentKey {
 29 |     static var defaultValue: String?
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 30 | }
 31 |
/Users/admin/builder/spi-builder-workspace/Sources/TextEditorPlus/Settings/TextSetting.swift:33:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 |
 32 | fileprivate struct TextViewAttributedString: EnvironmentKey {
 33 |     static var defaultValue: (NSMutableAttributedString) -> NSMutableAttributedString? = { _ in nil }
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' 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
 34 | }
 35 |
[9/9] Compiling TextEditorPlus Coordinator.swift
Build complete! (22.68s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "TextEditorPlus",
  "name" : "TextEditorPlus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "TextEditorPlus",
      "targets" : [
        "TextEditorPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextEditorPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "TextEditorPlusTests",
      "path" : "Tests/TextEditorPlusTests",
      "sources" : [
        "TextEditorPlusTests.swift"
      ],
      "target_dependencies" : [
        "TextEditorPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextEditorPlus",
      "module_type" : "SwiftTarget",
      "name" : "TextEditorPlus",
      "path" : "Sources/TextEditorPlus",
      "product_memberships" : [
        "TextEditorPlus"
      ],
      "sources" : [
        "Extensions/Coordinator.swift",
        "Settings/Font.swift",
        "Settings/TextSetting.swift",
        "TextEditorPlus.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.