After upgrading to XCode 10, it fails to run my tests on the device. After finish building, it immediately shows a popup "Test Failed" without showing any errors on the console.
"Run" works on device. Both XCTest and XCUITest runs on simulator.
The error is reproducible on new project running the default UITest on the device.
Check Targets [Build Settings] Search IPHONEOS_DEPLOYMENT_TARGET
Remove IPHONEOS_DEPLOYMENT_TARGET setting
Before:
After:
Restarting the phone made it work.