我正在尝试将自动化脚本(.trace文件)中的调试行写入本地文件系统上的文本文件。我正在使用XCode Automation Instrument。
有人可以指导我如何做到这一点吗?
答案 0 :(得分:0)
目前,您无法获取txt文件。您将获得plist文件并手动将其写入txt文件,或者您也可以在终端窗口中获得结果,如果您希望可以将其写入txt文件,但这将是一个接一个..你不能写所有结果一目了然。
///从仪器获取结果。
这些是在仪器上获得结果的步骤: -
1) In a application go to profile and open the Instruments .
2) Click on Library there and find the Activity Monitor tool .
3) Press the start button . and find out the process name (mostly you have to find out the name of your application there )
4) Now see if there any leaks you will get that red graph there , As I told you yesterday .
5) Now if there is any leaks and you can see the leaks in Instruments then go to ---------> Terminal
6) check your process name and write the command there :- leaks yourprocessname
7) you will get the generated leaks report here .