Trying to use SMC.swift in a command line tool for macOS 13 and up. Building fails with
SMC.swift:373: Assertion failed: SMCParamStruct size is != 80
The app will build if I comment that out, but then trying to
let allKnownSensors = try SMCKit.allKnownTemperatureSensors().sorted { $0.name < $1.name }
results in
Swift/ErrorType.swift:200: Fatal error: Error raised at top level: smc_test.SMCKit.SMCError.unknown(kIOReturn: 268435459, SMCResult: 0)
Trying to use SMC.swift in a command line tool for macOS 13 and up. Building fails with
SMC.swift:373: Assertion failed: SMCParamStruct size is != 80
The app will build if I comment that out, but then trying to
let allKnownSensors = try SMCKit.allKnownTemperatureSensors().sorted { $0.name < $1.name }
results inSwift/ErrorType.swift:200: Fatal error: Error raised at top level: smc_test.SMCKit.SMCError.unknown(kIOReturn: 268435459, SMCResult: 0)