Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9.3 and update to High Sierra: Instruments can't open *.tracetemplate files even after full reinstall

Tags:

With the last update of Xcode to 9.3 running on High Sierra, I realized that Instruments is not working any more.

When I try to open it from inside Xcode using Open Developer Tool > Instruments, I can see the template chooser dialog but as soon I pick one, a dialog appears:

The document "Allocations.tracetemplate" could not be opened. Instruments cannot open files of this type.

Allocations.tracetemplate could not be handled because Instruments cannot open files of this type.

This happens with all templates.

I already tried to reinstall Xcode completely. Before I deleted all files like described here: How to Completely Uninstall Xcode and Clear All Settings

I also tried to use sudo chmod a+rwxt /Library/Caches/com.apple.dt.instruments (Xcode 6.3.2: Instruments keep asking for trace template?) but this file does not exist on my computer.

I also installed Xcode 9.4 beta 1 but that didn't solve the issue either.

I also can't find these template files like Allocations.tracetemplate anywhere on my computer.

Any help would be very appreciated ;-)

like image 717
M. Glasmeier Avatar asked Apr 19 '18 06:04

M. Glasmeier


1 Answers

I still had some old Developer Tools on the HD. Removed following things and it worked again:

  • ~/Library/Application Support/Instruments
  • everything I found in /Developer/ vaguely attached to Instruments
  • especially "3.0/Instruments/
  • and the old Instruments.app

also defaults delete com.apple.dt.Instruments in Terminal

like image 152
mahal tertin Avatar answered Sep 28 '22 17:09

mahal tertin