Skip to content

Commit e078507

Browse files
Assad Ginemmichal-przytarski
authored andcommitted
fix: ios 11-13 arme64 runwda fix
1 parent 4120842 commit e078507

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

ios/testmanagerd/xcuitestrunner_11.go

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,24 @@ func runXCUIWithBundleIdsXcode11Ctx(
112112
func startTestRunner11(pControl *instruments.ProcessControl, xctestConfigPath string, bundleID string,
113113
sessionIdentifier string, testBundlePath string, wdaargs []string, wdaenv []string,
114114
) (uint64, error) {
115-
args := []interface{}{}
115+
args := []interface{}{
116+
"-NSTreatUnknownArgumentsAsOpen", "NO", "-ApplePersistenceIgnoreState", "YES",
117+
}
116118
for _, arg := range wdaargs {
117119
args = append(args, arg)
118120
}
119121
env := map[string]interface{}{
120-
"XCTestBundlePath": testBundlePath,
121-
"XCTestConfigurationFilePath": xctestConfigPath,
122-
"XCTestSessionIdentifier": sessionIdentifier,
122+
"CA_ASSERT_MAIN_THREAD_TRANSACTIONS": "0",
123+
"CA_DEBUG_TRANSACTIONS": "0",
124+
"DYLD_INSERT_LIBRARIES": "/Developer/usr/lib/libMainThreadChecker.dylib",
125+
126+
"MTC_CRASH_ON_REPORT": "1",
127+
"NSUnbufferedIO": "YES",
128+
"OS_ACTIVITY_DT_MODE": "YES",
129+
"SQLITE_ENABLE_THREAD_ASSERTIONS": "1",
130+
"XCTestBundlePath": testBundlePath,
131+
"XCTestConfigurationFilePath": xctestConfigPath,
132+
"XCTestSessionIdentifier": sessionIdentifier,
123133
}
124134

125135
for _, entrystring := range wdaenv {

0 commit comments

Comments
 (0)