The Swift Package Index logo.Swift Package Index

Build Information

Successful build of DevelopmentKit, reference Dev (0b1f40), with Swift 6.1 for macOS (SPM) on 24 Feb 2026 10:40:36 UTC.

Swift 6 data race errors: 2

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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/milleyin/DevelopmentKit.git
Reference: Dev
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/milleyin/DevelopmentKit
 * branch            Dev        -> FETCH_HEAD
 * [new branch]      Dev        -> origin/Dev
HEAD is now at 0b1f408 Merge pull request #40 from milleyin/0.0.10(2025063)Log(<T>)函数优化
Cloned https://github.com/milleyin/DevelopmentKit.git
Revision (git rev-parse @):
0b1f4086a7c6ab9cb0e240afab335ded2cc1059b
SUCCESS checkout https://github.com/milleyin/DevelopmentKit.git at Dev
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/milleyin/DevelopmentKit.git
https://github.com/milleyin/DevelopmentKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DevelopmentKit",
  "name" : "DevelopmentKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "DevelopmentKit",
      "targets" : [
        "DevelopmentKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DevelopmentKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DevelopmentKitTests",
      "path" : "Tests",
      "sources" : [
        "DevelopmentKitTests.swift"
      ],
      "target_dependencies" : [
        "DevelopmentKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DevelopmentKit",
      "module_type" : "SwiftTarget",
      "name" : "DevelopmentKit",
      "path" : "Sources/DevelopmentKit",
      "product_memberships" : [
        "DevelopmentKit"
      ],
      "sources" : [
        "API/Error.swift",
        "API/Network.swift",
        "API/SysInfo.swift",
        "API/Utilities.swift",
        "DevelopmentKit.swift",
        "Ext./Date.swift",
        "Ext./Double.swift",
        "Ext./String.swift",
        "Ext./UIApplication.swift",
        "Log/Log.swift",
        "Log/LogLocalManager.swift",
        "Models.swift",
        "NavigationRouter.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/15] Compiling DevelopmentKit Models.swift
[4/16] Compiling DevelopmentKit Double.swift
[5/16] Compiling DevelopmentKit Log.swift
[6/16] Compiling DevelopmentKit UIApplication.swift
[7/16] Compiling DevelopmentKit LogLocalManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/Log/LogLocalManager.swift:69:19: warning: cannot access property 'flushTask' here in nonisolated initializer; this is an error in the Swift 6 language mode
 67 |
 68 |         // 修复问题 3: 保存 Task 引用,以便后续可以取消
 69 |         flushTask = Task {
    |                   |      `- note: after making a copy of 'self', only nonisolated properties of 'self' can be accessed from this init
    |                   `- warning: cannot access property 'flushTask' here in nonisolated initializer; this is an error in the Swift 6 language mode
 70 |             await self.periodicFlush()
 71 |         }
[8/16] Compiling DevelopmentKit DevelopmentKit.swift
[9/16] Compiling DevelopmentKit Date.swift
[10/16] Compiling DevelopmentKit String.swift
[11/16] Compiling DevelopmentKit NavigationRouter.swift
[12/16] Compiling DevelopmentKit SysInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/SysInfo.swift:269:35: warning: reference to var 'vm_kernel_page_size' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
267 |             sysctlbyname("hw.memsize", &totalMemory, &sizeOfMem, nil, 0)
268 |
269 |             let pageSize = UInt64(vm_kernel_page_size)
    |                                   `- warning: reference to var 'vm_kernel_page_size' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
270 |             let free = Double(stats.free_count) * Double(pageSize)
271 |             let inactive = Double(stats.inactive_count) * Double(pageSize)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/vm_page_size.h:59:25: note: var declared here
57 |
58 |
59 | extern  vm_size_t       vm_kernel_page_size     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
   |                         `- note: var declared here
60 | extern  vm_size_t       vm_kernel_page_mask     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
61 | extern  int             vm_kernel_page_shift    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/Utilities.swift:273:28: warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
271 | public enum LaunchAtLogin {
272 |     private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
273 |     fileprivate static let observable = Observable()
    |                            |- warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'observable' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
274 |
275 |     /**
    :
310 |
311 | extension LaunchAtLogin {
312 |     final class Observable: ObservableObject {
    |                 `- note: class 'Observable' does not conform to the 'Sendable' protocol
313 |         var isEnabled: Bool {
314 |             get { LaunchAtLogin.isEnabled }
[13/16] Compiling DevelopmentKit Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/SysInfo.swift:269:35: warning: reference to var 'vm_kernel_page_size' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
267 |             sysctlbyname("hw.memsize", &totalMemory, &sizeOfMem, nil, 0)
268 |
269 |             let pageSize = UInt64(vm_kernel_page_size)
    |                                   `- warning: reference to var 'vm_kernel_page_size' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
270 |             let free = Double(stats.free_count) * Double(pageSize)
271 |             let inactive = Double(stats.inactive_count) * Double(pageSize)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/vm_page_size.h:59:25: note: var declared here
57 |
58 |
59 | extern  vm_size_t       vm_kernel_page_size     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
   |                         `- note: var declared here
60 | extern  vm_size_t       vm_kernel_page_mask     __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
61 | extern  int             vm_kernel_page_shift    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/Utilities.swift:273:28: warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
271 | public enum LaunchAtLogin {
272 |     private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
273 |     fileprivate static let observable = Observable()
    |                            |- warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'observable' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
274 |
275 |     /**
    :
310 |
311 | extension LaunchAtLogin {
312 |     final class Observable: ObservableObject {
    |                 `- note: class 'Observable' does not conform to the 'Sendable' protocol
313 |         var isEnabled: Bool {
314 |             get { LaunchAtLogin.isEnabled }
[14/16] Compiling DevelopmentKit Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/Network.swift:67:29: warning: capture of 'promise' with non-sendable type '(Result<NetworkType, DevelopmentKit.Network.NetworkError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 65 |                     monitor.pathUpdateHandler = { [weak monitor] path in
 66 |                         if path.usesInterfaceType(.wifi) {
 67 |                             promise(.success(.wifi))
    |                             |- warning: capture of 'promise' with non-sendable type '(Result<NetworkType, DevelopmentKit.Network.NetworkError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 68 |                         } else if path.usesInterfaceType(.cellular) {
 69 |                             promise(.success(.cellular))
[15/16] Compiling DevelopmentKit Network.swift
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/Network.swift:67:29: warning: capture of 'promise' with non-sendable type '(Result<NetworkType, DevelopmentKit.Network.NetworkError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 65 |                     monitor.pathUpdateHandler = { [weak monitor] path in
 66 |                         if path.usesInterfaceType(.wifi) {
 67 |                             promise(.success(.wifi))
    |                             |- warning: capture of 'promise' with non-sendable type '(Result<NetworkType, DevelopmentKit.Network.NetworkError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 68 |                         } else if path.usesInterfaceType(.cellular) {
 69 |                             promise(.success(.cellular))
[16/16] Emitting module DevelopmentKit
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/API/Utilities.swift:273:28: warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
271 | public enum LaunchAtLogin {
272 |     private static let logger = Logger(subsystem: "com.sindresorhus.LaunchAtLogin", category: "main")
273 |     fileprivate static let observable = Observable()
    |                            |- warning: static property 'observable' is not concurrency-safe because non-'Sendable' type 'LaunchAtLogin.Observable' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'observable' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
274 |
275 |     /**
    :
310 |
311 | extension LaunchAtLogin {
312 |     final class Observable: ObservableObject {
    |                 `- note: class 'Observable' does not conform to the 'Sendable' protocol
313 |         var isEnabled: Bool {
314 |             get { LaunchAtLogin.isEnabled }
/Users/admin/builder/spi-builder-workspace/Sources/DevelopmentKit/Log/LogLocalManager.swift:69:19: warning: cannot access property 'flushTask' here in nonisolated initializer; this is an error in the Swift 6 language mode
 67 |
 68 |         // 修复问题 3: 保存 Task 引用,以便后续可以取消
 69 |         flushTask = Task {
    |                   |      `- note: after making a copy of 'self', only nonisolated properties of 'self' can be accessed from this init
    |                   `- warning: cannot access property 'flushTask' here in nonisolated initializer; this is an error in the Swift 6 language mode
 70 |             await self.periodicFlush()
 71 |         }
Build complete! (9.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DevelopmentKit",
  "name" : "DevelopmentKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "DevelopmentKit",
      "targets" : [
        "DevelopmentKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DevelopmentKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DevelopmentKitTests",
      "path" : "Tests",
      "sources" : [
        "DevelopmentKitTests.swift"
      ],
      "target_dependencies" : [
        "DevelopmentKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DevelopmentKit",
      "module_type" : "SwiftTarget",
      "name" : "DevelopmentKit",
      "path" : "Sources/DevelopmentKit",
      "product_memberships" : [
        "DevelopmentKit"
      ],
      "sources" : [
        "API/Error.swift",
        "API/Network.swift",
        "API/SysInfo.swift",
        "API/Utilities.swift",
        "DevelopmentKit.swift",
        "Ext./Date.swift",
        "Ext./Double.swift",
        "Ext./String.swift",
        "Ext./UIApplication.swift",
        "Log/Log.swift",
        "Log/LogLocalManager.swift",
        "Models.swift",
        "NavigationRouter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.