Instruments应用程序无法打开tracetemplate文件 [英] Instruments application can't open tracetemplate file
问题描述
当我打开Instruments应用程序并尝试为我的模拟器(Time Profiler或任何其他)选择任何模板时,我会获得Import Trace窗口,其中包含来自'/Applications/Xcode.app/Contents/Applications/的所有可能的tracetemplates文件Instruments.app/Contents/Resources/templates'目录。然后我选择任何一个,然后我得到警告消息'文档'时间Profiler.tracetemplate无法打开。'
但是在命令行仪器工作正常。
如何找到这种行为的原因?
When I open "Instruments" application and try choose any template for my simulator (Time Profiler or any other) I get "Import Trace" window with all possible tracetemplates files from '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates' directory. Then I choose any one and after it I get alert message 'The document "Time Profiler.tracetemplate" could not be opened.' But in command line instruments works correct. How can I find reasons of such behaviour?
同样从控制台应用程序日志中我得到:
appleeventsd(62)拒绝文件读取 - 元数据/库
Also from console application logs I get: "appleeventsd(62) deny file-read-metadata /Library"
推荐答案
在新的Apple开发者论坛中找到解决方案。
Found a solution in the new Apple Developer Forums.
从终端运行:
sudo chmod a + rwxt /Library/Caches/com.apple.dt.instruments
https:/ /forums.developer.apple.com/thread/6441 了解更多信息。
这篇关于Instruments应用程序无法打开tracetemplate文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!