且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Swift UI测试无法在iOS 12.3之前的设备上启动

更新时间:2023-12-04 15:29:10

答案非常简单.只需确保在构建设置中,UI测试目标与应用程序具有相同的部署目标即可.

The answer to this is infuriatingly simple. Just make sure, in your build settings, that the UI tests target has the same deployment target as the app.

我已将应用程序更改为iOS 10的目标,但没有想到我需要针对UI测试目标进行相同的更改.

I'd changed the app to target down to iOS 10 but hadn't thought I'd need to make the same change for the UI tests target.

我认为对于我们来说这应该是自动同步的,大概没有理由让它们真正针对不同的版本

I'd imagine this is something that should be auto-synced for us, presumably no reason to have them targeting different versions really