facebookarchive / xctool

An extension for Apple's xcodebuild that makes it easier to test iOS and macOS apps.
Apache License 2.0
6.91k stars 738 forks source link

No target application path specified via test configuration: (null) #775

Closed moatazeldebsy closed 4 years ago

moatazeldebsy commented 5 years ago
Failed to query the list of test cases in the test bundle: 
stdout:
stderr:
2019-11-05 21:21:25.623 TAU[2348:17971] *** Assertion failure in -[XCUIApplication init], /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-14490.71/Sources/UITesting/Applications/XCUIApplication.m:84
2019-11-05 21:21:25.649 TAU[2348:17971] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No target application path specified via test configuration: (null)'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a5be8db __exceptionPreprocess + 331
    1   libobjc.A.dylib                     0x0000000108bd5ac5 objc_exception_throw + 48
    2   CoreFoundation                      0x000000010a5be662 +[NSException raise:format:arguments:] + 98
    3   Foundation                          0x000000010862376b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
    4   XCTest                              0x000000011f1d5e7f -[XCUIApplication init] + 490
    5   TAUUITests                          0x000000011f0788a3 $sSo15XCUIApplicationCABycfcTO + 19
    6   TAUUITests                          0x000000011f077eff $sSo15XCUIApplicationCABycfC + 31
    7   TAUUITests                          0x000000011f079b89 $s10TAUUITests13TAUUITestBaseC10invocationACSo12NSInvocationCSg_tcfc + 73
    8   TAUUITests                          0x000000011f079d1f $s10TAUUITests13TAUUITestBaseC10invocationACSo12NSInvocationCSg_tcfcTo + 47
    9   TAUUITests                          0x000000011f07588c $s10TAUUITests7BDDTestC10invocationACSo12NSInvocationCSg_tcfc + 108
    10  TAUUITests                          0x000000011f0758ef $s10TAUUITests7BDDTestC10invocationACSo12NSInvocationCSg_tcfcTo + 47
    11  XCTest                              0x000000011f19d7bf +[XCTestCase testCaseWithInvocation:] + 165
    12  XCTest                              0x000000011f198eb1 +[XCTestSuite testSuiteForTestCaseClass:] + 277
    13  XCTest                              0x000000011f19888e +[XCTestSuite _suiteForBundleCache] + 628
    14  XCTest                              0x000000011f19899a +[XCTestSuite suiteForBundleCache] + 36
    15  XCTest                              0x000000011f198f99 +[XCTestSuite allTests] + 69
    16  otest-query-lib-ios.dylib           0x00000001085e3cb6 TestSuite_allTests + 87
    17  otest-query-lib-ios.dylib           0x00000001085e5096 +[OtestQuery queryTestBundlePath:] + 573
    18  ???                                 0x000000010856abca 0x0 + 4434865098
    19  ???                                 0x000000010856add0 0x0 + 4434865616
    20  ???                                 0x00000001085663fc 0x0 + 4434846716
    21  ???                                 0x00000001085655d3 0x0 + 4434843091
    22  ???                                 0x0000000108565665 0x0 + 4434843237
    23  ???                                 0x0000000108559333 0x0 + 4434793267
    24  ???                                 0x000000010855d434 0x0 + 4434809908
    25  ???                                 0x0000000108558630 0x0 + 4434789936
    26  ???                                 0x00000001138d6234 0x0 + 4623000116
    27  ???                                 0x00000001138d40ce 0x0 + 4622991566
    28  ???                                 0x00000001138cf503 0x0 + 4622972163
    29  ???                                 0x00000001138cf036 0x0 + 4622970934
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Child process terminated with signal 6: Abort trap
ExtremeMan commented 5 years ago

Which Xcode version do you use? Can you share xctool command?

ExtremeMan commented 4 years ago

Please reopen if you can reproduce and provide extra debug information to make it easier to find an issue. Thanks!