The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftSensors, reference 0.0.1 (f80560), with Swift 6.0 for macOS (SPM) on 21 Mar 2025 02:59:44 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/getmirai/swift-sensors.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/getmirai/swift-sensors
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at f805608 add sources
Cloned https://github.com/getmirai/swift-sensors.git
Revision (git rev-parse @):
f805608cedad5e05ca1a95cf28ffd6c899497adc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/getmirai/swift-sensors.git at 0.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-sensors",
      "name": "SwiftSensors",
      "url": "https://github.com/getmirai/swift-sensors.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-sensors",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/getmirai/swift-sensors.git
[9/444] Fetching swift-sensors
Fetched https://github.com/getmirai/swift-sensors.git from cache (0.95s)
Creating working copy for https://github.com/getmirai/swift-sensors.git
Working copy of https://github.com/getmirai/swift-sensors.git resolved at 0.0.1 (f805608)
warning: '.resolve-product-dependencies': dependency 'swift-sensors' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/getmirai/swift-sensors.git
https://github.com/getmirai/swift-sensors.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftSensors",
  "name" : "SwiftSensors",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSensors",
      "targets" : [
        "SwiftSensors"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSensors",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSensors",
      "path" : "Sources/SwiftSensors",
      "product_memberships" : [
        "SwiftSensors"
      ],
      "sources" : [
        "PowerSensors.swift",
        "SensorBase.swift",
        "SensorFormatter.swift",
        "SwiftSensors.swift",
        "SystemStats.swift",
        "ThermalSensors.swift"
      ],
      "target_dependencies" : [
        "PrivateAPI"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PrivateAPI",
      "module_type" : "ClangTarget",
      "name" : "PrivateAPI",
      "path" : "Sources/PrivateAPI",
      "product_memberships" : [
        "SwiftSensors"
      ],
      "sources" : [
        "PrivateAPI.m"
      ],
      "target_dependencies" : [
        "IOKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IOKit",
      "module_type" : "BinaryTarget",
      "name" : "IOKit",
      "path" : "Frameworks/IOKit.xcframework",
      "product_memberships" : [
        "SwiftSensors"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-5BDAB9E9C0126B9D.txt
[2/3] Compiling PrivateAPI PrivateAPI.m
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Emitting module SwiftSensors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[5/10] Compiling SwiftSensors SwiftSensors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[6/10] Compiling SwiftSensors PowerSensors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[7/10] Compiling SwiftSensors ThermalSensors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[8/10] Compiling SwiftSensors SensorFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[9/10] Compiling SwiftSensors SystemStats.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[10/10] Compiling SwiftSensors SensorBase.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/8] Compiling SwiftSensors ThermalSensors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling SwiftSensors SwiftSensors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[4/8] Emitting module SwiftSensors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[5/8] Compiling SwiftSensors SensorBase.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[6/8] Compiling SwiftSensors SensorFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[7/8] Compiling SwiftSensors SystemStats.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
[8/8] Compiling SwiftSensors PowerSensors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSensors/SystemStats.swift:4:8: error: no such module 'UIKit'
  2 | import Foundation
  3 | import os
  4 | import UIKit
    |        `- error: no such module 'UIKit'
  5 |
  6 | /// A structure representing memory statistics
BUILD FAILURE 6.0 macosSpm