Skip to content

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

@ehemmete

Description

@ehemmete

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions