This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Ciao with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AlTavares/Ciao.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AlTavares/Ciao
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 658361c Update README.MD
Cloned https://github.com/AlTavares/Ciao.git
Revision (git rev-parse @):
658361c6d28c9f917178c23f9235fa40cd9090d0
SUCCESS checkout https://github.com/AlTavares/Ciao.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/AlTavares/Ciao.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/9] Compiling Ciao ServiceType.swift
[4/9] Compiling Ciao CiaoBrowser.swift
[5/9] Compiling Ciao CiaoServer.swift
[6/9] Compiling Ciao NetServiceExtension.swift
[7/9] Compiling Ciao CiaoResolver.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/CiaoResolver.swift:32:1: warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
30 |
31 | public typealias ErrorDictionary = [String: NSNumber]
32 | extension ErrorDictionary: Error {}
   | |- warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
33 |
34 | extension CiaoResolver {
[8/9] Compiling Ciao Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:34:12: warning: var 'LoggerLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 32 | }
 33 |
 34 | public var LoggerLevel = Level.verbose
    |            |- warning: var 'LoggerLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'LoggerLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'LoggerLevel' 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
 35 |
 36 | struct Logger {
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:37:24: warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | struct Logger {
 37 |     private static var dateFormat = "yyyy-MM-dd hh:mm:ssSSS"
    |                        |- warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'dateFormat' 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
 38 |     private static var dateFormatter: DateFormatter {
 39 |         let formatter = DateFormatter()
[9/9] Emitting module Ciao
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/CiaoResolver.swift:32:1: warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
30 |
31 | public typealias ErrorDictionary = [String: NSNumber]
32 | extension ErrorDictionary: Error {}
   | |- warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
33 |
34 | extension CiaoResolver {
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:34:12: warning: var 'LoggerLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 32 | }
 33 |
 34 | public var LoggerLevel = Level.verbose
    |            |- warning: var 'LoggerLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'LoggerLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'LoggerLevel' 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
 35 |
 36 | struct Logger {
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:37:24: warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | struct Logger {
 37 |     private static var dateFormat = "yyyy-MM-dd hh:mm:ssSSS"
    |                        |- warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'dateFormat' 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
 38 |     private static var dateFormatter: DateFormatter {
 39 |         let formatter = DateFormatter()
Build complete! (18.92s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Ciao",
  "name" : "Ciao",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Ciao",
      "targets" : [
        "Ciao"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CiaoTests",
      "module_type" : "SwiftTarget",
      "name" : "CiaoTests",
      "path" : "Tests/CiaoTests",
      "sources" : [
        "CiaoBrowserTests.swift",
        "CiaoServerTests.swift",
        "TestWithExpectation.swift"
      ],
      "target_dependencies" : [
        "Ciao"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Ciao",
      "module_type" : "SwiftTarget",
      "name" : "Ciao",
      "path" : "Sources/Ciao",
      "product_memberships" : [
        "Ciao"
      ],
      "sources" : [
        "CiaoBrowser.swift",
        "CiaoResolver.swift",
        "CiaoServer.swift",
        "Logger.swift",
        "NetServiceExtension.swift",
        "ServiceType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.