iphone - 如何从命令行运行 UIAutomation 脚本到模拟器

标签 iphone command-line instruments ios-ui-automation

我已经使用 UIAutomation 自动化了我的 iOS 应用程序,为了运行它,我启动了 iOS Instruments 并运行脚本。如果我想在设备上运行相同的自动化脚本,我可以使用以下命令来按需要工作

仪器-w -t/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate myapp -e UIASCRIPT回归.js

但是我如何从命令行运行它到 iOS 模拟器?

请提出建议。

谢谢 早形

最佳答案

如果您不提供“-w”参数并为模拟器 sdk 构建应用程序,它应该在模拟器上启动。

关于iphone - 如何从命令行运行 UIAutomation 脚本到模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8063562/

相关文章:

r - 如何删除多个逗号但在 csv 文件中的两个值之间保留一个逗号?

iphone - 尝试读取 Xcode Instruments .trace 文件。 .trace 文件的文件格式是什么?

iphone - shouldAutorotate To InterfaceOrientation 在通用应用程序中不起作用

iphone - 我想将声音文件的播放链接到动画执行

iphone - 如何格式化 NSDate?

用于快速编辑命令行参数的 Eclipse 插件/ View

ios - 获取 invitable_friends Facebook API iOS

command-line - 如何使用命令行从私有(private)仓库下载 GitHub Release

ios - MKMapView 没有为 MKUserLocation 释放内存

ios - Xcode Instruments 泄漏周期图上的 "no ivar"