Giter VIP home page Giter VIP logo

Comments (6)

ruseinov avatar ruseinov commented on May 28, 2024 1

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.

from cargo-instruments.

cmyr avatar cmyr commented on May 28, 2024

It looks like you might have Xcode running via rosetta? Are you running a recent version?

from cargo-instruments.

cmyr avatar cmyr commented on May 28, 2024

related to your other issue, you want brew config to say Rosetta 2: false at the bottom.

from cargo-instruments.

cmyr avatar cmyr commented on May 28, 2024

I see the same thing from the command line, but cargo instruments works as expected, for me. :(

from cargo-instruments.

dukeeagle avatar dukeeagle commented on May 28, 2024

I'm facing this exact same issue on my M2 machine! Did you resolve this @ruseinov?

from cargo-instruments.

ruseinov avatar ruseinov commented on May 28, 2024

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.

from cargo-instruments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.