Open hungkhoaitay opened 3 years ago
It looks like you might have Xcode running via rosetta? Are you running a recent version?
related to your other issue, you want brew config
to say Rosetta 2: false
at the bottom.
I've been facing a similar error, wasn't able to fix it though yet as it seems easier to run xctrace
manually than dealing with this.
To give some context: cargo instruments
is using open
utility to run xctrace
. And the open
binary on my machine has two architectures listed:
$ file `which open`
/usr/bin/open: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/open (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/open (for architecture arm64e): Mach-O 64-bit executable arm64e
What this means is, since arch
is arm64
- this would automatically run in compatibility mode. I'm pretty sure this is the culprit, as otherwise this is running fine.
I see the same thing from the command line, but cargo instruments
works as expected, for me. :(
I'm facing this exact same issue on my M2 machine! Did you resolve this @ruseinov?
I'm facing this exact same issue on my M2 machine! Did you resolve this @ruseinov?
To be honest I didn't bother. I don't remember exactly, but I think I ended up using xctrace
manually.
The fix should probably entail using xctrace
directly as opposed to doing it through open
.
Thank you