Xcode 7 UI测试,录制按钮显示为灰色 [英] Xcode 7 UI Tests, Recording button is greyed out
问题描述
我正在尝试使用Xcode 7将UI测试添加到现有项目中。但是,UI测试记录按钮始终是灰色的。我在这里缺少什么?
I am trying to add UI tests to my existing project using Xcode 7. However the UI test recording button is always greyed out. What I am missing here?
我尝试重新启动Xcode,清理并重建项目并添加新的UI测试目标。有没有其他人经历过同样的行为?
I tried restarting Xcode, cleaning and rebuilding the project and adding a new UI test target. Does anyone else experience the same behaviour?
推荐答案
FWIW:我遇到了这个问题,结果发现我试图在错误的操作系统中运行模拟器。
FWIW: I had this problem and it turns out I was trying to run the simulator in the wrong OS.
我试图使用iOS8.x,而UITesting仅适用于iOS9 +。
I was trying to use iOS8.x, and UITesting only works in iOS9+.
切换模拟器版本,出现录制按钮。
Switch the simulator version, and the record button appears.
这篇关于Xcode 7 UI测试,录制按钮显示为灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!