Xcode 9.3并更新为High Sierra:即使完全重新安装,仪器也无法打开* .tracetemplate文件 [英] Xcode 9.3 and update to High Sierra: Instruments can't open *.tracetemplate files even after full reinstall
问题描述
在High Sierra上运行的Xcode最新更新为9.3时,我意识到Instruments
不再起作用.
With the last update of Xcode to 9.3 running on High Sierra, I realized that Instruments
is not working any more.
当我尝试使用Open Developer Tool > Instruments
从Xcode内部打开它时,我可以看到模板选择器对话框,但是一旦我选择了它,就会出现一个对话框:
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
无法处理,因为仪器无法打开此类型的文件.
Allocations.tracetemplate
could not be handled because Instruments cannot open files of this type.
所有模板都会发生这种情况.
This happens with all templates.
我已经尝试过完全重新安装Xcode.在删除所有文件之前,请按照以下说明进行操作:如何完全卸载Xcode并清除所有设置
I already tried to reinstall Xcode completely. Before I deleted all files like described here: How to Completely Uninstall Xcode and Clear All Settings
我也尝试使用 须藤chmod a + rwxt/Library/Caches/com.apple.dt.instruments ( Xcode 6.3.2:仪器一直在要求跟踪模板?) 但是此文件在我的计算机上不存在.
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.
我还安装了Xcode 9.4 beta 1,但这也不能解决问题.
I also installed Xcode 9.4 beta 1 but that didn't solve the issue either.
我在计算机上的任何地方都找不到像Allocations.tracetemplate这样的模板文件.
I also can't find these template files like Allocations.tracetemplate anywhere on my computer.
任何帮助将不胜感激;-)
Any help would be very appreciated ;-)
推荐答案
我在HD上仍然有一些旧的开发人员工具.删除了以下内容,然后又可以正常工作:
I still had some old Developer Tools on the HD. Removed following things and it worked again:
- 〜/图书馆/应用程序支持/仪器
- 我在/Developer/中发现的所有内容都模糊地附着在Instruments上
- 尤其是"3.0/Instruments/
- 和旧的Instruments.app
在终端机中也是defaults delete com.apple.dt.Instruments
这篇关于Xcode 9.3并更新为High Sierra:即使完全重新安装,仪器也无法打开* .tracetemplate文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!