Skip to content
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

Does not work on M1 Macs #177

Open
konrad1977 opened this issue Mar 20, 2022 · 5 comments
Open

Does not work on M1 Macs #177

konrad1977 opened this issue Mar 20, 2022 · 5 comments

Comments

@konrad1977
Copy link

konrad1977 commented Mar 20, 2022

After some investigation of my own swift-stuff for emacs I noticed that "uname -a" is different in iTerm compared to emacs shell. iTerm (rosetta) returns x86_64 while Emacs returns arm64.

The only way I could get xcodebuild to run correctly on M1 is if its prepended with "env /usr/bin/arch - x86_64 \\".
Just to be clear, the command runs oki but the -destination with iOS Simulator doesnt work without it.

Skärmavbild 2022-03-19 kl  12 01 53

@bestlem
Copy link

bestlem commented Apr 5, 2022

Why not use iTerm under arm?

@konrad1977
Copy link
Author

It has nothing to do with the terminal, but the xcrun and xcodebuild that fails to build for the correct architecture.

@rgri
Copy link

rgri commented Jul 30, 2023

Is this at all related to a Cannot invoke executable error?

@taku0
Copy link
Member

taku0 commented Jul 30, 2023

I don't have Apple silicon Mac yet. Please provide details (steps to reproduce, expected behavior, actual behavior, and possible fix (if any)).

@bestlem
Copy link

bestlem commented Jul 30, 2023

I think everything is working as expected.
uname -a reports what architecture is running.

On an M1 it is arm64 unless you explicitly do something.
Here the OP has told iTerm to run under Rosetta and so the code software in iTerm is running using the Intel architecture. For most users of iTerm who run natively you would get uname giving arm as the architecture)
Emacs is running from the GUI and so is running natively.

I think the question here is why is the OP running iTerm under Rosetta - what is the issue they are trying to solve with that?

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

No branches or pull requests

4 participants