Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

iStats returns an error on ARM processors (M1) #53

Open
yuvalgrofman opened this issue Jun 26, 2021 · 4 comments
Open

iStats returns an error on ARM processors (M1) #53

yuvalgrofman opened this issue Jun 26, 2021 · 4 comments

Comments

@yuvalgrofman
Copy link

Screen Shot 2021-06-26 at 11 52 15

@roele
Copy link
Owner

roele commented Jun 26, 2021

The error mach-o, but wrong architecture indicates that the iStats Ruby gem expects another chip architecture. I assume you're using a new M1 chip?

Looks like the iStats gem does not yet support M1 (see #107).

@roele roele changed the title error after installing even though i have the istats command line commands iStats returns an error on ARM processors (M1) Oct 30, 2021
@roele
Copy link
Owner

roele commented Oct 30, 2021

Prepending the command with arch -arm64 in the index.jsx seems to resolve the issue but iStats does not work 100%. Fan and battery stats seem to work but others return no values or are missing.

@roele roele added bug and removed bug labels Oct 30, 2021
@stevespringett
Copy link

I was able to resolve this issue by installing Ruby 2.7 from Homebrew and updating the path to Ruby to ensure the homebrew version preceeded the Apple version. The homebrew version of Ruby is not a universal binary. Its specific to aarm which resolves this issue.

However, once past this issue, you'll likely run into others. Specifically, battery and fan info is incomplete.
Screen Shot 2021-11-03 at 9 20 05 PM

@roele
Copy link
Owner

roele commented Nov 4, 2021

Thanks for that workaround @stevespringett.
Unfortunately istats does not support M1 (yet) and my C and SMC knowledge are inexistent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants