gpt4 book ai didi

ios - 适用于 iOS 设备的 ADB

转载 作者:IT王子 更新时间:2023-10-29 08:12:14 25 4
gpt4 key购买 nike

我一直在寻找像 Android ADB 这样的工具来调试 iOS 设备。我找到了 iOS instrument,它是 XCode 的一个工具,可以在移动 iOS 设备上调试应用程序。如果您必须测试您的应用程序或其他一些开源应用程序,此工具会很有帮助。

我需要测试 iOS 设备,而不是我的应用程序,所以我一直在寻找适用于 iOS 设备的 Android ADB 之类的东西。

有类似的东西吗?

最佳答案

截至 2021 年,Facebook 提供了一种工具来执行此类设备自动化。

该项目名为“iOS Development Bridge”或idb

idb is a flexible command line interface for automating iOS simulatorsand devices

对于一些历史,它是一个名为 WebDriverAgent 的类似存档项目的替代品.

来自原始问题:

I would like to know if it's possible execute a touch on the iOSdevice, such as input events like "tap", "swipe", "drag", "flick" insimilar manner of adb shell for android devices. For example, I wouldlike to execute a touch on any icon (such as settings, or some othericon of the main menu) and I am not interesting to debug my apps, butonly to emulate an event in order to debug the device.

idb 可以做到这一点。它允许 interact与设备。

Examples from the docs:

Tapidb ui tap X YTaps a location on the screen specified in thepoints coordinate system. The tap duration can be set with --duration

Swipeidb ui swipe X_START Y_START X_END Y_ENDSwipes from thespecified start point to the end. By default this will be done by atouch down at the start point, followed by moving 10 points at a timeuntil the end point is reached. The size of each step can be specifiedwith --delta.

关于ios - 适用于 iOS 设备的 ADB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23430181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com