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 Device, reference main (848ee8), with Swift 5.9 for macOS (SPM) on 25 Oct 2024 21:02:39 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.55.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kudit/Device.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kudit/Device
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 848ee8f v2.6.0
Cloned https://github.com/kudit/Device.git
Revision (git rev-parse @):
848ee8fd26586738170deac076de69d1dd6bffa9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kudit/Device.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD
https://github.com/kudit/Device.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/1] Copying SymbolAssets.xcassets
[2/36] Emitting module Compatibility
[3/39] Compiling Compatibility Triangle.swift
[4/39] Compiling Compatibility SwiftUI.swift
[5/39] Compiling Compatibility TestUI.swift
[6/39] Compiling Compatibility CodingJSON.swift
[7/39] Compiling Compatibility CodingParameters.swift
[8/39] Compiling Compatibility Date.swift
[9/39] Compiling Compatibility Dictionary.swift
[10/39] Compiling Compatibility ClearableTextField.swift
[11/39] Compiling Compatibility Menu.swift
[12/39] Compiling Compatibility Placard.swift
[13/39] Compiling Compatibility Graphics.swift
[14/39] Compiling Compatibility Network.swift
[15/39] Compiling Compatibility ObservableObject.swift
[16/39] Compiling Compatibility Test.swift
[17/39] Compiling Compatibility Double.swift
[18/39] Compiling Compatibility Enum.swift
[19/39] Compiling Compatibility Int.swift
[20/39] Compiling Compatibility OrderedDictionary.swift
[21/39] Compiling Compatibility CloudStorageSync.swift
[22/39] Compiling Compatibility DataStore.swift
[23/39] Compiling Compatibility Debug.swift
[24/39] Compiling Compatibility FileManager.swift
[25/39] Compiling Compatibility OrderedSet.swift
[26/39] Compiling Compatibility String.swift
[27/39] Compiling Compatibility Threading.swift
[28/39] Compiling Compatibility URL.swift
[29/39] Compiling Compatibility UserDefaultsBacked.swift
[30/39] Compiling Compatibility Array.swift
[31/39] Compiling Compatibility Codable.swift
[32/39] Compiling Compatibility CodingFoundation.swift
[33/39] Compiling Compatibility Version.swift
[34/39] Compiling Compatibility Backport.swift
[35/39] Compiling Compatibility BytesView.swift
[36/39] Compiling Compatibility Compatibility.swift
[37/39] Compiling Compatibility Application.swift
[38/39] Compiling Compatibility CloudStatus.swift
[39/39] Compiling Compatibility CloudStorage.swift
[40/45] Compiling Color Colorsets.swift
[41/45] Compiling Color CSSColors.swift
[42/45] Emitting module Color
[43/45] Compiling Color ColorUI.swift
[44/45] Compiling Color Color.swift
[45/45] Compiling Color Compatibility.swift
[46/62] Compiling Device Version.swift
[47/63] Compiling Device SystemInfoView.swift
[48/63] Compiling Device resource_bundle_accessor.swift
[49/63] Compiling Device StorageInfoView.swift
[50/63] Compiling Device Symbols.swift
[51/63] Compiling Device EnvironmentsView.swift
[52/63] Compiling Device Hardware.swift
[53/63] Compiling Device Screen.swift
[54/63] Compiling Device ScreenInfoView.swift
[55/63] Compiling Device DeviceInfoView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeviceInfoView.swift:73:38: error: instance method 'appendInterpolation(_:formatter:)' requires that 'String.Element' (aka 'Character') inherit from 'NSObject'
            output = output + Text("\(symbol.symbolName.first ?? "x")")
                                     ^
SwiftUI.LocalizedStringKey:11:30: note: where 'Subject' = 'String.Element' (aka 'Character')
        public mutating func appendInterpolation<Subject>(_ subject: Subject, formatter: Formatter? = nil) where Subject : NSObject
                             ^
[56/63] Compiling Device DeviceKitBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeviceInfoView.swift:73:38: error: instance method 'appendInterpolation(_:formatter:)' requires that 'String.Element' (aka 'Character') inherit from 'NSObject'
            output = output + Text("\(symbol.symbolName.first ?? "x")")
                                     ^
SwiftUI.LocalizedStringKey:11:30: note: where 'Subject' = 'String.Element' (aka 'Character')
        public mutating func appendInterpolation<Subject>(_ subject: Subject, formatter: Formatter? = nil) where Subject : NSObject
                             ^
[57/63] Emitting module Device
[58/63] Compiling Device BatteryView.swift
[59/63] Compiling Device CurrentDevice.swift
[60/63] Compiling Device CurrentDeviceInfoView.swift
[61/63] Compiling Device Device.swift
[62/63] Compiling Device AttributeListView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:16:24: error: variable 'self.attribute' used before being initialized
        self.attribute = attribute
                       ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:17:21: error: variable 'self.device' used before being initialized
        self.device = device
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:41:25: error: variable 'self.device' used before being initialized
            self.device = device
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:43:25: error: variable 'self.device' used before being initialized
            self.device = Device.current
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:45:21: error: variable 'self.header' used before being initialized
        self.header = header
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:46:25: error: variable 'self.attributes' used before being initialized
        self.attributes = attributes
                        ^
[63/63] Compiling Device Battery.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:16:24: error: variable 'self.attribute' used before being initialized
        self.attribute = attribute
                       ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:17:21: error: variable 'self.device' used before being initialized
        self.device = device
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:41:25: error: variable 'self.device' used before being initialized
            self.device = device
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:43:25: error: variable 'self.device' used before being initialized
            self.device = Device.current
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:45:21: error: variable 'self.header' used before being initialized
        self.header = header
                    ^
/Users/admin/builder/spi-builder-workspace/Sources/AttributeListView.swift:46:25: error: variable 'self.attributes' used before being initialized
        self.attributes = attributes
                        ^
error: fatalError
Fetching https://github.com/kudit/Color
Fetching https://github.com/kudit/Compatibility
[1/988] Fetching compatibility
[377/1370] Fetching compatibility, color
Fetched https://github.com/kudit/Color (2.00s)
Fetched https://github.com/kudit/Compatibility (2.00s)
Computing version for https://github.com/kudit/Color
Computed https://github.com/kudit/Color at 1.1.4 (0.47s)
Computing version for https://github.com/kudit/Compatibility
Computed https://github.com/kudit/Compatibility at 1.3.15 (0.54s)
Creating working copy for https://github.com/kudit/Color
Working copy of https://github.com/kudit/Color resolved at 1.1.4
Creating working copy for https://github.com/kudit/Compatibility
Working copy of https://github.com/kudit/Compatibility resolved at 1.3.15
BUILD FAILURE 5.9 macosSpm