cmyr / cargo-instruments

A cargo plugin to generate Xcode Instruments trace files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run on OSX Catalina

Nashenas88 opened this issue · comments

Running cargo instruments on my project fails with the error below.

$ cargo instruments
    Finished dev [unoptimized + debuginfo] target(s) in 0.30s
   Profiling target/debug/documents
      Failed instruments errored: xcode-select: error: tool 'instruments' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Versions:
OSX: 10.15.2
Xcode/Instruments: 11.3
xcode-select: 2373
rust: 1.40.0

Looks like it was an issue with how I had xcode-select setup (Though I only ever installed xcode after the upgrade, not sure how it got messed up). Running this fixed it:
sudo xcode-select -s /Applications/Xcode.app