【发布时间】:2012-09-24 06:19:59
【问题描述】:
我正在尝试关注 this post 从命令行在 iOS 设备上运行 UIAutomation 脚本,但我无法使其工作。
这是我目前使用的命令: 仪器-t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/X/Library/Developer/Xcode/DerivedData/TestiPhoneAutomation2-dyufpxsavtdqkybpagcoawdudzid/ Build/Products/Debug-iphoneos/TestiPhoneAutomation2.app -e UIASCRIPT "/Users/X/Workspaces/TestiPhoneAutomation/test2.js" -e UIARESULTSPATH "/Users/X/Workspaces/TestiPhoneAutomation2/" -w 80bf5b...UDID。 ..dfb52543 -v
它在模拟器上运行良好(用 Debug-iphonesimulator 替换 Debug-iphoneos,在这种情况下它也会忽略 -w),但是如果我使用为设备编译的应用程序启动它会崩溃(我尝试使用发布和调试,我得到相同的结果)。
我得到的错误是:
posix 生成失败;中止启动(二进制 == /Users/X/Library/Developer/Xcode/DerivedData/TestiPhoneAutomation2-dyufpxsavtdqkybpagcoawdudzid/Build/Products/Debug-iphoneos/TestiPhoneAutomation2.app/TestiPhoneAutomation2)。 2012-10-03 12:10:36.609 仪器[76151:1603] 录音取消: 至少有一个目标发射失败;中止运行仪器跟踪 错误:启动跟踪失败。
【问题讨论】:
标签: ios xcode automation instruments ios-ui-automation