我应该如何通过终端启动应用程序安装的iPhone设备?

我应该如何通过终端启动应用程序安装的iPhone设备?,iphone,objective-c,xcode,instruments,Iphone,Objective C,Xcode,Instruments,我想从终端启动安装在iPhone设备上的应用程序进行开发和测试 我看了下面的问答 然而,我使用的是山狮,没有这样的文件或路径 /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate 你能告诉我如何使用这种自动化仪器吗 几天前我也有同样的问题。似乎从Xco

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

我看了下面的问答

然而,我使用的是山狮,没有这样的文件或路径

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

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

几天前我也有同样的问题。似乎从Xcode 4.4开始,苹果将其移动到了
/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中找到了tracetemplate文件


顺便说一句,有一个很好的系统可以自动运行东西。您只需在
自动化中用正确的路径替换
仪器\u模板
。sh

我可以这样做!你的回答对我帮助很大。您对shell脚本的参考也很有帮助:)非常感谢!