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

Swift 6 data race errors: 1

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/chipjarred/SwizzleHelper.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chipjarred/SwizzleHelper
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d0e5e0d Added support for forwarding to previous implementation of a swizzled method that takes an Objective-C block (aka closure, in Swift).
Cloned https://github.com/chipjarred/SwizzleHelper.git
Revision (git rev-parse @):
d0e5e0d1836bf080bcafdb1ef6023ffeb5c0405d
SUCCESS checkout https://github.com/chipjarred/SwizzleHelper.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/chipjarred/SwizzleHelper.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/3] Write sources
[1/3] Write swift-version-6F35C1178C84523A.txt
/Users/admin/builder/spi-builder-workspace/SwizzleHelperObjC/swizzleHelper.m:113:1: warning: non-void function does not return a value [-Wreturn-type]
  113 | }
      | ^
1 warning generated.
[2/3] Compiling SwizzleHelperObjC swizzleHelper.m
[4/6] Compiling SwizzleHelper NSObject+AssociatedObjects.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwizzleHelper/NSObject+AssociatedObjects.swift:3:17: warning: var 'associatedValuesKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | fileprivate var associatedValuesKey = "\(#filePath)_associatedValues"
    |                 |- warning: var 'associatedValuesKey' 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 'associatedValuesKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                 |- note: annotate 'associatedValuesKey' 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
  4 |
  5 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SwizzleHelper/NSObject+AssociatedObjects.swift:63:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 61 |         get
 62 |         {
 63 |             return objc_getAssociatedObject(Self.self, &associatedValuesKey)
    |                                                        `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 64 |                 as? AssociatedValues ?? [:]
 65 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwizzleHelper/NSObject+AssociatedObjects.swift:70:17: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 68 |             objc_setAssociatedObject(
 69 |                 Self.self,
 70 |                 &associatedValuesKey,
    |                 `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 71 |                 newValue as NSDictionary,
 72 |                 .OBJC_ASSOCIATION_RETAIN
/Users/admin/builder/spi-builder-workspace/Sources/SwizzleHelper/NSObject+AssociatedObjects.swift:86:51: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 84 |         get
 85 |         {
 86 |             return objc_getAssociatedObject(self, &associatedValuesKey)
    |                                                   `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 87 |                 as? AssociatedValues ?? [:]
 88 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwizzleHelper/NSObject+AssociatedObjects.swift:93:17: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 91 |             objc_setAssociatedObject(
 92 |                 self,
 93 |                 &associatedValuesKey,
    |                 `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
 94 |                 newValue as NSDictionary,
 95 |                 .OBJC_ASSOCIATION_RETAIN
[5/6] Compiling SwizzleHelper NSObject+Swizzling.swift
[6/6] Emitting module SwizzleHelper
/Users/admin/builder/spi-builder-workspace/Sources/SwizzleHelper/NSObject+AssociatedObjects.swift:3:17: warning: var 'associatedValuesKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | fileprivate var associatedValuesKey = "\(#filePath)_associatedValues"
    |                 |- warning: var 'associatedValuesKey' 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 'associatedValuesKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                 |- note: annotate 'associatedValuesKey' 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
  4 |
  5 | // -------------------------------------
Build complete! (25.41s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwizzleHelper",
  "name" : "SwizzleHelper",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    }
  ],
  "products" : [
    {
      "name" : "SwizzleHelper",
      "targets" : [
        "SwizzleHelper",
        "SwizzleHelperObjC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwizzleHelperTests",
      "module_type" : "SwiftTarget",
      "name" : "SwizzleHelperTests",
      "path" : "Tests/SwizzleHelperTests",
      "sources" : [
        "AssociatedValues_Tests.swift",
        "Swizzling_Tests.swift"
      ],
      "target_dependencies" : [
        "SwizzleHelper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwizzleHelperObjC",
      "module_type" : "ClangTarget",
      "name" : "SwizzleHelperObjC",
      "path" : "SwizzleHelperObjC",
      "product_memberships" : [
        "SwizzleHelper"
      ],
      "sources" : [
        "swizzleHelper.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwizzleHelper",
      "module_type" : "SwiftTarget",
      "name" : "SwizzleHelper",
      "path" : "Sources/SwizzleHelper",
      "product_memberships" : [
        "SwizzleHelper"
      ],
      "sources" : [
        "NSObject+AssociatedObjects.swift",
        "NSObject+Swizzling.swift"
      ],
      "target_dependencies" : [
        "SwizzleHelperObjC"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.