我无法从cmd行运行Instruments 4.3。我相信它正在采用我的旧4.2版本,它仍然安装。我如何获得仪器4.3安装和启动我的应用程序,然后运行UIAutomation反对它?从cmd行运行仪器4.3?
1
A
回答
2
问题是,您正在指定-w
参数,但未提供设备ID。如果您尝试在模拟器中从您的应用运行,那么请忽略-w
。
xcrun instruments -v \
-t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \
/Users/cliff/Src/MyApp/build/MyApp/Build/Products/Debug-iphoneos/MyApp.app \
-e UIASCRIPT /Users/cliff/Src/MyApp/UIAutomation/automation-test.js \
-e UIARESULTSPATH /Users/cliff/Src/MyApp/build/uiautomation
如果你真的试图在设备上运行此脚本的自动化,那么你就可以迅速使用this script I wrote抢设备ID。将该ID输入到-w
参数中,它应该可以正常工作。
0
你尝试:/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
如何: /Applications/Xcode.app//Contents/Developer/usr/bin/instruments
1
我想我想通了这一点,但我仍然有问题。我从喜好安装命令行工具 - >下载并运行
xcode-select -switch /Applications/Xcode.app/Contents/Developer
我然后跑:
xcrun instruments -v -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w /Users/cliff/Src/MyApp/build/MyApp/Build/Products/Debug-iphoneos/MyApp.app -e UIASCRIPT /Users/cliff/Src/MyApp/UIAutomation/automation-test.js -e UIARESULTSPATH /Users/cliff/Src/MyApp/build/uiautomation
我敢肯定,这拾起的工具CMD线工具,因为我目前的版本我也将我的/ Developer文件夹移出了我的PATH。我卖的是不断收到:“仪器使用错误:设备无法使用。”那么是什么给了?
相关问题
- 1. 从SPSS中运行CMD行
- 2. 从浏览器运行cmd - 通过JS
- 3. 如何从Python运行仪器?
- 4. 从Ant运行.cmd文件
- 5. 从CMD运行Microsoft TraceView
- 6. 从cmd运行javascript函数
- 7. 从cmd运行make vim
- 8. 仪器拒绝运行
- 9. 从仪器运行时程序无法运行
- 10. 无法从cmd行运行Python文件
- 11. 无法从cmd行运行Python
- 12. 从cmd行运行JDBC oracle java程序
- 13. 执行运行时CMD
- 14. 运行命令CMD
- 15. 默默运行CMD
- 16. C#运行cmd netsh
- 17. 仪器不从命令行
- 18. UI自动化仪器是否可以从命令行运行?
- 19. 从命令行运行UI自动化仪器时出错
- 20. 如何从命令行(在Kubuntu中)运行Android仪器测试?
- 21. Xcode 4.3运行后崩溃
- 22. 升级在Xcode 4.2的Xcode 4.3后,仪器命令行失败
- 23. 从cmd行phpmyadmin
- 24. 在Windows中从CMD运行PHPUnit
- 25. 从Windows CMD运行Python Shell(绕过cygwin)
- 26. 无法从CMD运行PowerShell脚本
- 27. 如何从cmd运行jar参考
- 28. 从powershell脚本运行cmd时出错
- 29. 从Visual Studio 2008运行cmd/c#
- 30. 从cmd运行的python错误
真棒剧本! – Cliff 2012-05-15 21:36:53
工程就像一个魅力!再次感谢! – Cliff 2012-05-16 03:48:15