The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Apparent, reference 0.3.2 (72efc4), with Swift 6.1 for macOS (SPM) on 7 Nov 2026 13:02:45 UTC.

Swift 6 data race errors: 12

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: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AhmedAshour/apparent-swift.git
Reference: 0.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AhmedAshour/apparent-swift
 * tag               0.3.2      -> FETCH_HEAD
HEAD is now at 72efc4a Apparent Swift SDK 0.3.2
Cloned https://github.com/AhmedAshour/apparent-swift.git
Revision (git rev-parse @):
72efc4a25fd64c1de67fe252909d40aa986d9c96
SUCCESS checkout https://github.com/AhmedAshour/apparent-swift.git at 0.3.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/AhmedAshour/apparent-swift.git
https://github.com/AhmedAshour/apparent-swift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Apparent",
  "name" : "Apparent",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Apparent",
      "targets" : [
        "Apparent"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ApparentTests",
      "module_type" : "SwiftTarget",
      "name" : "ApparentTests",
      "path" : "Tests/ApparentTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ApparentTests/Fixtures",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BehaviourTests.swift",
        "CrashTests.swift",
        "DeliveryTests.swift",
        "FeaturesTests.swift",
        "HardeningTests.swift",
        "Helpers.swift",
        "Round2Tests.swift",
        "WireTests.swift"
      ],
      "target_dependencies" : [
        "Apparent"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Apparent",
      "module_type" : "SwiftTarget",
      "name" : "Apparent",
      "path" : "Sources/Apparent",
      "product_memberships" : [
        "Apparent"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Apparent.swift",
        "Client.swift",
        "Crash.swift",
        "Links.swift",
        "Platform.swift",
        "Screens.swift",
        "StoreKit.swift",
        "Value.swift",
        "Wire.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/13] Compiling Apparent Wire.swift
[5/14] Compiling Apparent Value.swift
[6/14] Compiling Apparent resource_bundle_accessor.swift
[7/14] Compiling Apparent Crash.swift
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:20:24: warning: static property 'installed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     var saveBeforeCrash: (() -> Void)?
 19 |
 20 |     private static var installed: CrashReporter?
    |                        |- warning: static property 'installed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'installed' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'installed' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |     private init(directory: URL) { self.directory = directory }
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:150:13: warning: var 'crashSignalPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 |
149 | private let contextCapacity = 4096
150 | private var crashSignalPath: UnsafeMutablePointer<CChar>?
    |             |- warning: var 'crashSignalPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashSignalPath' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashSignalPath' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
152 | private var crashContextLengths: (Int, Int) = (0, 0)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:151:13: warning: var 'crashContextBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 | private let contextCapacity = 4096
150 | private var crashSignalPath: UnsafeMutablePointer<CChar>?
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
    |             |- warning: var 'crashContextBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashContextBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashContextBuffers' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | private var crashContextLengths: (Int, Int) = (0, 0)
153 | private var crashContextActive: Int32 = 0
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:152:13: warning: var 'crashContextLengths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | private var crashSignalPath: UnsafeMutablePointer<CChar>?
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
152 | private var crashContextLengths: (Int, Int) = (0, 0)
    |             |- warning: var 'crashContextLengths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashContextLengths' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashContextLengths' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | private var crashContextActive: Int32 = 0
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:153:13: warning: var 'crashContextActive' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
152 | private var crashContextLengths: (Int, Int) = (0, 0)
153 | private var crashContextActive: Int32 = 0
    |             |- warning: var 'crashContextActive' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashContextActive' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashContextActive' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
155 | private var crashExceptionWritten: Int32 = 0
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:154:13: warning: var 'crashScratch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 | private var crashContextLengths: (Int, Int) = (0, 0)
153 | private var crashContextActive: Int32 = 0
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
    |             |- warning: var 'crashScratch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashScratch' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashScratch' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 | private var crashExceptionWritten: Int32 = 0
156 | private var crashHandlerReturnsForTests = false
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:155:13: warning: var 'crashExceptionWritten' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
153 | private var crashContextActive: Int32 = 0
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
155 | private var crashExceptionWritten: Int32 = 0
    |             |- warning: var 'crashExceptionWritten' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashExceptionWritten' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashExceptionWritten' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | private var crashHandlerReturnsForTests = false
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:156:13: warning: var 'crashHandlerReturnsForTests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
155 | private var crashExceptionWritten: Int32 = 0
156 | private var crashHandlerReturnsForTests = false
    |             |- warning: var 'crashHandlerReturnsForTests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashHandlerReturnsForTests' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashHandlerReturnsForTests' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:157:13: warning: let 'previousSignalActions' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<sigaction>' may have shared mutable state; this is an error in the Swift 6 language mode
155 | private var crashExceptionWritten: Int32 = 0
156 | private var crashHandlerReturnsForTests = false
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
    |             |- warning: let 'previousSignalActions' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<sigaction>' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'previousSignalActions' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
159 | private var previousExceptionHandler: (@convention(c) (NSException) -> Void)?
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:158:13: warning: let 'hasPreviousSignalAction' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
156 | private var crashHandlerReturnsForTests = false
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
    |             |- warning: let 'hasPreviousSignalAction' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'hasPreviousSignalAction' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 | private var previousExceptionHandler: (@convention(c) (NSException) -> Void)?
160 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:159:13: warning: var 'previousExceptionHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
159 | private var previousExceptionHandler: (@convention(c) (NSException) -> Void)?
    |             |- warning: var 'previousExceptionHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'previousExceptionHandler' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'previousExceptionHandler' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// Writes the context into the buffer the handler isn't reading, then flips to it.
[8/14] Compiling Apparent Platform.swift
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Platform.swift:187:122: warning: capture of 'handler' with non-sendable type '(AppState, (() -> Void)?) -> Void' in a '@Sendable' closure
185 |         #elseif canImport(AppKit)
186 |         // A Mac app is "away" when it is hidden or another app is in front.
187 |         tokens.append(nc.addObserver(forName: NSApplication.didBecomeActiveNotification, object: nil, queue: nil) { _ in handler(.active, nil) })
    |                                                                                                                          |- warning: capture of 'handler' with non-sendable type '(AppState, (() -> Void)?) -> Void' in a '@Sendable' closure
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
188 |         tokens.append(nc.addObserver(forName: NSApplication.didResignActiveNotification, object: nil, queue: nil) { _ in handler(.background, nil) })
189 |         tokens.append(nc.addObserver(forName: NSApplication.willTerminateNotification, object: nil, queue: nil) { _ in handler(.background, nil) })
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Platform.swift:188:122: warning: capture of 'handler' with non-sendable type '(AppState, (() -> Void)?) -> Void' in a '@Sendable' closure
186 |         // A Mac app is "away" when it is hidden or another app is in front.
187 |         tokens.append(nc.addObserver(forName: NSApplication.didBecomeActiveNotification, object: nil, queue: nil) { _ in handler(.active, nil) })
188 |         tokens.append(nc.addObserver(forName: NSApplication.didResignActiveNotification, object: nil, queue: nil) { _ in handler(.background, nil) })
    |                                                                                                                          |- warning: capture of 'handler' with non-sendable type '(AppState, (() -> Void)?) -> Void' in a '@Sendable' closure
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
189 |         tokens.append(nc.addObserver(forName: NSApplication.willTerminateNotification, object: nil, queue: nil) { _ in handler(.background, nil) })
190 |         #endif
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Platform.swift:189:120: warning: capture of 'handler' with non-sendable type '(AppState, (() -> Void)?) -> Void' in a '@Sendable' closure
187 |         tokens.append(nc.addObserver(forName: NSApplication.didBecomeActiveNotification, object: nil, queue: nil) { _ in handler(.active, nil) })
188 |         tokens.append(nc.addObserver(forName: NSApplication.didResignActiveNotification, object: nil, queue: nil) { _ in handler(.background, nil) })
189 |         tokens.append(nc.addObserver(forName: NSApplication.willTerminateNotification, object: nil, queue: nil) { _ in handler(.background, nil) })
    |                                                                                                                        |- warning: capture of 'handler' with non-sendable type '(AppState, (() -> Void)?) -> Void' in a '@Sendable' closure
    |                                                                                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 |         #endif
191 |     }
[9/14] Compiling Apparent StoreKit.swift
[10/14] Compiling Apparent Screens.swift
[11/14] Compiling Apparent Apparent.swift
[12/14] Emitting module Apparent
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Client.swift:178:16: warning: static property 'writeWait' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
176 |     private func now() -> Int64 { Int64((wallClock().timeIntervalSince1970 * 1000).rounded(.down)) }
177 |     /// A disk write that takes longer than this no longer holds sending or `ready()` (SPEC 4). It still finishes.
178 |     static var writeWait: TimeInterval = 1
    |                |- warning: static property 'writeWait' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'writeWait' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'writeWait' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |     private let writer = DispatchQueue(label: "fyi.apparent.sdk.write")
180 |     private let writeLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:20:24: warning: static property 'installed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     var saveBeforeCrash: (() -> Void)?
 19 |
 20 |     private static var installed: CrashReporter?
    |                        |- warning: static property 'installed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'installed' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'installed' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |     private init(directory: URL) { self.directory = directory }
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:150:13: warning: var 'crashSignalPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 |
149 | private let contextCapacity = 4096
150 | private var crashSignalPath: UnsafeMutablePointer<CChar>?
    |             |- warning: var 'crashSignalPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashSignalPath' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashSignalPath' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
152 | private var crashContextLengths: (Int, Int) = (0, 0)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:151:13: warning: var 'crashContextBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 | private let contextCapacity = 4096
150 | private var crashSignalPath: UnsafeMutablePointer<CChar>?
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
    |             |- warning: var 'crashContextBuffers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashContextBuffers' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashContextBuffers' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | private var crashContextLengths: (Int, Int) = (0, 0)
153 | private var crashContextActive: Int32 = 0
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:152:13: warning: var 'crashContextLengths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | private var crashSignalPath: UnsafeMutablePointer<CChar>?
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
152 | private var crashContextLengths: (Int, Int) = (0, 0)
    |             |- warning: var 'crashContextLengths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashContextLengths' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashContextLengths' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | private var crashContextActive: Int32 = 0
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:153:13: warning: var 'crashContextActive' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
151 | private var crashContextBuffers: (UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<UInt8>)?
152 | private var crashContextLengths: (Int, Int) = (0, 0)
153 | private var crashContextActive: Int32 = 0
    |             |- warning: var 'crashContextActive' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashContextActive' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashContextActive' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
155 | private var crashExceptionWritten: Int32 = 0
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:154:13: warning: var 'crashScratch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 | private var crashContextLengths: (Int, Int) = (0, 0)
153 | private var crashContextActive: Int32 = 0
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
    |             |- warning: var 'crashScratch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashScratch' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashScratch' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 | private var crashExceptionWritten: Int32 = 0
156 | private var crashHandlerReturnsForTests = false
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:155:13: warning: var 'crashExceptionWritten' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
153 | private var crashContextActive: Int32 = 0
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
155 | private var crashExceptionWritten: Int32 = 0
    |             |- warning: var 'crashExceptionWritten' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashExceptionWritten' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashExceptionWritten' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | private var crashHandlerReturnsForTests = false
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:156:13: warning: var 'crashHandlerReturnsForTests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
154 | private var crashScratch: UnsafeMutablePointer<UInt8>?
155 | private var crashExceptionWritten: Int32 = 0
156 | private var crashHandlerReturnsForTests = false
    |             |- warning: var 'crashHandlerReturnsForTests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'crashHandlerReturnsForTests' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'crashHandlerReturnsForTests' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:157:13: warning: let 'previousSignalActions' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<sigaction>' may have shared mutable state; this is an error in the Swift 6 language mode
155 | private var crashExceptionWritten: Int32 = 0
156 | private var crashHandlerReturnsForTests = false
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
    |             |- warning: let 'previousSignalActions' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<sigaction>' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'previousSignalActions' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
159 | private var previousExceptionHandler: (@convention(c) (NSException) -> Void)?
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:158:13: warning: let 'hasPreviousSignalAction' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
156 | private var crashHandlerReturnsForTests = false
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
    |             |- warning: let 'hasPreviousSignalAction' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'hasPreviousSignalAction' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 | private var previousExceptionHandler: (@convention(c) (NSException) -> Void)?
160 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Crash.swift:159:13: warning: var 'previousExceptionHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
157 | private let previousSignalActions = UnsafeMutablePointer<sigaction>.allocate(capacity: 64)
158 | private let hasPreviousSignalAction = UnsafeMutablePointer<Bool>.allocate(capacity: 64)
159 | private var previousExceptionHandler: (@convention(c) (NSException) -> Void)?
    |             |- warning: var 'previousExceptionHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'previousExceptionHandler' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'previousExceptionHandler' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// Writes the context into the buffer the handler isn't reading, then flips to it.
[13/14] Compiling Apparent Links.swift
[14/14] Compiling Apparent Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Client.swift:178:16: warning: static property 'writeWait' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
176 |     private func now() -> Int64 { Int64((wallClock().timeIntervalSince1970 * 1000).rounded(.down)) }
177 |     /// A disk write that takes longer than this no longer holds sending or `ready()` (SPEC 4). It still finishes.
178 |     static var writeWait: TimeInterval = 1
    |                |- warning: static property 'writeWait' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'writeWait' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'writeWait' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |     private let writer = DispatchQueue(label: "fyi.apparent.sdk.write")
180 |     private let writeLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Client.swift:234:57: warning: capture of 'done' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
232 |             l.observe { [weak self] s, done in
233 |                 guard let self else { done?(); return }
234 |                 self.q.async { self.onAppState(s, done: done) }
    |                                                         |- warning: capture of 'done' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
    |                                                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
235 |             }
236 |             lifecycle = l
Build complete! (10.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Apparent",
  "name" : "Apparent",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Apparent",
      "targets" : [
        "Apparent"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ApparentTests",
      "module_type" : "SwiftTarget",
      "name" : "ApparentTests",
      "path" : "Tests/ApparentTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ApparentTests/Fixtures",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BehaviourTests.swift",
        "CrashTests.swift",
        "DeliveryTests.swift",
        "FeaturesTests.swift",
        "HardeningTests.swift",
        "Helpers.swift",
        "Round2Tests.swift",
        "WireTests.swift"
      ],
      "target_dependencies" : [
        "Apparent"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Apparent",
      "module_type" : "SwiftTarget",
      "name" : "Apparent",
      "path" : "Sources/Apparent",
      "product_memberships" : [
        "Apparent"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Apparent/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Apparent.swift",
        "Client.swift",
        "Crash.swift",
        "Links.swift",
        "Platform.swift",
        "Screens.swift",
        "StoreKit.swift",
        "Value.swift",
        "Wire.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.