ADB equivalent for iOS device

前端 未结 3 1238
暖寄归人
暖寄归人 2020-12-14 17:37

I was looking some instrument like Android ADB in order to debug iOS devices. I\'ve found iOS instrument, a tool of the XCode that is able to debug app on mobile iO

相关标签:
3条回答
  • 2020-12-14 18:14

    If you happen to have Adobe AIR installed with their ADT (Adobe Developer Tool), you can run:

    adt -devices -platform ios
    
    0 讨论(0)
  • 2020-12-14 18:15

    To get the list of attached iOS devices, use the command xcrun instruments -s devices.

    0 讨论(0)
  • 2020-12-14 18:19

    You asked:

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

    This sort of testing is done via Instruments. See the Automated UI Testing section of the Instruments User Guide. Also see WWDC 2010 video Automating User Interface Testing with Instruments, which shows some interactive demonstrations of this process. This Cocoa Controls page has many other links, too.

    Bottom line, you can use the UI Automation tool in Instruments to automate the testing of your UI. Note, some of us have had issues in iOS 7 with using this on the simulator, but it seems to work fine on physical devices.

    0 讨论(0)
提交回复
热议问题