所以我花了一些时间来实现Xcode 7中的第一个UITests,以自动测试我们的应用程序中的主要工作流程。一切都很顺利。我可以在所有设备上运行UnitTests吗?只能在Xcode Server的iOS 9.x设备上运行UITest?
但是,当我将UITests推送到C.I. (Xcode的服务器)的生成与以下日志消息爆出:
xcodebuild: error: Failed to build workspace mycoolapp with scheme mycoolapp.
Reason: UI Testing is not supported on “iPad 2” because it is running iOS Simulator 8.1 and UI Testing requires iOS Simulator 9.0 or later.
4.684 (4.687) seconds Test Suite 'mycoolappUITests.xctest' failed at 2015-10-14 11:21:45.242. Executed 2 tests, with 2 failures (0 unexpected) in 12.217 (12.229) seconds
所以我的理解是,UITests仅由9.x中的iOS设备支持(这是合理的)。
我不明白的是我似乎无法将Xcode Bot配置为仅在所有设备上的某些设备和UnitTest上运行UITest。
我是对的吗?还是有配置选项我错过了?有没有人遇到同样的问题?
同样的问题在这里。仍在寻找解决方案。 – stephenhouser