my code:
var err : NSError?
EarlGrey.select(elementWithMatcher: grey_text(onTextView)).perform(grey_typeText(text), error: &err)
if err != nil {
let message = errorBegin + file.description.components(separatedBy: "/").last! + " - line:" + String(line)
print(err!) // failed here
XCTAssert(false, message)
}
error detail:
"failed: caught "NSInternalInconsistencyException", "Unhandled output type: GREYError"
(
0 CoreFoundation 0x000000010dd07d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010d3de21e objc_exception_throw + 48
2 CoreFoundation 0x000000010dd0be42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010af6266d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 EarlGrey 0x000000011cedaa21 +[GREYObjectFormatter grey_formatObject:prefixString:prefix:indent:keyOrder:] + 2289
5 EarlGrey 0x000000011ced9cf1 +[GREYObjectFormatter formatDictionary:prefix:indent:hideEmpty:keyOrder:] + 2801
6 EarlGrey 0x000000011ceda84e +[GREYObjectFormatter grey_formatObject:prefixString:prefix:indent:keyOrder:] + 1822
7 EarlGrey 0x000000011ced9cf1 +[GREYObjectFormatter formatDictionary:prefix:indent:hideEmpty:keyOrder:] + 2801
8 EarlGrey 0x000000011ced915c +[GREYObjectFormatter formatDictionary:indent:hideEmpty:keyOrder:] + 172
9 EarlGrey 0x000000011ced4396 -[GREYError description] + 150
10 libswiftFoundation.dylib 0x0000000110c294e4 _TTWCSo8NSObjects23CustomStringConvertible10FoundationFS0_g11descriptionSS_merged + 36
11 libswiftCore.dylib 0x000000011071dd68 _TTSgq5P__GVs10_TeeStreamSSVs7_Stdout_GS_SSS0__s16TextOutputStreams___TFs15_print_unlockedu0_R_s16TextOutputStreamrFTxRq__T_ + 1176
12 libswiftCore.dylib 0x00000001107ff753 _TTSfq4g_gs_gs_n___TTSgq5GVs10_TeeStreamSSVs7_Stdout_GS_SSS0__s16TextOutputStreams___TFs6_printuRxs16TextOutputStreamrFTGSaP__9separatorSS10terminatorSS2toRx_T__merged + 387
13 libswiftCore.dylib 0x00000001107ff52a _TTSfq4g_gs_gs_n___TTSgq5GVs10_TeeStreamSSVs7_Stdout_GS_SSS0__s16TextOutputStreams___TFs6_printuRxs16TextOutputStreamrFTGSaP__9separatorSS10terminatorSS2toRx_T_ + 42
14 libswiftCore.dylib 0x00000001107ffbb0 _TTSfq4g_gs_gs___TFs5printFTGSaP__9separatorSS10terminatorSS_T__merged + 192
15 libswiftCore.dylib 0x00000001107ff58d _TTSfq4g_gs_gs___TFs5printFTGSaP__9separatorSS10terminatorSS_T_ + 45
16 libswiftCore.dylib 0x000000011072228d _TFs5printFTGSaP__9separatorSS10terminatorSS_T_ + 29
17 PuyinTests 0x000000011ce6b66b _TFC10PuyinTests9BasicTest8typeTextfT4lineSu4fileVs12StaticString4textSS10onTextViewSS_T_ + 1707
18 PuyinTests 0x000000011ce72d89 _TFC10PuyinTests10PuyinTests15testAllBankListfT_T_ + 2009
19 PuyinTests 0x000000011ce72ef2 _TToFC10PuyinTests10PuyinTests15testAllBankListfT_T_ + 34
20 CoreFoundation 0x000000010dc8e44c __invoking___ + 140
21 CoreFoundation 0x000000010dc8e2d1 -[NSInvocation invoke] + 289
22 EarlGrey 0x000000011cee058e -[GREYTestCaseInvocation invoke] + 126
23 XCTest 0x000000011c871f77 __24-[XCTestCase invokeTest]_block_invoke_2 + 481
24 XCTest 0x000000011c8aa7df -[XCTestContext performInScope:] + 190
25 XCTest 0x000000011c871d83 -[XCTestCase invokeTest] + 255
26 EarlGrey 0x000000011ceca7a3 -[XCTestCase(GREYAdditions) grey_invokeTest] + 1827
27 XCTest 0x000000011c87259c -[XCTestCase performTest:] + 457
28 XCTest 0x000000011c86f664 -[XCTestSuite performTest:] + 491
29 XCTest 0x000000011c86f664 -[XCTestSuite performTest:] + 491
30 XCTest 0x000000011c86f664 -[XCTestSuite performTest:] + 491
31 XCTest 0x000000011c85b618 __25-[XCTestDriver _runSuite]_block_invoke + 51
32 XCTest 0x000000011c87cd2b -[XCTestObservationCenter _observeTestExecutionForBlock:] + 602
33 XCTest 0x000000011c85b4b5 -[XCTestDriver _runSuite] + 436
34 XCTest 0x000000011c85c302 -[XCTestDriver _checkForTestManager] + 287
35 XCTest 0x000000011c8abd67 _XCTestMain + 628
36 CoreFoundation 0x000000010dcac6ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
37 CoreFoundation 0x000000010dc916f4 __CFRunLoopDoBlocks + 356
38 CoreFoundation 0x000000010dc90e65 __CFRunLoopRun + 901
39 CoreFoundation 0x000000010dc90884 CFRunLoopRunSpecific + 420
40 GraphicsServices 0x00000001136dea6f GSEventRunModal + 161
41 UIKit 0x000000010ee14c68 UIApplicationMain + 159
42 PuYin 0x000000010a00f9ff main + 111
43 libdyld.dylib 0x000000011106a68d start + 1
44 ??? 0x0000000000000005 0x0 + 5
)
```
i tried print error.description that didn't work.