Running tests on the DeviceHub not working

I am getting this error when trying to run my tests: Library not loaded:

@rpath/XCTestCore.framework/XCTestCore
  Referenced from: <498690CD-C914-3EE9-8EC1-C3BA4EF513CA> /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/libXCTestSwiftSupport.dylib
  Reason: tried: '/Users/<>/Library/Developer/Xcode/DerivedData/Sonnet-bqruszxvmhdevmbxdbnagkvhywae/Build/Products/Test Project-iphonesimulator/XCTestCore.framework/XCTestCore' (no such file)

It is only appearing on the DeviceHub. When I run the tests in my xcode 26, with the old Simulator, they run just fine.

Running tests on the DeviceHub not working
 
 
Q