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.1 for macOS (SPM) on 24 Apr 2025 21:29:12 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.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.64s)
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.1
Building package at path:  $PWD
https://github.com/matis-schotte/TracingActivity.git
https://github.com/matis-schotte/TracingActivity.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/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"),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/os/activity.h:67:1: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 65 | API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0))
 66 | #if OS_OBJECT_USE_OBJC
 67 | OS_OBJECT_DECL(os_activity);
    | `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 68 | #else
 69 | typedef struct os_activity_s *os_activity_t;
/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: add '@MainActor' to make let 'OS_ACTIVITY_NONE' part of global actor 'MainActor'
    |                 `- 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: add '@MainActor' to make let 'OS_ACTIVITY_CURRENT' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | 													to: os_activity_t.self)
 20 | /**
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/os/activity.h:67:1: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 65 | API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0))
 66 | #if OS_OBJECT_USE_OBJC
 67 | OS_OBJECT_DECL(os_activity);
    | `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 68 | #else
 69 | typedef struct os_activity_s *os_activity_t;
/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make static property 'detached' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make static property 'ifNonePresent' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | 	}
215 |
[4/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"),
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/os/activity.h:67:1: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 65 | API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0))
 66 | #if OS_OBJECT_USE_OBJC
 67 | OS_OBJECT_DECL(os_activity);
    | `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 68 | #else
 69 | typedef struct os_activity_s *os_activity_t;
/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: add '@MainActor' to make let 'OS_ACTIVITY_NONE' part of global actor 'MainActor'
    |                 `- 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: add '@MainActor' to make let 'OS_ACTIVITY_CURRENT' part of global actor 'MainActor'
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | 													to: os_activity_t.self)
 20 | /**
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/os/activity.h:67:1: note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 65 | API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0))
 66 | #if OS_OBJECT_USE_OBJC
 67 | OS_OBJECT_DECL(os_activity);
    | `- note: protocol 'OS_os_activity' does not conform to the 'Sendable' protocol
 68 | #else
 69 | typedef struct os_activity_s *os_activity_t;
/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make static property 'detached' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make static property 'ifNonePresent' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | 	}
215 |
Build complete! (4.22s)
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.