beltex / SMCKit

Apple SMC library & tool
https://beltex.github.io/SMCKit
MIT License
475 stars 55 forks source link

SMC.swift:373: Assertion failed: SMCParamStruct size is != 80 #49

Open ehemmete opened 6 months ago

ehemmete commented 6 months ago

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)