The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StorageSenseKit, reference main (a3476d), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 21:56:45 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/c2p-cmd/StorageSenseKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c2p-cmd/StorageSenseKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a3476d8 Update README.md
Cloned https://github.com/c2p-cmd/StorageSenseKit.git
Revision (git rev-parse @):
a3476d87e21c3104205ac6a8008c0f49d9ab5c21
SUCCESS checkout https://github.com/c2p-cmd/StorageSenseKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/c2p-cmd/StorageSenseKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module StorageSenseKit
/Users/admin/builder/spi-builder-workspace/Sources/StorageSenseKit/StorageSenseKit.swift:4:26: error: 'Logger' is only available in macOS 11.0 or newer
 2 | import OSLog
 3 |
 4 | fileprivate let logger = Logger(subsystem: "StorageSenceKit", category: "StorageStatus")
   |                 |        `- error: 'Logger' is only available in macOS 11.0 or newer
   |                 `- note: add @available attribute to enclosing let
 5 |
 6 | /// StorageSenseKit is a library for getting storage status of the device
[4/4] Compiling StorageSenseKit StorageSenseKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/StorageSenseKit/StorageSenseKit.swift:4:26: error: 'Logger' is only available in macOS 11.0 or newer
 2 | import OSLog
 3 |
 4 | fileprivate let logger = Logger(subsystem: "StorageSenceKit", category: "StorageStatus")
   |                 |        `- error: 'Logger' is only available in macOS 11.0 or newer
   |                 `- note: add @available attribute to enclosing let
 5 |
 6 | /// StorageSenseKit is a library for getting storage status of the device
/Users/admin/builder/spi-builder-workspace/Sources/StorageSenseKit/StorageSenseKit.swift:76:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
55 |
56 | /// Create a new storage status object
57 | extension StorageStatus {
   | `- note: add @available attribute to enclosing extension
58 |     /// Create a new storage status object
59 |     /// - Throws: `StorageError` if the storage status cannot be retrieved
60 |     /// - Returns: A new `StorageStatus` object
61 |     public static func create() throws(StorageError) -> StorageStatus {
   |                        `- note: add @available attribute to enclosing static method
62 |         let url = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true)
63 |         do {
   :
74 |             return StorageStatus(systemSize: systemSize, freeSpace: freeSpace)
75 |         } catch {
76 |             logger.error("Failed with error: \(error)")
   |                          |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
   |                          `- note: add 'if #available' version check
77 |             throw StorageError()
78 |         }
/Users/admin/builder/spi-builder-workspace/Sources/StorageSenseKit/StorageSenseKit.swift:76:47: error: 'appendInterpolation(_:privacy:attributes:)' is only available in macOS 11.0 or newer
55 |
56 | /// Create a new storage status object
57 | extension StorageStatus {
   | `- note: add @available attribute to enclosing extension
58 |     /// Create a new storage status object
59 |     /// - Throws: `StorageError` if the storage status cannot be retrieved
60 |     /// - Returns: A new `StorageStatus` object
61 |     public static func create() throws(StorageError) -> StorageStatus {
   |                        `- note: add @available attribute to enclosing static method
62 |         let url = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true)
63 |         do {
   :
74 |             return StorageStatus(systemSize: systemSize, freeSpace: freeSpace)
75 |         } catch {
76 |             logger.error("Failed with error: \(error)")
   |                                               |- error: 'appendInterpolation(_:privacy:attributes:)' is only available in macOS 11.0 or newer
   |                                               `- note: add 'if #available' version check
77 |             throw StorageError()
78 |         }
BUILD FAILURE 6.2 macosSpm