XCTest找不到测试包

时间:2018-08-08 17:13:00

标签: xcode appcelerator appcelerator-titanium xcode-ui-testing xcuitest

我正在尝试为使用Appcelerator-Alloy构建的iOS应用程序编写XCUItests。我从build文件夹打开了xcodeproject,添加了一个UI测试包,然后添加了一个UI测试类(它具有自动生成的测试方法)。我遵循了本教程:

https://blog.novoda.com/getting-started-with-xcuitest-framework-for-testing-ios-apps/

当我尝试运行测试时,这些日志将失败:

  

2018-08-08 11:52:00.177912-0400 YTB_UITests-Runner [14519:443448] *由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'在文件:///上未找到测试包用户/nvishnoi/ytb/build/iphone/Build/Products/Debug-iphonesimulator/YTB_UITests-Runner.app/PlugIns/YTB_UITests.xctest'   * 第一个调用堆栈:   (       0 CoreFoundation 0x000000010379f1e6 exceptionPreprocess + 294       1个libobjc.A.dylib 0x0000000102e34031 objc_exception_throw + 48       2 CoreFoundation 0x00000001037a4472 + [NSException提高:格式:参数:] + 98       3 Foundation 0x000000010290d64f-[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 165       4 XCTest 0x0000000102720aea _XCTestMain + 761       5 YTB_UITests-Runner 0x00000001023c749f _XCTRunnerRunTests + 57       6 CoreFoundation 0x0000000103741b0c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12       7 CoreFoundation 0x00000001037262db __CFRunLoopDoBlocks + 331       8 CoreFoundation 0x0000000103725a84 __CFRunLoopRun + 1284       9 CoreFoundation 0x000000010372530b CFRunLoopRunSpecific + 635       10图形服务0x0000000104906a73 GSEventRunModal + 62       11 UIKit 0x0000000105b75057 UIApplicationMain + 159       12 YTB_UITests-Runner 0x00000001023c76dc主+ 42       13 libdyld.dylib 0x0000000108047955开始+ 1   )   libc ++ abi.dylib:以类型为NSException的未捕获异常终止   (lldb)。

我也已经在developer.apple.com上签出了文档,并且在测试类中没有发现任何错误。

0 个答案:

没有答案
相关问题