-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on M1 #26
Comments
In terminal, what does…
…produce on an M1? |
@deirdresm just returns nothing and a 0 exit code:
|
Interesting. I was looking at the sources earlier on opensource.apple.com, but don't remember seeing M1-specific stuff relating to CPU speed, but I'll check it next time I'm in that codebase (which will likely be soon). |
Weird, looks like it should be supported: https://github.com/EntityFX/anybench/blob/1209866ed4890276e449958c1b6845307c47581a/results/apple-arm-m1/Dhry.txt I didn't notice the trailing 1 in your command on mobile, maybe try it without? |
So as of right now, our software is compiling Intel only and compiles correctly (so runs in Rosetta). It just crashes when running on M1 because of that optional not unwrapping correctly. However, I just downloaded the project and tried to run the test on my M1 MacBook and got this compile error:
|
I had Xcode compile the test under Rosetta and it compiled. Here are the tests that fail under Rosetta Test-CwlUtils-2021.04.07_15-34-04--0400.xcresult.zip |
This line crashes on M1 Macs because the try fails
CwlUtils/Sources/CwlUtils/CwlSysctl.swift
Line 164 in 0bfc458
The text was updated successfully, but these errors were encountered: