Xcode 10 fails to run XCTest/XCUITest on device [c

2020-07-26 11:09发布

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.

2条回答
家丑人穷心不美
2楼-- · 2020-07-26 11:14

Check Targets [Build Settings] Search IPHONEOS_DEPLOYMENT_TARGET

Remove IPHONEOS_DEPLOYMENT_TARGET setting

Before:

Before

After:

After

查看更多
你好瞎i
3楼-- · 2020-07-26 11:16

Restarting the phone made it work.

查看更多
登录 后发表回答