beltex / SMCKit

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

SMCKit does not open in Swift Cocoa Project #40

Open raihan02 opened 4 years ago

raihan02 commented 4 years ago

Here I have faced a problem. SMCKit library is opened console program but not in swift project. Please tell me how I recover this issues. Thanks in advance.

davidwernhart commented 4 years ago

Hi, you have to disable the "App Sandbox" entitlement in the yourAppName.entitlements file. This is because Apple does not allow IOKit (which is used by SMCKit) to be used from inside a sandbox. Hope that helps!