问题
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.
回答1:
Restarting the phone made it work.
回答2:
Check Targets [Build Settings] Search IPHONEOS_DEPLOYMENT_TARGET
Remove IPHONEOS_DEPLOYMENT_TARGET setting
Before:
After:
来源:https://stackoverflow.com/questions/52395320/xcode-10-fails-to-run-xctest-xcuitest-on-device