2

I tried with Appium, UI Automation and Monkey Talk to automate native app automation for real iOS device. Mentioned tools are not supporting real iOS native app automation.

Is there a (freeware) tool that automates native apps of real iOS devices?

Anthon
  • 69,918
  • 32
  • 186
  • 246
  • Can you provide a use case for this? UIAutomation (and the wrappers for UIAutomation that you listed) would allow you to control your own app, but Apple's sandboxing would prevent you from controlling a system app. – Ian Apr 06 '15 at 21:04
  • Disregard previous comment, I was thinking of the simulator. – Ian May 19 '15 at 21:08

1 Answers1

0

You can try the following in your Terminal:

instruments -v -w YOUR_DEVICE_ID -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/Preferences.app -e UIASCRIPT /Users/mytests/Documents/xCode/Shell-Script/YourTestScript-App.js

The above command is a 1 liner. But you need to write your own test script called YourTestScript-App.js

Empario
  • 402
  • 6
  • 19
  • That won't work on a device. You're specifying the device ID and then giving it the path of the *Preference* app on your simulator. – Ricardo B. Jul 07 '15 at 00:54
  • yes I have and it didn't work for me. Does it work for you? – Ricardo B. Jul 07 '15 at 21:24
  • @Ricardo: It works for me. Can you tell me what the error message is or what kind of problem you have? – Empario Jul 07 '15 at 21:30
  • Here's the error: "Target failed to run: Permission to debug com.apple.Preferences was denied. The app must be signed with a development identity (e.g. iOS Developer)." – Ricardo B. Jul 07 '15 at 22:38
  • @Ricardo: Have you started Xcode? Can you connect the phone with Xcode? Do you have a iOS developer account? I am wonder if that is the problem. – Empario Jul 07 '15 at 23:18
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/82653/discussion-between-ricardo-b-and-empario). – Ricardo B. Jul 07 '15 at 23:41
  • @MagnusO. Nope. It only works on the simulator but not on a real device. Did you get it working? – Ricardo B. Aug 20 '15 at 18:30
  • @RicardoB. Sorry no. Seems like it is not possible. – Magnus O. Aug 21 '15 at 06:52