Xcode 10 test failure when running on older iOS simulators - “Failed to load test bundle… no suitable image found”

前端 未结 2 1758
遇见更好的自我
遇见更好的自我 2021-02-20 12:52

I\'ve installed Xcode 10 and upgraded my iOS application to Swift 4.2. When I run my tests (both UI and Unit) via Xcode, on an iPhone simulator running iOS 12, the tests success

2条回答
  •  無奈伤痛
    2021-02-20 13:16

    The test targets had the iOS Deployment Target setting left as the default value.

    In Xcode 9.4, this is equal to "iOS 11.4", yet the tests can still be run on an "iPhone 7 (10.3)" simulator for some reason. In Xcode 10, there seems to be a change in behaviour since the tests no longer run on simulators running iOS versions prior to the default "iOS 12".

提交回复
热议问题