Xcode 10 fails to run XCTest/XCUITest on device [closed]

邮差的信 提交于 2019-12-12 09:08:42

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!