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

僤鯓⒐⒋嵵緔 提交于 2019-12-23 10:27:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!