The Swift Package Index logo.Swift Package Index

Build Information

Successful build of LogStream, reference 1.3.0 (6f8369), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 11:54:10 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Wouter01/LogStream.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Wouter01/LogStream
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 6f83694 Fix 5.8 support
Cloned https://github.com/Wouter01/LogStream.git
Revision (git rev-parse @):
6f83694b2675dcf3b1cea0a52546ff4469c18282
SUCCESS checkout https://github.com/Wouter01/LogStream.git at 1.3.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Wouter01/LogStream.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-1EA4D86E10B52AF.txt
[2/3] Compiling ExternalAppLoggerHeaders _.c
[4/8] Compiling LogStream ActivityStreamOptions.swift
[5/8] Emitting module LogStream
/Users/admin/builder/spi-builder-workspace/Sources/LogStream/LogStream.swift:99:16: warning: static property 'messageClass' is not concurrency-safe because non-'Sendable' type 'any _OSActivityLogMessageEvent.Type' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 97 |     }
 98 |
 99 |     static let messageClass = unsafeBitCast(NSClassFromString("OSActivityLogMessageEvent"), to: _OSActivityLogMessageEvent.Type.self)
    |                |- warning: static property 'messageClass' is not concurrency-safe because non-'Sendable' type 'any _OSActivityLogMessageEvent.Type' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                |- note: add '@MainActor' to make static property 'messageClass' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     static func createStream(
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[6/8] Compiling LogStream LogStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogStream/LogStream.swift:99:16: warning: static property 'messageClass' is not concurrency-safe because non-'Sendable' type 'any _OSActivityLogMessageEvent.Type' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 97 |     }
 98 |
 99 |     static let messageClass = unsafeBitCast(NSClassFromString("OSActivityLogMessageEvent"), to: _OSActivityLogMessageEvent.Type.self)
    |                |- warning: static property 'messageClass' is not concurrency-safe because non-'Sendable' type 'any _OSActivityLogMessageEvent.Type' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                |- note: add '@MainActor' to make static property 'messageClass' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 |     static func createStream(
/Users/admin/builder/spi-builder-workspace/Sources/LogStream/LogStream.swift:39:38: warning: capture of 'logstream' with non-sendable type 'LoggingSupport.ActivityStream?' (aka 'Optional<OpaquePointer>') in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
 37 |
 38 |         continuation.onTermination = { _ in
 39 |             LoggingSupport.cancelLog(logstream)
    |                                      `- warning: capture of 'logstream' with non-sendable type 'LoggingSupport.ActivityStream?' (aka 'Optional<OpaquePointer>') in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
 40 |         }
 41 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/LogStream/LogStream.swift:72:13: warning: capture of 'logstreams' with non-sendable type '[LoggingSupport.ActivityStream?]' (aka 'Array<Optional<OpaquePointer>>') in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
 70 |
 71 |         continuation.onTermination = { _ in
 72 |             logstreams.forEach(LoggingSupport.cancelLog)
    |             `- warning: capture of 'logstreams' with non-sendable type '[LoggingSupport.ActivityStream?]' (aka 'Array<Optional<OpaquePointer>>') in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
 73 |         }
 74 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[7/8] Compiling LogStream LogMessage.swift
[8/8] Compiling LogStream LoggingSupport.swift
Build complete! (4.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LogStream",
  "name" : "LogStream",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "LogStream",
      "targets" : [
        "LogStream"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LogStreamTests",
      "module_type" : "SwiftTarget",
      "name" : "LogStreamTests",
      "path" : "Tests/LogStreamTests",
      "sources" : [
        "LogStreamTests.swift"
      ],
      "target_dependencies" : [
        "LogStream"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LogStream",
      "module_type" : "SwiftTarget",
      "name" : "LogStream",
      "path" : "Sources/LogStream",
      "product_memberships" : [
        "LogStream"
      ],
      "sources" : [
        "ActivityStreamOptions.swift",
        "LogMessage.swift",
        "LogStream.swift",
        "LoggingSupport.swift"
      ],
      "target_dependencies" : [
        "ExternalAppLoggerHeaders"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ExternalAppLoggerHeaders",
      "module_type" : "ClangTarget",
      "name" : "ExternalAppLoggerHeaders",
      "path" : "Sources/Headers",
      "product_memberships" : [
        "LogStream"
      ],
      "sources" : [
        "_.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.