我正在使用 Xcode 5.0 版并尝试使用工具,当我运行包含“var target = UIATarget.localTarget();”的脚本时
出现以下错误:“无法启动脚本,目标应用程序不是最前面的。”
最佳答案
这是已知问题:
The message “Could Not Start Script : Target app is not frontmost” may be displayed when attempting to capture a UI Automation script in Instruments against the iOS 7 Simulator. If this occurs, close the trace document and create a new one. 15387075
关于Xcode Instruments 给出此错误 "Could not start script, target application is not frontmost.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19948890/