[英]How can I run XCUITest on real devices with different versions of iOS?
I want to test my app on Firebase Labs, which has different devices running different versions of iOS. In order to do this I need to 'Build for Testing', targeting 'Any iOS Device (arm 64)'.我想在 Firebase Labs 上测试我的应用程序,它有不同的设备运行不同版本的 iOS。为了做到这一点,我需要“为测试而构建”,目标是“任何 iOS 设备(arm 64)”。 This ends up creating an AppNameUITest-Runner.app to drive the UITest on the device.
这最终会创建一个 AppNameUITest-Runner.app 来驱动设备上的 UITest。 The problem is the driver app is built with the latest deployment target, while the test devices at Firebase Labs are all on older versions of iOS. So when I upload my package, the iOS 14.7 devices can't run the 15.2 driver app, and the tests fail.
问题是驱动程序是用最新的部署目标构建的,而 Firebase 实验室的测试设备都在 iOS 的旧版本上。所以当我上传我的 package 时,iOS 14.7 设备无法运行 15.2 驱动程序应用程序,并且测试失败。 Is the any way I can fix or work around this?
我有什么办法可以解决或解决这个问题吗?
Unfortunately you will not be able to do that if you are using the latest deployment target and they don't support devices with that iOS version.不幸的是,如果您使用最新的部署目标并且它们不支持具有该 iOS 版本的设备,您将无法执行此操作。 The fix would be to build the app with lower deployment target.
解决方法是构建具有较低部署目标的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.