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

Swift 6 data race errors: 3

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/SwiftPackageRepository/Jar.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageRepository/Jar.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c3cea5e Update README.md
Cloned https://github.com/SwiftPackageRepository/Jar.swift.git
Revision (git rev-parse @):
c3cea5e943d56e35a92eab31f53a25abbe49fa0f
SUCCESS checkout https://github.com/SwiftPackageRepository/Jar.swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/SwiftPackageRepository/Jar.swift.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/11] Compiling Jar JavaVirtualMachineParser.swift
[4/11] Compiling Jar Java.swift
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:32:16: warning: static property 'java' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
   |                `- warning: static property 'java' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
34 | }
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:27:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
25 |
26 | import Foundation
27 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
   |                |- note: annotate 'java' 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
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
34 | }
[5/11] Compiling Jar Jar.swift
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:33:16: warning: static property 'jar' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
   |                `- warning: static property 'jar' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:27:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
25 |
26 | import Foundation
27 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
28 |
29 | extension OSLog {
   :
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
   |                |- note: annotate 'jar' 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 |
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Jar.swift:73:17: warning: capture of 'failed' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |             } catch {
72 |                 os_log("Failed writing JAR %{public}@ logged in", log: .jar, type: .error, error.localizedDescription)
73 |                 failed(error)
   |                 |- warning: capture of 'failed' with non-sendable type '(any Error) -> 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'
74 |                 return
75 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Jar.swift:76:13: warning: capture of 'completion' with non-sendable type '(URL) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |                 return
75 |             }
76 |             completion(pathToJar)
   |             |- warning: capture of 'completion' with non-sendable type '(URL) -> 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'
77 |         }
78 |         dataTask.resume()
[6/11] Compiling Jar JavaVirtualMachine.swift
[7/11] Compiling Jar NSTextCheckingResult+Extensions.swift
[8/11] Compiling Jar OSLog+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
   |                        |- warning: static property 'subsystem' 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 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:32:16: warning: static property 'java' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
   |                `- warning: static property 'java' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
34 | }
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:27:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
25 |
26 | import Foundation
27 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
   |                |- note: annotate 'java' 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
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:33:16: warning: static property 'jar' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
   |                |- warning: static property 'jar' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'jar' 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 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
[9/11] Emitting module Jar
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
   |                        |- warning: static property 'subsystem' 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 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:32:16: warning: static property 'java' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
   |                `- warning: static property 'java' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
34 | }
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:27:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
25 |
26 | import Foundation
27 | import os.log
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
   |                |- note: annotate 'java' 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
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:33:16: warning: static property 'jar' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
33 |     static let jar = OSLog(subsystem: subsystem, category: "jar")
   |                |- warning: static property 'jar' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'jar' 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 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
  |            `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 |     @available(*, unavailable, message: "Unavailable in Swift")
3 |     public init!()
[10/11] Compiling Jar Executable.swift
[11/11] Compiling Jar NSRegularExpression+Extensions.swift
Build complete! (22.15s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Jar",
  "name" : "Jar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Jar",
      "targets" : [
        "Jar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JarTests",
      "module_type" : "SwiftTarget",
      "name" : "JarTests",
      "path" : "Tests/JarTests",
      "sources" : [
        "JarTests.swift"
      ],
      "target_dependencies" : [
        "Jar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Jar",
      "module_type" : "SwiftTarget",
      "name" : "Jar",
      "path" : "Sources/Jar",
      "product_memberships" : [
        "Jar"
      ],
      "sources" : [
        "Executable.swift",
        "Extensions/NSRegularExpression+Extensions.swift",
        "Extensions/NSTextCheckingResult+Extensions.swift",
        "Extensions/OSLog+Extensions.swift",
        "Jar.swift",
        "Java.swift",
        "JavaVirtualMachine.swift",
        "JavaVirtualMachineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.