Open konrad1977 opened 2 years ago
Why not use iTerm under arm?
It has nothing to do with the terminal, but the xcrun and xcodebuild that fails to build for the correct architecture.
Is this at all related to a Cannot invoke executable
error?
I don't have Apple silicon Mac yet. Please provide details (steps to reproduce, expected behavior, actual behavior, and possible fix (if any)).
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?
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.