0

我想从终端启动安装在 iPhone 设备上的应用程序进行开发和测试。

我看了下面的问答。

使用 iPhone 模拟器从命令行启动仪器

但是我使用的是 Mountain Lion,并且下面没有这样的文件或路径。

/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate

你能告诉我如何使用仪器的这种自动化启动吗?

4

1 回答 1

1

几天前我遇到了同样的问题。似乎从 Xcode 4.4 Apple 开始将其移至/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate

但是在 Xcode 4.5 中我也没有找到这个目录。所以我继续搜索并在/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate

顺便说一句,有一个很好的shell 脚本可以自动运行东西。您需要的只是INSTRUMENTS_TEMPLATE用正确的路径替换automation.sh

于 2013-01-31T13:46:54.867 回答