我正在尝试设置我们的iOS XCUITests以在AWS Device Farm上运行,但似乎无论我如何构建和上传它们,测试都不会运行.它们在XCode中本地运行时执行并传递,但不在AWS Device Farm上运行.
我已经设置了绝对最简单的应用程序,我可以设法尝试隔离此问题.它由一个带有单个Label的View和一个用于验证标签是否存在的UI Test组成.
以下是AWS Device Farm界面中显示的错误.
深入研究日志文件会显示(在"应用程序输出"日志文件中):
2016-04-03 19:07:39.842 XCTRunner[195:28521] Running tests...
2016-04-03 19:07:39.868 XCTRunner[195:28521] Unable to load configuration data from specified path ; error: The file name is invalid.
2016-04-03 19:07:39.872 XCTRunner[195:28521] Looking for test bundles in /var/mobile/Containers/Bundle/Application/883D7F70-E525-4478-9E5E-C87F72A83879/MyTestAppUITests-Runner.app/PlugIns
2016-04-03 19:07:39.875 XCTRunner[195:28521] Found test bundle at /var/mobile/Containers/Bundle/Application/883D7F70-E525-4478-9E5E-C87F72A83879/MyTestAppUITests-Runner.app/PlugIns/MyTestAppUITests.xctest
2016-04-03 19:07:39.878 XCTRunner[195:28521] Looking for configurations in /var/mobile/Containers/Bundle/Application/883D7F70-E525-4478-9E5E-C87F72A83879/MyTestAppUITests-Runner.app/PlugIns/MyTestAppUITests.xctest
2016-04-03 19:07:39.879 XCTRunner[195:28521] No configurations found, creating a default configuration that will run all tests.
2016-04-03 19:07:39.993 XCTRunner[195:28521] XCTestConfigurationHook: Using …Run Code Online (Sandbox Code Playgroud)