The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenPanel, reference main (365143), with Swift 6.1 for macOS (SPM) on 1 Apr 2026 06:13:05 UTC.

Swift 6 data race errors: 1

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.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Openpanel-dev/swift-sdk.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Openpanel-dev/swift-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3651435 Merge pull request #5 from srna-lib/main
Cloned https://github.com/Openpanel-dev/swift-sdk.git
Revision (git rev-parse @):
36514353ce875db5c917a49489bda5419840ba25
SUCCESS checkout https://github.com/Openpanel-dev/swift-sdk.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Openpanel-dev/swift-sdk.git
https://github.com/Openpanel-dev/swift-sdk.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenPanel",
  "name" : "OpenPanel",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "OpenPanel",
      "targets" : [
        "OpenPanel"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenPanel",
      "module_type" : "SwiftTarget",
      "name" : "OpenPanel",
      "path" : "Sources/OpenPanel",
      "product_memberships" : [
        "OpenPanel"
      ],
      "sources" : [
        "OpenPanel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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 OpenPanel
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:301:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenPanel' may have shared mutable state; this is an error in the Swift 6 language mode
298 | // MARK: - OpenPanel Class
299 |
300 | public class OpenPanel {
    |              `- note: class 'OpenPanel' does not conform to the 'Sendable' protocol
301 |     public static let shared = OpenPanel()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenPanel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
302 |
303 |     private let api: Api
[4/4] Compiling OpenPanel OpenPanel.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:301:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenPanel' may have shared mutable state; this is an error in the Swift 6 language mode
298 | // MARK: - OpenPanel Class
299 |
300 | public class OpenPanel {
    |              `- note: class 'OpenPanel' does not conform to the 'Sendable' protocol
301 |     public static let shared = OpenPanel()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenPanel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
302 |
303 |     private let api: Api
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:309:52: warning: capture of 'self' with non-sendable type 'OpenPanel' in a '@Sendable' closure
298 | // MARK: - OpenPanel Class
299 |
300 | public class OpenPanel {
    |              `- note: class 'OpenPanel' does not conform to the 'Sendable' protocol
301 |     public static let shared = OpenPanel()
302 |
    :
307 |     private var global: [String: Any]? {
308 |         get { globalQueue.sync { _global } }
309 |         set { globalQueue.async(flags: .barrier) { self._global = newValue } }
    |                                                    `- warning: capture of 'self' with non-sendable type 'OpenPanel' in a '@Sendable' closure
310 |     }
311 |     private var queue: [TrackHandlerPayload] = []
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:309:67: warning: capture of 'newValue' with non-sendable type '[String : Any]?' in a '@Sendable' closure
307 |     private var global: [String: Any]? {
308 |         get { globalQueue.sync { _global } }
309 |         set { globalQueue.async(flags: .barrier) { self._global = newValue } }
    |                                                                   `- warning: capture of 'newValue' with non-sendable type '[String : Any]?' in a '@Sendable' closure
310 |     }
311 |     private var queue: [TrackHandlerPayload] = []
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:396:38: warning: capture of 'self' with non-sendable type 'OpenPanel' in a '@Sendable' closure
298 | // MARK: - OpenPanel Class
299 |
300 | public class OpenPanel {
    |              `- note: class 'OpenPanel' does not conform to the 'Sendable' protocol
301 |     public static let shared = OpenPanel()
302 |
    :
394 |         let operation = BlockOperation {
395 |             Task {
396 |                 let updatedPayload = self.ensureProfileId(payload)
    |                                      `- warning: capture of 'self' with non-sendable type 'OpenPanel' in a '@Sendable' closure
397 |                 let result = await self.api.fetch(path: "/track", data: updatedPayload)
398 |                 switch result {
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:396:59: warning: capture of 'payload' with non-sendable type 'TrackHandlerPayload' in a '@Sendable' closure
 91 | // MARK: - Payload Types
 92 |
 93 | public enum TrackHandlerPayload: Codable {
    |             `- note: consider making enum 'TrackHandlerPayload' conform to the 'Sendable' protocol
 94 |     case track(TrackPayload)
 95 |     case increment(IncrementPayload)
    :
394 |         let operation = BlockOperation {
395 |             Task {
396 |                 let updatedPayload = self.ensureProfileId(payload)
    |                                                           `- warning: capture of 'payload' with non-sendable type 'TrackHandlerPayload' in a '@Sendable' closure
397 |                 let result = await self.api.fetch(path: "/track", data: updatedPayload)
398 |                 switch result {
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:396:38: warning: capture of 'self' with non-sendable type 'OpenPanel' in an isolated closure; this is an error in the Swift 6 language mode
298 | // MARK: - OpenPanel Class
299 |
300 | public class OpenPanel {
    |              `- note: class 'OpenPanel' does not conform to the 'Sendable' protocol
301 |     public static let shared = OpenPanel()
302 |
    :
394 |         let operation = BlockOperation {
395 |             Task {
396 |                 let updatedPayload = self.ensureProfileId(payload)
    |                                      `- warning: capture of 'self' with non-sendable type 'OpenPanel' in an isolated closure; this is an error in the Swift 6 language mode
397 |                 let result = await self.api.fetch(path: "/track", data: updatedPayload)
398 |                 switch result {
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:396:59: warning: capture of 'payload' with non-sendable type 'TrackHandlerPayload' in an isolated closure; this is an error in the Swift 6 language mode
 91 | // MARK: - Payload Types
 92 |
 93 | public enum TrackHandlerPayload: Codable {
    |             `- note: consider making enum 'TrackHandlerPayload' conform to the 'Sendable' protocol
 94 |     case track(TrackPayload)
 95 |     case increment(IncrementPayload)
    :
394 |         let operation = BlockOperation {
395 |             Task {
396 |                 let updatedPayload = self.ensureProfileId(payload)
    |                                                           `- warning: capture of 'payload' with non-sendable type 'TrackHandlerPayload' in an isolated closure; this is an error in the Swift 6 language mode
397 |                 let result = await self.api.fetch(path: "/track", data: updatedPayload)
398 |                 switch result {
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:424:37: warning: capture of 'properties' with non-sendable type '[String : Any]' in a '@Sendable' closure
422 |         shared.globalQueue.async(flags: .barrier) {
423 |             if var global = shared._global {
424 |                 for (key, value) in properties {
    |                                     `- warning: capture of 'properties' with non-sendable type '[String : Any]' in a '@Sendable' closure
425 |                     global[key] = value
426 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenPanel/OpenPanel.swift:460:81: warning: expression implicitly coerced from 'Any??' to 'Any'
458 |                     var mergedProperties = global
459 |                     if let payloadProperties = payload.properties {
460 |                         mergedProperties.merge(payloadProperties) { (_, new) in (new as AnyObject).value }
    |                                                                                 |                  |- note: force-unwrap the value to avoid this warning
    |                                                                                 |                  `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
    |                                                                                 `- warning: expression implicitly coerced from 'Any??' to 'Any'
461 |                     }
462 |                     updatedPayload.properties = mergedProperties.mapValues { AnyCodable($0) }
Build complete! (7.16s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenPanel",
  "name" : "OpenPanel",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "OpenPanel",
      "targets" : [
        "OpenPanel"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenPanel",
      "module_type" : "SwiftTarget",
      "name" : "OpenPanel",
      "path" : "Sources/OpenPanel",
      "product_memberships" : [
        "OpenPanel"
      ],
      "sources" : [
        "OpenPanel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.