The Swift Package Index logo.Swift Package Index

Build Information

Successful build of PowerMetricsKit, reference 1.1.1 (e7ef50), with Swift 6.4 for macOS (SPM) on 20 Sep 2026 20:38:02 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Androp0v/PowerMetricsKit.git
Reference: 1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Androp0v/PowerMetricsKit
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at e7ef509 Fix compilation errors for iOS
Cloned https://github.com/Androp0v/PowerMetricsKit.git
Revision (git rev-parse @):
e7ef5098b177b7dc43f4a60cdd6580a41fbd2577
SUCCESS checkout https://github.com/Androp0v/PowerMetricsKit.git at 1.1.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Androp0v/PowerMetricsKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 96]
[Planning deferred tasks]
[23 / 39]
[27 / 40] SampleThreads
[34 / 57]
[37 / 57]
[40 / 57] PowerMetricsKit
[51 / 135] SampleThreads
[59 / 135]
[65 / 135]
[70 / 135]
[72 / 135]
[78 / 135]
[81 / 135]
[84 / 135]
[90 / 135]
[93 / 135]
[95 / 135]
[96 / 135]
[106 / 135]
[108 / 135]
[109 / 135]
[112 / 135]
[114 / 135]
[126 / 135] PowerMetricsKit
[127 / 135] PowerMetricsKit
[132 / 135] PowerMetricsKit
[134 / 135] PowerMetricsKit
Build complete! (11.05 sec)
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin (1.38s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (4.26s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (1.36s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.08s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
warning: /Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift:50:14 non-breaking space (U+00A0) used instead of regular space: FixIt(sourceRange: XCBuild.SwiftBuildMessage.DiagnosticInfo.SourceRange(path: "/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift", startLine: 50, startColumn: 14, endLine: 50, endColumn: 16), textToInsert: " ")
warning: /Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:36:62 non-breaking space (U+00A0) used instead of regular space: FixIt(sourceRange: XCBuild.SwiftBuildMessage.DiagnosticInfo.SourceRange(path: "/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift", startLine: 36, startColumn: 62, endLine: 36, endColumn: 64), textToInsert: " ")
warning: /Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:41:78 non-breaking space (U+00A0) used instead of regular space: FixIt(sourceRange: XCBuild.SwiftBuildMessage.DiagnosticInfo.SourceRange(path: "/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift", startLine: 41, startColumn: 78, endLine: 41, endColumn: 80), textToInsert: " ")
warning: /Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:42:70 non-breaking space (U+00A0) used instead of regular space: FixIt(sourceRange: XCBuild.SwiftBuildMessage.DiagnosticInfo.SourceRange(path: "/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift", startLine: 42, startColumn: 70, endLine: 42, endColumn: 72), textToInsert: " ")
/Users/admin/builder/spi-builder-workspace/Sources/SampleThreads/get_cpu_usage.c:23:45: warning: passing 'int *' to parameter of type 'natural_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
   23 |                                             &num_CPUs,
      |                                             ^~~~~~~~~
In module 'Darwin' imported from /Users/admin/builder/spi-builder-workspace/Sources/SampleThreads/get_cpu_usage.c:11:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/usr/include/mach/mach_host.h:140:13: note: passing argument to parameter 'out_processor_count' here
  140 |         natural_t *out_processor_count,
      |                    ^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift:50:14: warning: non-breaking space (U+00A0) used instead of regular space
 48 |         }
 49 |         nodeLock.lock()
 50 |         defer {
    |              `- warning: non-breaking space (U+00A0) used instead of regular space
 51 |             nodeLock.unlock()
 52 |         }
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:36:62: warning: non-breaking space (U+00A0) used instead of regular space
 34 |         }
 35 |         guard isFull else {
 36 |             return Array(array.prefix(index)).compactMap { $0 }
    |                                                              `- warning: non-breaking space (U+00A0) used instead of regular space
 37 |         }
 38 |         if index == (length - 1) {
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:41:78: warning: non-breaking space (U+00A0) used instead of regular space
 39 |             return array.map { $0! }
 40 |         } else {
 41 |             let firstHalf = Array(array.suffix(length - index - 1)).map { $0! }
    |                                                                              `- warning: non-breaking space (U+00A0) used instead of regular space
 42 |             let secondHalf = Array(array.prefix(index + 1)).map { $0! }
 43 |             return firstHalf + secondHalf
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:42:70: warning: non-breaking space (U+00A0) used instead of regular space
 40 |         } else {
 41 |             let firstHalf = Array(array.suffix(length - index - 1)).map { $0! }
 42 |             let secondHalf = Array(array.prefix(index + 1)).map { $0! }
    |                                                                      `- warning: non-breaking space (U+00A0) used instead of regular space
 43 |             return firstHalf + secondHalf
 44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:36:62: warning: non-breaking space (U+00A0) used instead of regular space
 34 |         }
 35 |         guard isFull else {
 36 |             return Array(array.prefix(index)).compactMap { $0 }
    |                                                              `- warning: non-breaking space (U+00A0) used instead of regular space
 37 |         }
 38 |         if index == (length - 1) {
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:41:78: warning: non-breaking space (U+00A0) used instead of regular space
 39 |             return array.map { $0! }
 40 |         } else {
 41 |             let firstHalf = Array(array.suffix(length - index - 1)).map { $0! }
    |                                                                              `- warning: non-breaking space (U+00A0) used instead of regular space
 42 |             let secondHalf = Array(array.prefix(index + 1)).map { $0! }
 43 |             return firstHalf + secondHalf
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/Models/RingBuffer.swift:42:70: warning: non-breaking space (U+00A0) used instead of regular space
 40 |         } else {
 41 |             let firstHalf = Array(array.suffix(length - index - 1)).map { $0! }
 42 |             let secondHalf = Array(array.prefix(index + 1)).map { $0! }
    |                                                                      `- warning: non-breaking space (U+00A0) used instead of regular space
 43 |             return firstHalf + secondHalf
 44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift:50:14: warning: non-breaking space (U+00A0) used instead of regular space
 48 |         }
 49 |         nodeLock.lock()
 50 |         defer {
    |              `- warning: non-breaking space (U+00A0) used instead of regular space
 51 |             nodeLock.unlock()
 52 |         }
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift:27:16: warning: variable 'insertionPoint' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 25 |
 26 |     private func insertInGraph(at insertionPoint: MutableBacktraceInfo?, newInfo: MutableBacktraceInfo) {
 27 |         if var insertionPoint {
    |                `- warning: variable 'insertionPoint' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 28 |             // precondition(addressToBacktrace.keys.contains(insertionPoint.address))
 29 |             insertionPoint.children.append(newInfo)
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift:53:16: warning: variable 'existingInfo' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 51 |             nodeLock.unlock()
 52 |         }
 53 |         if var existingInfo = _nodes.first(where: { $0.address == outermostAddress }) {
    |                `- warning: variable 'existingInfo' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 54 |
 55 |             // Add the energy information from the new backtrace to the outermost node
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/BacktraceGraph.swift:72:31: warning: variable 'matchingChild' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 70 |                         remainingAddresses: Array(remainingAddresses)
 71 |                     )
 72 |                 } else if var matchingChild = insertionPoint.children.first(where: { $0.address == nextAddress }) {
    |                               `- warning: variable 'matchingChild' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 73 |                     // Add the energy information from the new backtrace to the children
 74 |                     matchingChild.energy += newBacktrace.energy ?? .zero
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/SampleThreads/SymbolicateBacktraces.swift:31:46: warning: value 'symbolNamePointer' was defined but never used; consider replacing with boolean test [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
29 |             let imageName = (String(cString: dlInfo.dli_fname) as NSString).lastPathComponent
30 |             let addressInImage = address - (unsafeBitCast(dlInfo.dli_fbase, to: UInt64.self))
31 |             let symbolName: String? = if let symbolNamePointer = dlInfo.dli_sname {
   |                                              `- warning: value 'symbolNamePointer' was defined but never used; consider replacing with boolean test [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
32 |                 (String(cString: dlInfo.dli_sname) as NSString).lastPathComponent
33 |             } else {
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/Views/Charts/CoreUsageChart/CoreUsageChart.swift:44:33: warning: non-constant range: argument must be an integer literal
42 |             if let cpuUsage = cpuUsageManager.getCPUUsage() {
43 |                 Grid {
44 |                     ForEach(0..<numberOfRows(cpuUsage: cpuUsage)) { rowIndex in
   |                                 `- warning: non-constant range: argument must be an integer literal
45 |                         GridRow {
46 |                             ForEach(0..<numberOfColumns(row: rowIndex, cpuUsage: cpuUsage)) { columnIndex in
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/Views/Charts/CoreUsageChart/CoreUsageChart.swift:46:41: warning: non-constant range: argument must be an integer literal
44 |                     ForEach(0..<numberOfRows(cpuUsage: cpuUsage)) { rowIndex in
45 |                         GridRow {
46 |                             ForEach(0..<numberOfColumns(row: rowIndex, cpuUsage: cpuUsage)) { columnIndex in
   |                                         `- warning: non-constant range: argument must be an integer literal
47 |                                 CoreUsageMeter(
48 |                                     usage: cpuUsage.coreUsages[rowIndex * 4 + columnIndex],
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/Views/Charts/CoreUsageChart/CoreUsageMeter.swift:28:29: warning: non-constant range: argument must be an integer literal
26 |         ZStack(alignment: .topLeading) {
27 |             VStack(spacing: spacing) {
28 |                 ForEach(0..<numberOfLevels) { level in
   |                             `- warning: non-constant range: argument must be an integer literal
29 |                     Rectangle()
30 |                         .foregroundStyle(levelColor(for: level))
/Users/admin/builder/spi-builder-workspace/Sources/PowerMetricsKit/Views/CallStack/CallStackViewModel.swift:31:17: warning: initialization of immutable value 'sortedFlatBacktraces' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
29 |                     .sorted(by: { $0.energy > $1.energy })
30 |             }
31 |             let sortedFlatBacktraces = await symbolicator.flatBacktraces
   |                 `- warning: initialization of immutable value 'sortedFlatBacktraces' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
32 |                 .sorted(by: { $0.energy > $1.energy })
33 |
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "PowerMetricsKit",
  "name" : "PowerMetricsKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "PowerMetricsKit",
      "targets" : [
        "PowerMetricsKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5",
    "6"
  ],
  "targets" : [
    {
      "c99name" : "SampleThreads",
      "module_type" : "ClangTarget",
      "name" : "SampleThreads",
      "path" : "Sources/SampleThreads",
      "product_memberships" : [
        "PowerMetricsKit"
      ],
      "sources" : [
        "get_backtrace.c",
        "get_cpu_usage.c",
        "sample_threads.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PowerMetricsKit",
      "module_type" : "SwiftTarget",
      "name" : "PowerMetricsKit",
      "path" : "Sources/PowerMetricsKit",
      "product_memberships" : [
        "PowerMetricsKit"
      ],
      "sources" : [
        "SampleThreads/BacktraceGraph.swift",
        "SampleThreads/CPUUsageManager.swift",
        "SampleThreads/Models/Backtrace.swift",
        "SampleThreads/Models/CPUUsage.swift",
        "SampleThreads/Models/CoreType.swift",
        "SampleThreads/Models/CoreUsage.swift",
        "SampleThreads/Models/Power.swift",
        "SampleThreads/Models/PowerMetricsConfig.swift",
        "SampleThreads/Models/RingBuffer.swift",
        "SampleThreads/Models/SampleThreadsResult.swift",
        "SampleThreads/Models/ThreadSample.swift",
        "SampleThreads/SampleThreadsManager.swift",
        "SampleThreads/SampledResultsHistory.swift",
        "SampleThreads/SymbolicateBacktraces.swift",
        "Views/CallStack/BacktraceInfoView.swift",
        "Views/CallStack/BacktraceRowContentView.swift",
        "Views/CallStack/BacktraceRowView.swift",
        "Views/CallStack/CallStackView.swift",
        "Views/CallStack/CallStackViewModel.swift",
        "Views/Charts/Color+Extensions.swift",
        "Views/Charts/CoreTypePowerChart.swift",
        "Views/Charts/CoreUsageChart/CoreUsageChart.swift",
        "Views/Charts/CoreUsageChart/CoreUsageMeter.swift",
        "Views/Charts/ThreadPowerChart/ThreadPowerChart.swift",
        "Views/Charts/ThreadPowerChart/ThreadPowerChartModel.swift",
        "Views/Charts/ThreadPowerChart/ThreadPowerRow.swift",
        "Views/Models/ChartType.swift",
        "Views/PowerWidgetOptionsView.swift",
        "Views/PowerWidgetView.swift",
        "Views/PowerWidgetViewModel.swift"
      ],
      "target_dependencies" : [
        "SampleThreads"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.