【发布时间】:2018-09-29 13:31:49
【问题描述】:
随着在 High Sierra 上运行 Xcode 到 9.3 的最后一次更新,我意识到 Instruments 不再工作了。
当我尝试使用 Open Developer Tool > Instruments 从 Xcode 中打开它时,我可以看到模板选择器对话框,但只要我选择一个,就会出现一个对话框:
The document "Allocations.tracetemplate" could not be opened. Instruments cannot open files of this type.
Allocations.tracetemplate 无法处理,因为 Instruments 无法打开此类文件。
所有模板都会出现这种情况。
我已经尝试完全重新安装 Xcode。在我删除此处描述的所有文件之前:How to Completely Uninstall Xcode and Clear All Settings
我也试过用 sudo chmod a+rwxt /Library/Caches/com.apple.dt.instruments (Xcode 6.3.2: Instruments keep asking for trace template?) 但这个文件在我的电脑上不存在。
我还安装了 Xcode 9.4 beta 1,但这也没有解决问题。
我也无法在我的计算机上的任何位置找到这些模板文件,例如 Allocations.tracetemplate。
任何帮助将不胜感激;-)
【问题讨论】:
-
是的,我在更新 Xcode 9.3 后也会发生这种情况。有什么解决办法吗?
-
我也是。尝试了几件事,也使用来宾帐户。还将其中一个模板从应用程序中复制到其他地方。
-
对我来说,更新到 High Sierra 10.13.4 后问题就消失了 :-) 模板又可以工作了 :-)
-
我已经完成了所有操作:所有终端命令、所有缓存和 AppSupport 的删除、更新的 Xcode、更新的 High Sierra 10.13.5... Instruments 不会打开任何自己的模板
标签: ios xcode instruments reinstall