简体   繁体   English

如何在具有不同版本 iOS 的真实设备上运行 XCUITest?

[英]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.

相关问题 如何了解我的iOS应用正在运行哪些设备/操作系统版本? - How can I learn which devices/OS versions my iOS app is being run on? 如何在真实的iOS设备中自动执行“设置”应用程序? - How can i automate 'Settings' app in real iOS devices? 如何查找不同iOS设备(非OS版本)上的用户百分比? - How to find percentage of users on different iOS devices (not OS versions)? 在真实的iOS和Android设备上运行nightwatchjs测试 - Run nightwatchjs tests on real iOS and Android devices iOS版本:如果我的应用程序需要特定的“次要”设备,那么如何在同一应用程序中使用更新设备的好处? - iOS versions: if I have an app with specific “minor” device required, how can I use benefits of newer devices in the same app? 我可以基于模式检测来运行网站的不同版本吗 - Can I run different versions of my website based on detection of mode React Native:我可以在iOS模拟器上运行应用程序,但不能在真实设备上运行 - React native: I can run the application on iOS simulator but not on real device iOS如何运行使用早期SDK版本构建的应用程序? - How can iOS run apps built with previous SDK versions? 如何通过OSX Shell命令在不使用仪器的真实设备上运行ios App? - How can I run ios App on real device via OSX shell command not using instruments? iOS XCUITest - 如何使用 xcuitest 从应用切换器中删除应用? - iOS XCUITest - How to remove an app from the app switcher using xcuitest?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM