Unable to launch tests in Xcode 26

I am trying to upgrade my app to use Xcode 26 and I cannot get my tests to launch.

I am trying to launch tests to the simulator, and I always get this error after 300 second timeout: "encountered an error (The test runner hung before establishing connection.)"

There are no other errors getting logged.

I can run to the same simulator just fine, and in Xcode 16 the tests launch with no issues. The tests also run fine on an actual iPhone.

Thanks in advance.

Thank you for sharing your experience. When creating a new project in Xcode, do you consistently encounter the same issue when attempting to connect to the simulator, or is it limited to a specific project? If a new “Hello World” project exhibits the same problem, I recommend gathering the sysdiagnose logs to identify the underlying cause.

This is an intriguing issue, and I would appreciate it if you could provide further details. Specifically, could you share the build number you installed in Xcode and the macOS version?

Albert Pascual
  Worldwide Developer Relations.

Hello world project works fine.

MacOS 15.7.1 (24G231) Xcode Version 26.0.1 (17A400)

I am guessing it's related to our integrated Unity Library and something is crashing on app start just when running via tests on Xcode 26. However I do not see any logs or any indication of issues besides the timeout, the app just sits on the splash screen.

Thank you for the post. It is indeed positive news, and you are correct that this is likely an issue within your project that we need to investigate.

Could you please confirm if the logs are not providing any information regarding any issues that may be preventing the functionality? Additionally, would you be able to check the sysdiagnose logs for any warnings or errors?

In the meantime, I typically recreate the project and begin moving the code and frameworks to identify the root cause of the issue.

Hope this helps.

Albert Pascual
  Worldwide Developer Relations.

This is the only error I see inside xcode. Do you want sysdiagnose from the simulator or from my Mac?

Thank you for the post. It is advisable to include more messages in the sysdiagnose output. I recommend using macOS and a physical device instead of the simulator for the sysdiagnose command.

Can you file a bug with those?

Once you open the bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Albert Pascual
  Worldwide Developer Relations.

The tests deploy fine to a physical device, the hang only happens when deploying to the simulator.

Unable to launch tests in Xcode 26
 
 
Q