EarlGrey
EarlGrey copied to clipboard
NSInternalInconsistencyException - "No target application path specified via test configuration"
I get this error when a UITests is finished. Check all buildSettings and buildPhases twice, can someone help me out?
failed: caught
"NSInternalInconsistencyException",
"No target application path specified via test configuration: <XCTestConfiguration: 0x6000024acc30>
testBundleURL:file:///Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxx.app/PlugIns/xxx.xctest/
testBundleRelativePath:__TESTHOST__/PlugIns/xxx.xctest
productModuleName:xxxTests
testsToSkip:(null)
testsToRun:DefectScreenTests/testPartialSynchronisation_C204956
reportResultsToIDE:YES
testsDrivenByIDE:no
sessionIdentifier:53A4333C-9E74-4A95-97E4-D25963B09A07
disablePerformanceMetrics:no
treatMissingBaselinesAsFailures:no
baselineFileURL:(null)
baselineFileRelativePath:(null)
targetApplicationPath:(null)
targetApplicationBundleID:(null)
testApplicationDependencies:(null)
testApplicationUserOverrides:(null)
targetApplicationArguments:
targetApplicationEnvironment:(null)
reportActivities:YES
testsMustRunOnMainThread:no
initializeForUITesting:no
aggregateStatisticsBeforeCrash:
{
XCSuiteRecordsKey = {
};
}
automationFrameworkPath:/Applications/Xcode_10_1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework
bridgedAutomationFrameworkPath:/System/iOSSupport/System/Library/PrivateFrameworks/XCTAutomationSupport.framework
emitOSLogs:no
systemAttachmentLifetime:2
userAttachmentLifetime:1
gatherLocalizableStringsData:no
testExecutionOrdering:lexical
randomExecutionOrderingSeed:(null)
"
(
0 CoreFoundation 0x0000000112d1b1bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001122b9735 objc_exception_throw + 48
2 CoreFoundation 0x0000000112d1af42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010c2a0877 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 XCTest 0x0000000133a946e9 -[XCUIApplication init] + 862
5 AvioTechTests 0x0000000135377eee -[SBTUITunneledApplication init] + 62
6 AvioTechTests 0x000000013537f8b4 -[XCTestCase(AppExtension) app] + 100
7 AvioTechTests 0x000000013537f94c -[XCTestCase(Swizzles) swz_tearDown] + 44
8 xxx 0x0000000135353377 $S13xxxTests10BaseXCTestC8tearDownyyF + 631
9 xxx 0x0000000135353424 $S13xxx10BaseXCTestC8tearDownyyFTo + 36
10 EarlGrey 0x000000010828a13c -[XCTestCase(GREYAdditions) grey_tearDown] + 92
11 XCTest 0x0000000133ab4c74 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
12 XCTest 0x0000000133ab4b91 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
13 XCTest 0x0000000133a5e671 __51-[XCTestCase _performTearDownSequenceWithSelector:]_block_invoke + 99
14 XCTest 0x0000000133ac4db2 -[XCTContext _runActivityNamed:type:block:] + 304
15 XCTest 0x0000000133a657d6 -[XCTestCase startActivityWithTitle:type:block:] + 218
16 XCTest 0x0000000133a659b3 -[XCTestCase startActivityWithTitle:block:] + 60
17 XCTest 0x0000000133a5e5f3 -[XCTestCase _performTearDownSequenceWithSelector:] + 92
18 XCTest 0x0000000133a5ce6d __24-[XCTestCase invokeTest]_block_invoke + 1252
19 XCTest 0x0000000133abab7e -[XCUITestContext performInScope:] + 248
20 XCTest 0x0000000133a5c8ce -[XCTestCase testContextPerformInScope:] + 98
21 XCTest 0x0000000133a5c97c -[XCTestCase invokeTest] + 137
22 EarlGrey 0x0000000108289b0b -[XCTestCase(GREYAdditions) grey_invokeTest] + 1563
23 XCTest 0x0000000133a5e4b7 __26-[XCTestCase performTest:]_block_invoke_2 + 43
24 XCTest 0x0000000133ab4c74 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
25 XCTest 0x0000000133ab4b91 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
26 XCTest 0x0000000133a5e3ce __26-[XCTestCase performTest:]_block_invoke.330 + 88
27 XCTest 0x0000000133ac544b +[XCTContext runInContextForTestCase:block:] + 225
28 XCTest 0x0000000133a5dafd -[XCTestCase performTest:] + 675
29 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57
30 XCTest 0x0000000133a58ccb __27-[XCTestSuite performTest:]_block_invoke + 365
31 XCTest 0x0000000133a584a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
32 XCTest 0x0000000133a58766 -[XCTestSuite performTest:] + 296
33 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57
34 XCTest 0x0000000133a58ccb __27-[XCTestSuite performTest:]_block_invoke + 365
35 XCTest 0x0000000133a584a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
36 XCTest 0x0000000133a58766 -[XCTestSuite performTest:] + 296
37 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57
38 XCTest 0x0000000133a58ccb __27-[XCTestSuite performTest:]_block_invoke + 365
39 XCTest 0x0000000133a584a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
40 XCTest 0x0000000133a58766 -[XCTestSuite performTest:] + 296
41 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57
42 XCTest 0x0000000133ad0e86 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
43 XCTest 0x0000000133ad0fa7 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.80 + 68
44 XCTest 0x0000000133a70bc1 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 585
45 XCTest 0x0000000133ad0bfa -[XCTTestRunSession runTestsAndReturnError:] + 623
46 XCTest 0x0000000133a3d6b6 -[XCTestDriver runTestsAndReturnError:] + 422
47 XCTest 0x0000000133ac19cd _XCTestMain + 1478
48 libXCTestBundleInject.dylib 0x0000000108413bb8 __copy_helper_block_ + 0
49 CoreFoundation 0x0000000112c8062c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
50 CoreFoundation 0x0000000112c7fde0 __CFRunLoopDoBlocks + 336
51 CoreFoundation 0x0000000112c7a654 __CFRunLoopRun + 1284
52 CoreFoundation 0x0000000112c79e11 CFRunLoopRunSpecific + 625
53 GraphicsServices 0x00000001153cd1dd GSEventRunModal + 62
54 UIKitCore 0x000000011abe981d UIApplicationMain + 140
55 AvioTech 0x000000010807d447 main + 71
56 libdyld.dylib 0x0000000113f2a575 start + 1
57 ??? 0x0000000000000005 0x0 + 5
)
In your UI Test's Target, have you specified a target application in General
?
@tirodkar
In your UI Test's Target, have you specified a target application in
General
?
Yes, I have.
Based on the logs, there doesn't seem any EarlGrey related issue here - there seems to be some issue with alloc - init'ing the application.
Based on this, it might be related to target setup, as the logs do not seem to help.
Hi, I just faced the same problem when I wanted to try the UI test, then I fixed the problem.
I dont know if my resolution can help you, and I know it
s a little late.
In my problem, I created a UI Test file in UnitTest Target, and I thought I had got the application for the UI Test file, and then when I complied, it gave me the wrong issue. Then I created an UI Test Target, it run with no error.
Hi, I just faced the same problem when I wanted to try the UI test, then I fixed the problem. I don
t know if my resolution can help you, and I know it
s a little late.In my problem, I created a UI Test file in UnitTest Target, and I thought I had got the application for the UI Test file, and then when I complied, it gave me the wrong issue. Then I created an UI Test Target, it run with no error.
Same thing for me.
I get this error when a UITests is finished. Check all buildSettings and buildPhases twice, can someone help me out?
failed: caught "NSInternalInconsistencyException", "No target application path specified via test configuration: <XCTestConfiguration: 0x6000024acc30> testBundleURL:file:///Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxx.app/PlugIns/xxx.xctest/ testBundleRelativePath:__TESTHOST__/PlugIns/xxx.xctest productModuleName:xxxTests testsToSkip:(null) testsToRun:DefectScreenTests/testPartialSynchronisation_C204956 reportResultsToIDE:YES testsDrivenByIDE:no sessionIdentifier:53A4333C-9E74-4A95-97E4-D25963B09A07 disablePerformanceMetrics:no treatMissingBaselinesAsFailures:no baselineFileURL:(null) baselineFileRelativePath:(null) targetApplicationPath:(null) targetApplicationBundleID:(null) testApplicationDependencies:(null) testApplicationUserOverrides:(null) targetApplicationArguments: targetApplicationEnvironment:(null) reportActivities:YES testsMustRunOnMainThread:no initializeForUITesting:no aggregateStatisticsBeforeCrash: { XCSuiteRecordsKey = { }; } automationFrameworkPath:/Applications/Xcode_10_1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework bridgedAutomationFrameworkPath:/System/iOSSupport/System/Library/PrivateFrameworks/XCTAutomationSupport.framework emitOSLogs:no systemAttachmentLifetime:2 userAttachmentLifetime:1 gatherLocalizableStringsData:no testExecutionOrdering:lexical randomExecutionOrderingSeed:(null) " ( 0 CoreFoundation 0x0000000112d1b1bb __exceptionPreprocess + 331 1 libobjc.A.dylib 0x00000001122b9735 objc_exception_throw + 48 2 CoreFoundation 0x0000000112d1af42 +[NSException raise:format:arguments:] + 98 3 Foundation 0x000000010c2a0877 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194 4 XCTest 0x0000000133a946e9 -[XCUIApplication init] + 862 5 AvioTechTests 0x0000000135377eee -[SBTUITunneledApplication init] + 62 6 AvioTechTests 0x000000013537f8b4 -[XCTestCase(AppExtension) app] + 100 7 AvioTechTests 0x000000013537f94c -[XCTestCase(Swizzles) swz_tearDown] + 44 8 xxx 0x0000000135353377 $S13xxxTests10BaseXCTestC8tearDownyyF + 631 9 xxx 0x0000000135353424 $S13xxx10BaseXCTestC8tearDownyyFTo + 36 10 EarlGrey 0x000000010828a13c -[XCTestCase(GREYAdditions) grey_tearDown] + 92 11 XCTest 0x0000000133ab4c74 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57 12 XCTest 0x0000000133ab4b91 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96 13 XCTest 0x0000000133a5e671 __51-[XCTestCase _performTearDownSequenceWithSelector:]_block_invoke + 99 14 XCTest 0x0000000133ac4db2 -[XCTContext _runActivityNamed:type:block:] + 304 15 XCTest 0x0000000133a657d6 -[XCTestCase startActivityWithTitle:type:block:] + 218 16 XCTest 0x0000000133a659b3 -[XCTestCase startActivityWithTitle:block:] + 60 17 XCTest 0x0000000133a5e5f3 -[XCTestCase _performTearDownSequenceWithSelector:] + 92 18 XCTest 0x0000000133a5ce6d __24-[XCTestCase invokeTest]_block_invoke + 1252 19 XCTest 0x0000000133abab7e -[XCUITestContext performInScope:] + 248 20 XCTest 0x0000000133a5c8ce -[XCTestCase testContextPerformInScope:] + 98 21 XCTest 0x0000000133a5c97c -[XCTestCase invokeTest] + 137 22 EarlGrey 0x0000000108289b0b -[XCTestCase(GREYAdditions) grey_invokeTest] + 1563 23 XCTest 0x0000000133a5e4b7 __26-[XCTestCase performTest:]_block_invoke_2 + 43 24 XCTest 0x0000000133ab4c74 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57 25 XCTest 0x0000000133ab4b91 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96 26 XCTest 0x0000000133a5e3ce __26-[XCTestCase performTest:]_block_invoke.330 + 88 27 XCTest 0x0000000133ac544b +[XCTContext runInContextForTestCase:block:] + 225 28 XCTest 0x0000000133a5dafd -[XCTestCase performTest:] + 675 29 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57 30 XCTest 0x0000000133a58ccb __27-[XCTestSuite performTest:]_block_invoke + 365 31 XCTest 0x0000000133a584a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55 32 XCTest 0x0000000133a58766 -[XCTestSuite performTest:] + 296 33 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57 34 XCTest 0x0000000133a58ccb __27-[XCTestSuite performTest:]_block_invoke + 365 35 XCTest 0x0000000133a584a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55 36 XCTest 0x0000000133a58766 -[XCTestSuite performTest:] + 296 37 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57 38 XCTest 0x0000000133a58ccb __27-[XCTestSuite performTest:]_block_invoke + 365 39 XCTest 0x0000000133a584a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55 40 XCTest 0x0000000133a58766 -[XCTestSuite performTest:] + 296 41 XCTest 0x0000000133aa11a2 -[XCTest runTest] + 57 42 XCTest 0x0000000133ad0e86 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171 43 XCTest 0x0000000133ad0fa7 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.80 + 68 44 XCTest 0x0000000133a70bc1 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 585 45 XCTest 0x0000000133ad0bfa -[XCTTestRunSession runTestsAndReturnError:] + 623 46 XCTest 0x0000000133a3d6b6 -[XCTestDriver runTestsAndReturnError:] + 422 47 XCTest 0x0000000133ac19cd _XCTestMain + 1478 48 libXCTestBundleInject.dylib 0x0000000108413bb8 __copy_helper_block_ + 0 49 CoreFoundation 0x0000000112c8062c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12 50 CoreFoundation 0x0000000112c7fde0 __CFRunLoopDoBlocks + 336 51 CoreFoundation 0x0000000112c7a654 __CFRunLoopRun + 1284 52 CoreFoundation 0x0000000112c79e11 CFRunLoopRunSpecific + 625 53 GraphicsServices 0x00000001153cd1dd GSEventRunModal + 62 54 UIKitCore 0x000000011abe981d UIApplicationMain + 140 55 AvioTech 0x000000010807d447 main + 71 56 libdyld.dylib 0x0000000113f2a575 start + 1 57 ??? 0x0000000000000005 0x0 + 5 )
Yeap, i get this error too when i want to test my UITest using tuist test
, which already separated folder between UnitTests and UITests.