问题
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 ;-)
回答1:
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
来源:https://stackoverflow.com/questions/49914412/xcode-9-3-and-update-to-high-sierra-instruments-cant-open-tracetemplate-file