cmyr / cargo-instruments

A cargo plugin to generate Xcode Instruments trace files
MIT License
672 stars 34 forks source link

Can't seem to find xctrace #86

Open EdmundsEcho opened 1 year ago

EdmundsEcho commented 1 year ago

This tool may well save me a lot of pain as I'm not a frequent user of instruments.

I ran into the following: Despite being able to run xctrace in the terminal, I get the following error.

> cargo instruments --template sys 

> Failed instruments errored: xcrun: error: unable to find utility "xctrace", not a developer tool or in PATH

Any ideas?

cmyr commented 1 year ago

Maybe there's something helpful in https://github.com/cmyr/cargo-instruments/issues/42 ?

s0l0ist commented 1 year ago

This fixed it for me: https://github.com/nodejs/node-gyp/issues/569

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer