From 3970b0367d9794d007360649c3f4262de181b507 Mon Sep 17 00:00:00 2001 From: Assad Ginem Date: Sat, 20 Jul 2024 13:23:02 -0500 Subject: [PATCH] fix: ios 11-13 arme64 runwda fix --- ios/testmanagerd/xcuitestrunner_11.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/ios/testmanagerd/xcuitestrunner_11.go b/ios/testmanagerd/xcuitestrunner_11.go index 227e4b2c..25b3140d 100644 --- a/ios/testmanagerd/xcuitestrunner_11.go +++ b/ios/testmanagerd/xcuitestrunner_11.go @@ -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 {