我无法从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. 从CMD运行Microsoft TraceView
- 4. 从cmd运行make vim
- 5. 从Ant运行.cmd文件
- 6. 从cmd运行javascript函数
- 7. 仪器拒绝运行
- 8. 从仪器运行时程序无法运行
- 9. 从cmd行运行JDBC oracle java程序
- 10. 无法从cmd行运行Python
- 11. 运行命令CMD
- 12. 如何从命令行(在Kubuntu中)运行Android仪器测试?
- 13. UI自动化仪器是否可以从命令行运行?
- 14. Xcode 4.3运行后崩溃
- 15. 升级在Xcode 4.2的Xcode 4.3后,仪器命令行失败
- 16. 从cmd行phpmyadmin
- 17. 从powershell脚本运行cmd时出错
- 18. 当我运行python ** .py从Windows cmd
- 19. 如何运行皮普从CMD
- 20. 试图从cmd运行测试java
- 21. 如何从cmd运行VBS脚本?
- 22. 从Windows CMD运行Python Shell(绕过cygwin)
- 23. 从Visual Studio 2008运行cmd/c#
- 24. 从网页本地运行cmd
- 25. 从Java运行.bat/.cmd文件
- 26. 从Java运行.BAT不显示CMD
- 27. NoClassDef从cmd运行但未运行时发现
- 28. 测试运行失败:仪器运行失败,由于'kotlin.UninitializedPropertyAccessException'
- 29. iPad上的故障运行仪器
- 30. XCode 4运行泄漏仪器
真棒剧本! – Cliff 2012-05-15 21:36:53
工程就像一个魅力!再次感谢! – Cliff 2012-05-16 03:48:15