仪器应用程序无法打开跟踪模板文件 [英] Instruments application can't open tracetemplate file

查看:109
本文介绍了仪器应用程序无法打开跟踪模板文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开"Instruments"应用程序并尝试为模拟器选择任何模板(Time Profiler或任何其他模板)时,出现"Import Trace"窗口,其中包含来自'/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates目录.然后选择任何一个,然后收到警报消息无法打开"Time 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 更多信息.

这篇关于仪器应用程序无法打开跟踪模板文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆