Comments (7)
I was able to get this working by installing xcode and then running:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
from cargo-instruments.
Ah yea you need to install Xcode to get the instruments app, I think the standard route is now via the Mac App Store.
from cargo-instruments.
I have the same issue. Also installed via Homebrew, and I have the devtools installed.
MacOS Ventura 13.0, ARM-Based Mac M2.
# Checking Instruments app
❯ open /Applications/Xcode.app/Contents/Applications/Instruments.app
(this command correctly opens the Instruments app)
# Checking developer tools
❯ xcode-select -p
/Library/Developer/CommandLineTools
❯ which xcrun
/usr/bin/xcrun
❯ which xctrace
/usr/bin/xctrace
# Trying to run it like in the README
❯ cargo instruments -t Allocations
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Profiling target/debug/myapp with template 'Allocations'
Failed instruments errored: xcrun: error: unable to find utility "xctrace", not a developer tool or in PATH
from cargo-instruments.
Does anything here solve this for you? #42
from cargo-instruments.
I saw that thread before, but it doesn't seem to be the solution. People were pointing to some things in XCode settings, but either something is wrong with my installation of xcode or it isn't shipped in mac as a separate program anymore. I've noticed that xcode-select -p
suggests it's installed:
/Library/Developer/CommandLineTools
but that there's no XCode program listed in Applications or system preferences
from cargo-instruments.
At any rate, I didn't end up getting a Rust profiler to work and I'm not sure I will have time to investigate this further on my setup, so I'll close this issue unless you want to look into it further. Thanks for responding!
from cargo-instruments.
I had xcode-beta
installed - apparently that also doesn't work. Need to install xcode
itself, not the beta.
Good way to install is using xcodes
from cargo-instruments.
Related Issues (20)
- failed to get `chrono` as a dependency of package ... HOT 5
- Forces a full update the crates.io index HOT 4
- Many Instrument video links in Readme don't work HOT 2
- Make a new release HOT 2
- Mention feature `vendored-openssl` in installation instructions HOT 1
- Fails to link libstd on macOS HOT 1
- Support --manifest-path? HOT 2
- Failed to execute loader thread for liboainject.dylib HOT 8
- cargo instruments hanging after OS upgrade HOT 2
- cargo-instruments fails with "Failed instruments errored:" HOT 4
- Cannot run benches in the main target, examples, or libs HOT 2
- Can't seem to find xctrace HOT 2
- Generated .trace files can't be opened by Instruments.app - Document Missing Template Error HOT 6
- Passing ARGS which begin with `--`? HOT 1
- source viewer problem HOT 3
- Support on Apple Silicon
- Support integration test targets
- `NSInvalidArgumentException`: `[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance` HOT 1
- The document “xyz.trace” could not be opened. Document Missing Template Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-instruments.