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 ObjCDump, reference main (1e91df), with Swift 6.0 for macOS (SPM) on 5 Jan 2025 14:29:53 UTC.

Swift 6 data race errors: 2

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-objc-dump.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/p-x9/swift-objc-dump
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1e91dfd Merge pull request #14 from p-x9/feature/support-linux
Cloned https://github.com/p-x9/swift-objc-dump.git
Revision (git rev-parse @):
1e91dfd4c332f7015f4c46f99df8a53fbb495e20
SUCCESS checkout https://github.com/p-x9/swift-objc-dump.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": "swift-objc-dump",
      "name": "ObjCDump",
      "url": "https://github.com/p-x9/swift-objc-dump.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-objc-dump",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/p-x9/swift-objc-dump.git
[1/390] Fetching swift-objc-dump
Fetched https://github.com/p-x9/swift-objc-dump.git from cache (0.76s)
Creating working copy for https://github.com/p-x9/swift-objc-dump.git
Working copy of https://github.com/p-x9/swift-objc-dump.git resolved at main (1e91dfd)
warning: '.resolve-product-dependencies': dependency 'swift-objc-dump' 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/p-x9/swift-objc-dump.git
https://github.com/p-x9/swift-objc-dump.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjCDump",
  "name" : "ObjCDump",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjCDump",
      "targets" : [
        "ObjCDump"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObjCTypeDecodeKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjCTypeDecodeKitTests",
      "path" : "Tests/ObjCTypeDecodeKitTests",
      "sources" : [
        "ObjCMethodTypeDecodeTests.swift",
        "ObjCTypeDecodeKitTests.swift",
        "ObjCTypeEncodeTests.swift"
      ],
      "target_dependencies" : [
        "ObjCTypeDecodeKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjCTypeDecodeKit",
      "module_type" : "SwiftTarget",
      "name" : "ObjCTypeDecodeKit",
      "path" : "Sources/ObjCTypeDecodeKit",
      "product_memberships" : [
        "ObjCDump"
      ],
      "sources" : [
        "Extension/String+.swift",
        "Model/Node.swift",
        "Model/ObjCField.swift",
        "Model/ObjCMethodType.swift",
        "Model/ObjCModifier.swift",
        "Model/ObjCPropertyAttribute.swift",
        "Model/ObjCType.swift",
        "Model/types.swift",
        "ObjCMethodTypeDecoder.swift",
        "ObjCPropertyTypeDecoder.swift",
        "ObjCTypeDecoder.swift",
        "Protocol/ObjCTypeCodable.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjCDumpTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjCDumpTests",
      "path" : "Tests/ObjCDumpTests",
      "sources" : [
        "ObjCDumpTests.swift"
      ],
      "target_dependencies" : [
        "ObjCDump"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjCDump",
      "module_type" : "SwiftTarget",
      "name" : "ObjCDump",
      "path" : "Sources/ObjCDump",
      "product_memberships" : [
        "ObjCDump"
      ],
      "sources" : [
        "Extension/ObjCType+.swift",
        "Model/ObjCCategoryInfo.swift",
        "Model/ObjCClassInfo.swift",
        "Model/ObjCIvarInfo.swift",
        "Model/ObjCMethodInfo.swift",
        "Model/ObjCPropertyInfo.swift",
        "Model/ObjCProtocolInfo.swift",
        "ObjCDump.swift"
      ],
      "target_dependencies" : [
        "ObjCTypeDecodeKit"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/15] Compiling ObjCTypeDecodeKit ObjCPropertyTypeDecoder.swift
[5/15] Compiling ObjCTypeDecodeKit ObjCTypeDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/types.swift:13:5: warning: let 'simpleTypes' is not concurrency-safe because non-'Sendable' type '[Character : ObjCType]' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // ref: https://github.com/apple-oss-distributions/objc4/blob/01edf1705fbc3ff78a423cd21e03dfc21eb4d780/runtime/runtime.h#L1856
12 |
13 | let simpleTypes: [Character: ObjCType] = [
   |     |- warning: let 'simpleTypes' is not concurrency-safe because non-'Sendable' type '[Character : ObjCType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'simpleTypes' 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
14 |     "@": .object(name: nil),
15 |     "#": .class,
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/ObjCType.swift:11:22: note: consider making enum 'ObjCType' conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | public indirect enum ObjCType: Equatable {
    |                      `- note: consider making enum 'ObjCType' conform to the 'Sendable' protocol
 12 |     case `class`
 13 |     case selector
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/types.swift:39:5: warning: let 'modifiers' is not concurrency-safe because non-'Sendable' type '[Character : ObjCModifier]' may have shared mutable state; this is an error in the Swift 6 language mode
37 | ]
38 |
39 | let modifiers: [Character: ObjCModifier] = [
   |     |- warning: let 'modifiers' is not concurrency-safe because non-'Sendable' type '[Character : ObjCModifier]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'modifiers' 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
40 |     "A": .atomic, // #include <stdatomic.h>
41 |     "j": .complex, // #include <complex.h>
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/ObjCModifier.swift:11:13: note: consider making enum 'ObjCModifier' conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | public enum ObjCModifier: CaseIterable, Equatable {
   |             `- note: consider making enum 'ObjCModifier' conform to the 'Sendable' protocol
12 |     case complex
13 |     case atomic
[6/16] Compiling ObjCTypeDecodeKit ObjCMethodTypeDecoder.swift
[7/16] Compiling ObjCTypeDecodeKit ObjCModifier.swift
[8/16] Compiling ObjCTypeDecodeKit types.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/types.swift:13:5: warning: let 'simpleTypes' is not concurrency-safe because non-'Sendable' type '[Character : ObjCType]' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // ref: https://github.com/apple-oss-distributions/objc4/blob/01edf1705fbc3ff78a423cd21e03dfc21eb4d780/runtime/runtime.h#L1856
12 |
13 | let simpleTypes: [Character: ObjCType] = [
   |     |- warning: let 'simpleTypes' is not concurrency-safe because non-'Sendable' type '[Character : ObjCType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'simpleTypes' 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
14 |     "@": .object(name: nil),
15 |     "#": .class,
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/ObjCType.swift:11:22: note: consider making enum 'ObjCType' conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | public indirect enum ObjCType: Equatable {
    |                      `- note: consider making enum 'ObjCType' conform to the 'Sendable' protocol
 12 |     case `class`
 13 |     case selector
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/types.swift:39:5: warning: let 'modifiers' is not concurrency-safe because non-'Sendable' type '[Character : ObjCModifier]' may have shared mutable state; this is an error in the Swift 6 language mode
37 | ]
38 |
39 | let modifiers: [Character: ObjCModifier] = [
   |     |- warning: let 'modifiers' is not concurrency-safe because non-'Sendable' type '[Character : ObjCModifier]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'modifiers' 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
40 |     "A": .atomic, // #include <stdatomic.h>
41 |     "j": .complex, // #include <complex.h>
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/ObjCModifier.swift:11:13: note: consider making enum 'ObjCModifier' conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | public enum ObjCModifier: CaseIterable, Equatable {
   |             `- note: consider making enum 'ObjCModifier' conform to the 'Sendable' protocol
12 |     case complex
13 |     case atomic
[9/16] Compiling ObjCTypeDecodeKit ObjCPropertyAttribute.swift
[10/16] Compiling ObjCTypeDecodeKit ObjCField.swift
[11/16] Compiling ObjCTypeDecodeKit ObjCMethodType.swift
[12/16] Compiling ObjCTypeDecodeKit String+.swift
[13/16] Compiling ObjCTypeDecodeKit Node.swift
[14/16] Emitting module ObjCTypeDecodeKit
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/types.swift:13:5: warning: let 'simpleTypes' is not concurrency-safe because non-'Sendable' type '[Character : ObjCType]' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // ref: https://github.com/apple-oss-distributions/objc4/blob/01edf1705fbc3ff78a423cd21e03dfc21eb4d780/runtime/runtime.h#L1856
12 |
13 | let simpleTypes: [Character: ObjCType] = [
   |     |- warning: let 'simpleTypes' is not concurrency-safe because non-'Sendable' type '[Character : ObjCType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'simpleTypes' 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
14 |     "@": .object(name: nil),
15 |     "#": .class,
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/ObjCType.swift:11:22: note: consider making enum 'ObjCType' conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | public indirect enum ObjCType: Equatable {
    |                      `- note: consider making enum 'ObjCType' conform to the 'Sendable' protocol
 12 |     case `class`
 13 |     case selector
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/types.swift:39:5: warning: let 'modifiers' is not concurrency-safe because non-'Sendable' type '[Character : ObjCModifier]' may have shared mutable state; this is an error in the Swift 6 language mode
37 | ]
38 |
39 | let modifiers: [Character: ObjCModifier] = [
   |     |- warning: let 'modifiers' is not concurrency-safe because non-'Sendable' type '[Character : ObjCModifier]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'modifiers' 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
40 |     "A": .atomic, // #include <stdatomic.h>
41 |     "j": .complex, // #include <complex.h>
/Users/admin/builder/spi-builder-workspace/Sources/ObjCTypeDecodeKit/Model/ObjCModifier.swift:11:13: note: consider making enum 'ObjCModifier' conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | public enum ObjCModifier: CaseIterable, Equatable {
   |             `- note: consider making enum 'ObjCModifier' conform to the 'Sendable' protocol
12 |     case complex
13 |     case atomic
[15/16] Compiling ObjCTypeDecodeKit ObjCType.swift
[16/16] Compiling ObjCTypeDecodeKit ObjCTypeCodable.swift
[17/25] Compiling ObjCDump ObjCDump.swift
[18/25] Compiling ObjCDump ObjCMethodInfo.swift
[19/25] Compiling ObjCDump ObjCPropertyInfo.swift
[20/25] Compiling ObjCDump ObjCProtocolInfo.swift
[21/25] Compiling ObjCDump ObjCType+.swift
[22/25] Compiling ObjCDump ObjCCategoryInfo.swift
[23/25] Compiling ObjCDump ObjCIvarInfo.swift
[24/25] Emitting module ObjCDump
[25/25] Compiling ObjCDump ObjCClassInfo.swift
Build complete! (16.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjCDump",
  "name" : "ObjCDump",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjCDump",
      "targets" : [
        "ObjCDump"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObjCTypeDecodeKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjCTypeDecodeKitTests",
      "path" : "Tests/ObjCTypeDecodeKitTests",
      "sources" : [
        "ObjCMethodTypeDecodeTests.swift",
        "ObjCTypeDecodeKitTests.swift",
        "ObjCTypeEncodeTests.swift"
      ],
      "target_dependencies" : [
        "ObjCTypeDecodeKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjCTypeDecodeKit",
      "module_type" : "SwiftTarget",
      "name" : "ObjCTypeDecodeKit",
      "path" : "Sources/ObjCTypeDecodeKit",
      "product_memberships" : [
        "ObjCDump"
      ],
      "sources" : [
        "Extension/String+.swift",
        "Model/Node.swift",
        "Model/ObjCField.swift",
        "Model/ObjCMethodType.swift",
        "Model/ObjCModifier.swift",
        "Model/ObjCPropertyAttribute.swift",
        "Model/ObjCType.swift",
        "Model/types.swift",
        "ObjCMethodTypeDecoder.swift",
        "ObjCPropertyTypeDecoder.swift",
        "ObjCTypeDecoder.swift",
        "Protocol/ObjCTypeCodable.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjCDumpTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjCDumpTests",
      "path" : "Tests/ObjCDumpTests",
      "sources" : [
        "ObjCDumpTests.swift"
      ],
      "target_dependencies" : [
        "ObjCDump"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjCDump",
      "module_type" : "SwiftTarget",
      "name" : "ObjCDump",
      "path" : "Sources/ObjCDump",
      "product_memberships" : [
        "ObjCDump"
      ],
      "sources" : [
        "Extension/ObjCType+.swift",
        "Model/ObjCCategoryInfo.swift",
        "Model/ObjCClassInfo.swift",
        "Model/ObjCIvarInfo.swift",
        "Model/ObjCMethodInfo.swift",
        "Model/ObjCPropertyInfo.swift",
        "Model/ObjCProtocolInfo.swift",
        "ObjCDump.swift"
      ],
      "target_dependencies" : [
        "ObjCTypeDecodeKit"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.