这是我目前使用的命令:
instruments -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),但是如果我使用为设备编译的应用程序启动它它会崩溃(我尝试使用发布和调试,我得到相同的结果).
我得到的错误是:
解决方法 我得到了同样的错误,但我没有运行多个仪器副本.我通过在应用程序之前放置-w UDID参数,并且仅使用应用程序的名称(已将应用程序部署到设备)来实现此功能.posix spawn failure; aborting launch (binary ==
/Users/X/library/Developer/Xcode/DerivedData/TestiPhoneautomation2-dyufpxsavtdqkybpagcoawdudzID/Build/Products/DeBUG-iphoneos/TestiPhoneautomation2.app/TestiPhoneautomation2).
2012-10-03 12:10:36.609 instruments[76151:1603] Recording cancelled :
At least one target Failed to launch; aborting run Instruments Trace
Error : Failed to start trace.
我使用的命令行如下(使用Xcode 4.6):
总结instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/automationInstrument.bundle/Contents/Resources/automation.tracetemplate -w <device_ID> <app_name> -e UIASCRIPT <path_to_script> -e UIARESulTSPATH <path_to_results>
以上是内存溢出为你收集整理的ios – 使用设备上的仪器进行自动化测试全部内容,希望文章能够帮你解决ios – 使用设备上的仪器进行自动化测试所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)