0

我正在尝试将调试行从我的自动化脚本(.trace 文件)写入本地文件系统上的文本文件。我正在使用 XCode 自动化仪器。

谁能指导我如何做到这一点?

4

1 回答 1

0

目前,您无法获取 txt 文件。您将获得 plist 文件并手动将其写入 txt 文件,或者您也可以在终端窗口中获​​得结果,如果您希望将其写入 txt 文件,但这将是一个一个..您不能写所有结果一气呵成。

/// 从 Instruments 中获取结果。

这些是在仪器上获得结果的步骤:-

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 . 
于 2013-06-17T05:42:11.383 回答