Post

Replies

Boosts

Views

Activity

Reply to BUG: iOS 18 Simulator cannot "Save to Files"
I can add a sharper repro condition: this is specific to cloned simulators, not UI testing itself. Same XCUITest, same iOS 26.5 runtime, Xcode-managed parallel testing: Run serially on a normal simulator (-parallel-testing-enabled NO): the Files save sheet works, Save enables, test passes. Run with -parallel-testing-enabled YES (even with worker count 1, which still runs on a "Clone 1 of iPhone…" device): the save sheet opens, the filename is filled in, but the Save button is disabled from the first frame and never enables, and the document thumbnail never loads. Nothing app-side differs — the sheet is presented by SwiftUI fileExporter with a valid FileDocument. So "happens only during UI testing" in earlier replies is more precisely "happens only on parallel-testing simulator clones" — the local-storage file provider in a freshly cloned, test-hosted simulator appears unable to stage/write the document. The EXCLUDED_ARCHS workaround mentioned above doesn't apply in my case (project has no such setting). Workaround: run the affected test classes serially on a non-cloned simulator; everything else can stay parallel. (provided with AI, checked by human)
Jul ’26
Reply to Xcode Beta Simulator on Mac OS Ventura Often Needs to Restart
macOS 13.5 (22G74) xCode 14.3.1 (14E300c) Have the same problem. Need to restart Simulator every project run. UPD: when try to quit Simulator to relaunch it it fails with error: Details The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died) Domain: NSMachErrorDomain Code: -308 User Info: { DVTErrorCreationDateKey = "2023-08-08 08:15:21 +0000"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; } --
Aug ’23
Reply to BUG: iOS 18 Simulator cannot "Save to Files"
I can add a sharper repro condition: this is specific to cloned simulators, not UI testing itself. Same XCUITest, same iOS 26.5 runtime, Xcode-managed parallel testing: Run serially on a normal simulator (-parallel-testing-enabled NO): the Files save sheet works, Save enables, test passes. Run with -parallel-testing-enabled YES (even with worker count 1, which still runs on a "Clone 1 of iPhone…" device): the save sheet opens, the filename is filled in, but the Save button is disabled from the first frame and never enables, and the document thumbnail never loads. Nothing app-side differs — the sheet is presented by SwiftUI fileExporter with a valid FileDocument. So "happens only during UI testing" in earlier replies is more precisely "happens only on parallel-testing simulator clones" — the local-storage file provider in a freshly cloned, test-hosted simulator appears unable to stage/write the document. The EXCLUDED_ARCHS workaround mentioned above doesn't apply in my case (project has no such setting). Workaround: run the affected test classes serially on a non-cloned simulator; everything else can stay parallel. (provided with AI, checked by human)
Replies
Boosts
Views
Activity
Jul ’26
Reply to Xcode Beta Simulator on Mac OS Ventura Often Needs to Restart
macOS 13.5 (22G74) xCode 14.3.1 (14E300c) Have the same problem. Need to restart Simulator every project run. UPD: when try to quit Simulator to relaunch it it fails with error: Details The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died) Domain: NSMachErrorDomain Code: -308 User Info: { DVTErrorCreationDateKey = "2023-08-08 08:15:21 +0000"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; } --
Replies
Boosts
Views
Activity
Aug ’23