# Tests Hanging on Xcode 26

**URL:** <https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156>\
**Category:** Running Tests\
**Tags:** xcode, ios\
**Created:** [October 10, 2025, 1:13am UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156 "2025-10-10T01:13:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![revans](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@revans](https://discuss.circleci.com/u/revans)\
**Post date:** [October 10, 2025, 1:13am UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/1 "2025-10-10T01:13:31Z")

</div>

**Goal:** We want to upgrade CI from **Xcode 16.4 → 26.0.0**. Along with this we are moving all of our snapshot testing over to iOS 26, on an iPhone 17 Pro. I have my branch made with all the changes, but when I run our testing suite on CircleCI, it is never able to finish due to it **hanging indefinitely**. This issue only occurs on my branch thats set up to migrate over to Xcode 26, and does not happen on our main branch.

I have seen the posts about the iPhone simulator booting issues on Xcode 26, and I have followed instructions [here](https://discuss.circleci.com/t/xcode-26-rc/54066/18) to make sure that it is prebooted.

**Env (CI):** `m4pro.medium` · **macOS 15.6** · **Xcode 26.x** (Swift 6.0) · **iOS 26.0** simulators · device: **iPhone 17 Pro**.

**What happens:**

- Jobs start fine; **hundreds of tests run and pass**.

- ~ **30 minutes in** , the **CircleCI console output stops** mid-run (not the same test each time, and I have verified that every test it’s “hangs” on will pass when I run it locally).

- The job hangs, and eventually our 20 minute timeout kicks in, and kills the job. This counts as a failure for our required tests, since the suite never finishes.

- Reproducible **with and without parallelization** (we normally use parallel tests; tried disabling—same behavior).

- We’re pinning Xcode 26 on **M4 Pro** , per CircleCI guidance

**What I’ve already done:**

- **Preboot simulator** via `circleci/macos@2` (`preboot-simulator` iPhone 17 Pro / iOS 26.0). [C](https://circleci.com/docs/guides/execution-managed/using-macos/?utm_source=chatgpt.com)

- **Tried parallel on/off** and reduced workers.

**Questions:**

1. Is there a **known iOS-26/Xcode-26 hang** beyond the cold-boot issue that could explain **mid-run console stalls**?

2. Any **additional flags** or **orb settings** you recommend (timeouts/retries) that help once tests are already running?

Happy to provide redacted logs, `simctl` dumps, and pipeline IDs. I would greatly appreciate any and all tips—this is blocking us from being able to switch over to Xcode 26. Let me know, thanks!

---

<div class="post-metadata">

**Author:** ![sebastian-lerner](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sebastian-lerner/32/27833_2.png) [@sebastian-lerner](https://discuss.circleci.com/u/sebastian-lerner)\
**Post date:** [October 10, 2025, 2:09pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/2 "2025-10-10T14:09:16Z")

</div>

Can you send a build link to [sebastian@circleci.com](mailto:sebastian@circleci.com)?

---

<div class="post-metadata">

**Author:** ![sewerynplazuk](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@sewerynplazuk](https://discuss.circleci.com/u/sewerynplazuk)\
**Post date:** [October 30, 2025, 1:51pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/3 "2025-10-30T13:51:51Z")

</div>

Did you manage to find anything? I am reproducing the same issue in my setup.

---

<div class="post-metadata">

**Author:** ![carlos-santos-anchor](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/carlos-santos-anchor/32/36774_2.png) [@carlos-santos-anchor](https://discuss.circleci.com/u/carlos-santos-anchor)\
**Post date:** [November 2, 2025, 6:16pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/4 "2025-11-02T18:16:48Z")

</div>

Could this be related?

> [@Xcode 26 RC](https://discuss.circleci.com/t/xcode-26-rc/54066/21):
>
> FYI we have gotten a confirmation from Apple via our code support request and bug report that the simulator issue mentioned above is a known issue with the IOS Simulator in macOS Virtual Machines, and that it is currently being investigated/worked on internally at Apple.

---

<div class="post-metadata">

**Author:** ![carlos-santos-anchor](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/carlos-santos-anchor/32/36774_2.png) [@carlos-santos-anchor](https://discuss.circleci.com/u/carlos-santos-anchor)\
**Post date:** [November 4, 2025, 2:33pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/5 "2025-11-04T14:33:50Z")

</div>

@revans Did you find the root cause? Or did you have any breakthrough?

I have questions:

1. Are you using snapshot testing?  
1.2. Using LiquidGlass or forcing `UIDesignRequiresCompatibility`?
2. Is there a specific test where the build hangs?

---

<div class="post-metadata">

**Author:** ![ahmety-ft](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ahmety-ft/32/37142_2.png) [@ahmety-ft](https://discuss.circleci.com/u/ahmety-ft)\
**Post date:** [September 15, 2026, 1:06pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/6 "2026-09-15T13:06:53Z")

</div>

We hit this too after moving to the Xcode 27 image, posting what fixed it in  
case it saves someone the afternoon it cost us.

Our symptom was slightly different to the original post: our UI tests passed,  
“Test Execute Succeeded” printed, the xcresult got written, and then the job  
just sat there until CircleCI killed the step on the 10 minute no-output  
timeout. Every time, and never locally.

We chased the wrong things first: assumed it was an Xcode 27 beta bug and waited  
for the RC image (still hung), tried result bundle settings, looked at the  
xcbeautify pipe. None of it mattered.

What actually found it was running `sample` on the stuck xcodebuild from a  
wrapper script in the step:

```auto
XCTHRunDestinationAllocator.collectSimulatorDiagnostics(for:into:startTime:...)
  XCTHProcessInvocation.simCtlDiagnose(for:startTime:savingOutputInto:)
    OS_dispatch_semaphore.wait(wallTimeout:)

```

After the tests finish, xcodebuild shells out to `simctl diagnose` to collect a  
simulator sysdiagnose, and that call never comes back on the macOS VM. xcodebuild  
waits on the semaphore forever. The tests were done, it was purely the  
diagnostics collection.

The fix was one flag, since the default is `on-failure`:

```auto
-collect-test-diagnostics never

```

We run through fastlane, so for us that was:

```auto
xcargs: "-collect-test-diagnostics never"

```

That step now finishes in seconds instead of timing out. Test results and the  
xcresult bundle are unchanged, we only lose the sysdiagnose we were never  
reading anyway.

Worth noting it triggers on failure by default, so a green suite can hide it and  
it bites the first time a test actually fails.

---

<div class="post-metadata">

**Author:** ![mo-suno](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mo-suno/32/37144_2.png) [@mo-suno](https://discuss.circleci.com/u/mo-suno)\
**Post date:** [September 16, 2026, 10:13pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/7 "2026-09-16T22:13:03Z")

</div>

thank you!!!

---

<div class="post-metadata">

**Author:** ![Julioacarrettoni](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/julioacarrettoni/32/37145_2.png) [@Julioacarrettoni](https://discuss.circleci.com/u/Julioacarrettoni)\
**Post date:** [September 16, 2026, 11:26pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/8 "2026-09-16T23:26:12Z")

</div>

Thank you for sharing this, is quite refreshing to see we are not alone.  
We are having quite similar issues to yours, except ours happen on EC2 Macs not on VMs, and it happens mid test, not at the end.

But then the same thing, it just hangs in there doing nothing. We found the problem also running a “sample” on the stuck xcodebuild. settin the same flag `-collect-test-diagnostics never` seems to be a good work around so far.

We still don’t know why this happens and what triggers the “collection” since it happens on tests that actually passes with the flag.

---

<div class="post-metadata">

**Author:** ![ecant](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ecant/32/37148_2.png) [@ecant](https://discuss.circleci.com/u/ecant)\
**Post date:** [September 18, 2026, 8:42pm UTC](https://discuss.circleci.com/t/tests-hanging-on-xcode-26/54156/9 "2026-09-18T20:42:02Z")

</div>

We saw the same thing on Xcode 27, running our UI tests on iOS 27 and iOS 26, and this fix worked and all the normal xcresults that we look for were still preserved. Thanks a ton!
