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 TracingActivity, reference 0.1.1 (7c15da), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 08:58:51 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/matis-schotte/TracingActivity.git
Reference: 0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/matis-schotte/TracingActivity
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 7c15da9 FIX Typos
Cloned https://github.com/matis-schotte/TracingActivity.git
Revision (git rev-parse @):
7c15da9c261f0efa80b8002edc194daaa41cb22c
SUCCESS checkout https://github.com/matis-schotte/TracingActivity.git at 0.1.1
========================================
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": "tracingactivity",
      "name": "TracingActivity",
      "url": "https://github.com/matis-schotte/TracingActivity.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TracingActivity",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/matis-schotte/TracingActivity.git
[1/78] Fetching tracingactivity
Fetched https://github.com/matis-schotte/TracingActivity.git from cache (0.71s)
Creating working copy for https://github.com/matis-schotte/TracingActivity.git
Working copy of https://github.com/matis-schotte/TracingActivity.git resolved at 0.1.1 (7c15da9)
warning: '.resolve-product-dependencies': dependency 'tracingactivity' 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/matis-schotte/TracingActivity.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[3/4] Compiling TracingActivity TracingActivity.swift
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:16:17: warning: let 'OS_ACTIVITY_NONE' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | // Bridging Obj-C variabled defined as c-macroses. See `activity.h` header.
 16 | fileprivate let OS_ACTIVITY_NONE = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"),
    |                 `- warning: let 'OS_ACTIVITY_NONE' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
 17 | 												 to: os_activity_t.self)
 18 | fileprivate let OS_ACTIVITY_CURRENT = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"),
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
  |                 `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 11 |
 12 | import Foundation
 13 | import os.activity
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 14 |
 15 | // Bridging Obj-C variabled defined as c-macroses. See `activity.h` header.
 16 | fileprivate let OS_ACTIVITY_NONE = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"),
    |                 |- note: annotate 'OS_ACTIVITY_NONE' 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
 17 | 												 to: os_activity_t.self)
 18 | fileprivate let OS_ACTIVITY_CURRENT = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"),
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:18:17: warning: let 'OS_ACTIVITY_CURRENT' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
 16 | fileprivate let OS_ACTIVITY_NONE = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"),
 17 | 												 to: os_activity_t.self)
 18 | fileprivate let OS_ACTIVITY_CURRENT = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"),
    |                 |- warning: let 'OS_ACTIVITY_CURRENT' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'OS_ACTIVITY_CURRENT' 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
 19 | 													to: os_activity_t.self)
 20 | /**
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
  |                 `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:203:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
193 | extension TracingActivity {
194 | 	/// Support flags for os_activity_create or os_activity_start.
195 | 	public struct Options: OptionSet {
    |                `- note: consider making struct 'Options' conform to the 'Sendable' protocol
196 | 		public let rawValue: UInt32
197 |
    :
201 |
202 | 		/// Use the default flags.
203 | 		public static let `default` = Options(rawValue: OS_ACTIVITY_FLAG_DEFAULT.rawValue)
    |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'default' 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
204 | 		/// Detach the newly created activity from the provided activity (if any).  If
205 | 		/// passed in conjunction with an exiting activity, the activity will only note
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:209:21: warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
193 | extension TracingActivity {
194 | 	/// Support flags for os_activity_create or os_activity_start.
195 | 	public struct Options: OptionSet {
    |                `- note: consider making struct 'Options' conform to the 'Sendable' protocol
196 | 		public let rawValue: UInt32
197 |
    :
207 | 		/// level activity.  This allows users to see what activity triggered work
208 | 		/// without actually relating the activities.
209 | 		public static let detached = Options(rawValue: OS_ACTIVITY_FLAG_DETACHED.rawValue)
    |                     |- warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'detached' 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
210 | 		/// Will only create a new activity if none present.  If an activity ID is
211 | 		/// already present, a new object will be returned with the same activity ID
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:213:21: warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
193 | extension TracingActivity {
194 | 	/// Support flags for os_activity_create or os_activity_start.
195 | 	public struct Options: OptionSet {
    |                `- note: consider making struct 'Options' conform to the 'Sendable' protocol
196 | 		public let rawValue: UInt32
197 |
    :
211 | 		/// already present, a new object will be returned with the same activity ID
212 | 		/// underneath.
213 | 		public static let ifNonePresent = Options(rawValue: OS_ACTIVITY_FLAG_IF_NONE_PRESENT.rawValue)
    |                     |- warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'ifNonePresent' 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
214 | 	}
215 |
[4/4] Emitting module TracingActivity
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:16:17: warning: let 'OS_ACTIVITY_NONE' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | // Bridging Obj-C variabled defined as c-macroses. See `activity.h` header.
 16 | fileprivate let OS_ACTIVITY_NONE = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"),
    |                 `- warning: let 'OS_ACTIVITY_NONE' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
 17 | 												 to: os_activity_t.self)
 18 | fileprivate let OS_ACTIVITY_CURRENT = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"),
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
  |                 `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 11 |
 12 | import Foundation
 13 | import os.activity
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
 14 |
 15 | // Bridging Obj-C variabled defined as c-macroses. See `activity.h` header.
 16 | fileprivate let OS_ACTIVITY_NONE = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"),
    |                 |- note: annotate 'OS_ACTIVITY_NONE' 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
 17 | 												 to: os_activity_t.self)
 18 | fileprivate let OS_ACTIVITY_CURRENT = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"),
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:18:17: warning: let 'OS_ACTIVITY_CURRENT' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
 16 | fileprivate let OS_ACTIVITY_NONE = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_none"),
 17 | 												 to: os_activity_t.self)
 18 | fileprivate let OS_ACTIVITY_CURRENT = unsafeBitCast(dlsym(UnsafeMutableRawPointer(bitPattern: -2), "_os_activity_current"),
    |                 |- warning: let 'OS_ACTIVITY_CURRENT' is not concurrency-safe because non-'Sendable' type 'os_activity_t' (aka 'any OS_os_activity') may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'OS_ACTIVITY_CURRENT' 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
 19 | 													to: os_activity_t.self)
 20 | /**
os.OS_os_activity:2:17: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | public protocol OS_os_activity : NSObjectProtocol {
  |                 `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:203:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
193 | extension TracingActivity {
194 | 	/// Support flags for os_activity_create or os_activity_start.
195 | 	public struct Options: OptionSet {
    |                `- note: consider making struct 'Options' conform to the 'Sendable' protocol
196 | 		public let rawValue: UInt32
197 |
    :
201 |
202 | 		/// Use the default flags.
203 | 		public static let `default` = Options(rawValue: OS_ACTIVITY_FLAG_DEFAULT.rawValue)
    |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'default' 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
204 | 		/// Detach the newly created activity from the provided activity (if any).  If
205 | 		/// passed in conjunction with an exiting activity, the activity will only note
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:209:21: warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
193 | extension TracingActivity {
194 | 	/// Support flags for os_activity_create or os_activity_start.
195 | 	public struct Options: OptionSet {
    |                `- note: consider making struct 'Options' conform to the 'Sendable' protocol
196 | 		public let rawValue: UInt32
197 |
    :
207 | 		/// level activity.  This allows users to see what activity triggered work
208 | 		/// without actually relating the activities.
209 | 		public static let detached = Options(rawValue: OS_ACTIVITY_FLAG_DETACHED.rawValue)
    |                     |- warning: static property 'detached' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'detached' 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
210 | 		/// Will only create a new activity if none present.  If an activity ID is
211 | 		/// already present, a new object will be returned with the same activity ID
/Users/admin/builder/spi-builder-workspace/Sources/TracingActivity/TracingActivity.swift:213:21: warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
193 | extension TracingActivity {
194 | 	/// Support flags for os_activity_create or os_activity_start.
195 | 	public struct Options: OptionSet {
    |                `- note: consider making struct 'Options' conform to the 'Sendable' protocol
196 | 		public let rawValue: UInt32
197 |
    :
211 | 		/// already present, a new object will be returned with the same activity ID
212 | 		/// underneath.
213 | 		public static let ifNonePresent = Options(rawValue: OS_ACTIVITY_FLAG_IF_NONE_PRESENT.rawValue)
    |                     |- warning: static property 'ifNonePresent' is not concurrency-safe because non-'Sendable' type 'TracingActivity.Options' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'ifNonePresent' 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
214 | 	}
215 |
Build complete! (6.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TracingActivity",
  "name" : "TracingActivity",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "TracingActivity",
      "targets" : [
        "TracingActivity"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TracingActivityTests",
      "module_type" : "SwiftTarget",
      "name" : "TracingActivityTests",
      "path" : "Tests/TracingActivityTests",
      "sources" : [
        "TracingActivityTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TracingActivity"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TracingActivity",
      "module_type" : "SwiftTarget",
      "name" : "TracingActivity",
      "path" : "Sources/TracingActivity",
      "product_memberships" : [
        "TracingActivity"
      ],
      "sources" : [
        "TracingActivity.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.