Skip to content

Commit

Permalink
fix: ios 11-13 arme64 runwda fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Assad Ginem committed Jul 20, 2024
1 parent 6cc0b7c commit c6c67c7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions ios/testmanagerd/xcuitestrunner_11.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,24 @@ func runXCUIWithBundleIdsXcode11Ctx(
func startTestRunner11(pControl *instruments.ProcessControl, xctestConfigPath string, bundleID string,
sessionIdentifier string, testBundlePath string, wdaargs []string, wdaenv []string,
) (uint64, error) {
args := []interface{}{}
args := []interface{}{
"-NSTreatUnknownArgumentsAsOpen", "NO", "-ApplePersistenceIgnoreState", "YES",
}
for _, arg := range wdaargs {
args = append(args, arg)
}
env := map[string]interface{}{
"XCTestBundlePath": testBundlePath,
"XCTestConfigurationFilePath": xctestConfigPath,
"XCTestSessionIdentifier": sessionIdentifier,
"CA_ASSERT_MAIN_THREAD_TRANSACTIONS": "0",
"CA_DEBUG_TRANSACTIONS": "0",
"DYLD_INSERT_LIBRARIES": "/Developer/usr/lib/libMainThreadChecker.dylib",

"MTC_CRASH_ON_REPORT": "1",
"NSUnbufferedIO": "YES",
"OS_ACTIVITY_DT_MODE": "YES",
"SQLITE_ENABLE_THREAD_ASSERTIONS": "1",
"XCTestBundlePath": testBundlePath,
"XCTestConfigurationFilePath": xctestConfigPath,
"XCTestSessionIdentifier": sessionIdentifier,
}

for _, entrystring := range wdaenv {
Expand Down

0 comments on commit c6c67c7

Please sign in to comment.