Swift UI tests failing to launch on pre iOS 12.3 devices

前端 未结 3 1646
太阳男子
太阳男子 2021-01-27 02:58

I\'m trying to setup some UI tests but can\'t get them to run on devices running pre iOS 12.3.

Even if I start a fresh swift project with \'include UI tests\' ticked and

3条回答
  •  情话喂你
    2021-01-27 03:18

    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.

    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

提交回复
热议问题