The Swift Package Index logo.Swift Package Index

Build Information

Successful build of BrainFlow, reference main (56cbdc), with Swift 6.1 for macOS (SPM) on 29 Jun 2026 15:12:04 UTC.

Swift 6 data race errors: 6

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: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tsvvladimir/brainflow-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tsvvladimir/brainflow-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 56cbdc6 Release BrainFlow Swift dev package
Cloned https://github.com/tsvvladimir/brainflow-swift.git
Revision (git rev-parse @):
56cbdc6651427f12c20e5a2ab750eb7903d04581
SUCCESS checkout https://github.com/tsvvladimir/brainflow-swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tsvvladimir/brainflow-swift.git
https://github.com/tsvvladimir/brainflow-swift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BrainFlow",
  "name" : "BrainFlow",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "BrainFlow",
      "targets" : [
        "BrainFlow"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MLModule",
      "module_type" : "BinaryTarget",
      "name" : "MLModule",
      "path" : "remote/archive/MLModule.xcframework.zip",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "DataHandler",
      "module_type" : "BinaryTarget",
      "name" : "DataHandler",
      "path" : "remote/archive/DataHandler.xcframework.zip",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "BrainFlow",
      "module_type" : "SwiftTarget",
      "name" : "BrainFlow",
      "path" : "Sources/BrainFlow",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
        "BoardShim.swift",
        "BrainFlowEnums.swift",
        "BrainFlowError.swift",
        "BrainFlowNative.swift",
        "BrainFlowParams.swift",
        "BrainFlowTypes.swift",
        "DataFilter.swift",
        "MLModel.swift"
      ],
      "target_dependencies" : [
        "BoardController",
        "DataHandler",
        "MLModule"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BoardController",
      "module_type" : "BinaryTarget",
      "name" : "BoardController",
      "path" : "remote/archive/BoardController.xcframework.zip",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "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/5] Write sources
[1/5] Copying MLModule.framework
[2/5] Copying DataHandler.framework
[3/5] Copying BoardController.framework
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/14] Compiling BrainFlow DataFilter.swift
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/DataFilter.swift:765:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
763 |
764 |     private static let lock = NSLock()
765 |     private static var cached: DataFilterNative?
    |                        |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
766 |
767 |     static func withData<T>(_ body: (DataFilterNative) throws -> T) throws -> T {
[7/14] Compiling BrainFlow BrainFlowNative.swift
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:139:16: warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
137 |
138 | enum NativeLibraries {
139 |     static let boardController = LazyNativeLibrary(names: [
    |                |- warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'boardController' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |         platformLibraryName(base: "BoardController"),
141 |         "BoardController"
    :
161 | }
162 |
163 | final class LazyNativeLibrary {
    |             `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 |     private let names: [String]
165 |     private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:143:16: warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
141 |         "BoardController"
142 |     ])
143 |     static let dataHandler = LazyNativeLibrary(names: [
    |                |- warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'dataHandler' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |         platformLibraryName(base: "DataHandler"),
145 |         "DataHandler"
    :
161 | }
162 |
163 | final class LazyNativeLibrary {
    |             `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 |     private let names: [String]
165 |     private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:147:16: warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
145 |         "DataHandler"
146 |     ])
147 |     static let mlModule = LazyNativeLibrary(names: [
    |                |- warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'mlModule' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         platformLibraryName(base: "MLModule"),
149 |         "MLModule"
    :
161 | }
162 |
163 | final class LazyNativeLibrary {
    |             `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 |     private let names: [String]
165 |     private let lock = NSLock()
[8/14] Compiling BrainFlow BrainFlowParams.swift
[9/14] Compiling BrainFlow MLModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/MLModel.swift:115:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 |
114 |     private static let lock = NSLock()
115 |     private static var cached: MLModelNative?
    |                        |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 |     static func withML<T>(_ body: (MLModelNative) throws -> T) throws -> T {
[10/14] Compiling BrainFlow BrainFlowTypes.swift
[11/14] Compiling BrainFlow BrainFlowError.swift
[12/14] Emitting module BrainFlow
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BoardShim.swift:593:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
591 |
592 |     private static let lock = NSLock()
593 |     private static var cached: BoardShimNative?
    |                        |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
594 |
595 |     static func withBoard<T>(_ body: (BoardShimNative) throws -> T) throws -> T {
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:139:16: warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
137 |
138 | enum NativeLibraries {
139 |     static let boardController = LazyNativeLibrary(names: [
    |                |- warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'boardController' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |         platformLibraryName(base: "BoardController"),
141 |         "BoardController"
    :
161 | }
162 |
163 | final class LazyNativeLibrary {
    |             `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 |     private let names: [String]
165 |     private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:143:16: warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
141 |         "BoardController"
142 |     ])
143 |     static let dataHandler = LazyNativeLibrary(names: [
    |                |- warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'dataHandler' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 |         platformLibraryName(base: "DataHandler"),
145 |         "DataHandler"
    :
161 | }
162 |
163 | final class LazyNativeLibrary {
    |             `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 |     private let names: [String]
165 |     private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:147:16: warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
145 |         "DataHandler"
146 |     ])
147 |     static let mlModule = LazyNativeLibrary(names: [
    |                |- warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'mlModule' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         platformLibraryName(base: "MLModule"),
149 |         "MLModule"
    :
161 | }
162 |
163 | final class LazyNativeLibrary {
    |             `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 |     private let names: [String]
165 |     private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/DataFilter.swift:765:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
763 |
764 |     private static let lock = NSLock()
765 |     private static var cached: DataFilterNative?
    |                        |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
766 |
767 |     static func withData<T>(_ body: (DataFilterNative) throws -> T) throws -> T {
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/MLModel.swift:115:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 |
114 |     private static let lock = NSLock()
115 |     private static var cached: MLModelNative?
    |                        |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 |     static func withML<T>(_ body: (MLModelNative) throws -> T) throws -> T {
[13/14] Compiling BrainFlow BrainFlowEnums.swift
[14/14] Compiling BrainFlow BoardShim.swift
/Users/admin/builder/spi-builder-workspace/Sources/BrainFlow/BoardShim.swift:593:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
591 |
592 |     private static let lock = NSLock()
593 |     private static var cached: BoardShimNative?
    |                        |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
594 |
595 |     static func withBoard<T>(_ body: (BoardShimNative) throws -> T) throws -> T {
Build complete! (6.62s)
Downloading binary artifact https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip
Downloading binary artifact https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip
Downloading binary artifact https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip
[16375/452313] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip
Downloaded https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip (0.41s)
[16375/2325922] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip
[359119/3934296] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip, https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip
Downloaded https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip (0.56s)
Downloaded https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip (0.59s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BrainFlow",
  "name" : "BrainFlow",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "BrainFlow",
      "targets" : [
        "BrainFlow"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MLModule",
      "module_type" : "BinaryTarget",
      "name" : "MLModule",
      "path" : "remote/archive/MLModule.xcframework.zip",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "DataHandler",
      "module_type" : "BinaryTarget",
      "name" : "DataHandler",
      "path" : "remote/archive/DataHandler.xcframework.zip",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "BrainFlow",
      "module_type" : "SwiftTarget",
      "name" : "BrainFlow",
      "path" : "Sources/BrainFlow",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
        "BoardShim.swift",
        "BrainFlowEnums.swift",
        "BrainFlowError.swift",
        "BrainFlowNative.swift",
        "BrainFlowParams.swift",
        "BrainFlowTypes.swift",
        "DataFilter.swift",
        "MLModel.swift"
      ],
      "target_dependencies" : [
        "BoardController",
        "DataHandler",
        "MLModule"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BoardController",
      "module_type" : "BinaryTarget",
      "name" : "BoardController",
      "path" : "remote/archive/BoardController.xcframework.zip",
      "product_memberships" : [
        "BrainFlow"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.9"
}
Done.