Unable to Launch Tests/UITests in Xcode 16 with iOS 18 Simulator

Hello,

I'm unable to run any test cases in Xcode 16 with the iOS 18 simulator.

Steps to Reproduce:

  1. Create a new iOS project in Xcode 16 using the default iOS app template with the testing option checked.
  2. Run any test or UI test case by clicking the "Play" icon in the Test navigator.
  3. Xcode gets stuck at the "Testing" state indefinitely.

Environment:

  • macOS 15 beta 8
  • Xcode 16 beta 6
  • iOS 18 beta 7 simulator

Answered by Gong in 802800022
xcrun simctl delete all

This resolved the issue. However, you need to manually add all the simulators after this.

Accepted Answer
xcrun simctl delete all

This resolved the issue. However, you need to manually add all the simulators after this.

I would suggest not deleting simulator devices to workaround this issue. If there is something bad about the device state, I'd prefer to triage that to figure out what is going wrong. Could you collect a sysdiagnose and simctl diagnose when in this state and file a feedback report?

@Developer Tools Engineer FB15244277

Hello, I have exactly the same issue. Xcode 16, macOS sequoia 15.0.1, simulator iOS 18.

Do you have a suggested solution?

I am having the same issue with Xcode 16. Tests would run in any device with iOS 17 but not in any device with iOS 18.

I ran: xcrun simctl delete all and manually installed two simulators, one with iOS 17.0 and one with iOS 18.0. At first neither would work and was stuck on testing... but after restarting my computer the iOS 17 simulator works and the iOS 18 simulator still just says testing...

xcrun simctl erase all solved the issue for me

I'm having this issue too but the solution didn't work for me.

Unable to Launch Tests/UITests in Xcode 16 with iOS 18 Simulator
 
 
Q