xcode - 仪器 4.5 和 ios 模拟器 6.0。没有开始

标签 xcode ios-simulator instruments ios-ui-automation

在 IOS Simulator 5.1 中,此代码有效:

`instruments -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/administrator/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/$numbersstrings/myapp.app/ -e UIASCRIPT /Users/administrator/Desktop/Tests/smoke.js`

xcode 更新后,ios 模拟器 6.0 此代码不起作用并显示此错误:
`Instruments Usage Error : The specified template 'file://localhost/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate' does not exist.`

文件夹:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library
不包含文件夹/Instruments。

哪里找?

最佳答案

跟踪模板的路径在 Instruments 4.5 中发生了变化。

改用这个:

instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/administrator/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/$numbersstrings/myapp.app/ -e UIASCRIPT /Users/administrator/Desktop/Tests/smoke.js

关于xcode - 仪器 4.5 和 ios 模拟器 6.0。没有开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12856124/

相关文章:

ios - UIViewController 不存在于 Instruments 堆射击分析的分配中

objective-c - 将 Objective-C 代码拆分为多个文件

xcode - lldb调试时导入头文件

objective-c - 字符串问题

php - Xcode 4.1 iOS 引用Joomla generated Database via PHP

iphone - 像在模拟器中一样在 iOS 设备上显示触摸

iOS模拟器调试时无法获取自定义位置

iphone - TBXML iOS 解析器中的内存泄漏

ios5 - iOS 5 转换 UIAccelerometer

iOS内存使用量增加,找不到罪魁祸首