4

I am trying to automate my company's app, downloaded from App Store, on a real hardware device (iPhone) using Appium.

Looking for help. I have tried:

  1. Download appium 12.2
  2. installed ios-webkit-remote-debugger
  3. Downloaded the app from app store
  4. Connected the iPhone with Mac
  5. Entered the UDID and BundeID and Forced Device as iPhone and click on Launch.
  6. Server started successfully but not able to launch the apium inspector.
Jess
  • 3,097
  • 2
  • 16
  • 42
Jitendra kumar
  • 106
  • 3
  • 10
  • Please provide the server logs. How did you know the BundleId? Was this an application you/your client put on the app store? – Jess Jul 24 '14 at 20:12
  • I have application source code from there i copied the bundle id. I got it from plist. – Jitendra kumar Aug 01 '14 at 14:22
  • I spent some time testing on hardware devices this last week. Please open a separate question for how to get setup using XCode/Appium and I'll walk you through the whole setup there. – Jess Aug 01 '14 at 14:30
  • I have opened a separate post. Please guide me so that i can start working on appium, Really appreciate your effort. – Jitendra kumar Aug 01 '14 at 14:53
  • Jump into the Appium chat http://appium.io/chat and we'll update the answer when we get it working – Jess Aug 01 '14 at 14:57

1 Answers1

5

You are not able to automate a build downloaded from the App Store.

For Instruments/Appium to connect to the application on a real device you need to....

  1. Have the .ipa file signed with a "Development" certificate that includes the UDID of the target device

  2. You can not use a "Distribution" certificate, which is what all App Store builds are signed with

Source: I spent the last two days on this. I need to update the Appium documentation.

Jess
  • 3,097
  • 2
  • 16
  • 42
  • What do you mean by "Development certificate that includes the UDID of the target device"? – mafonya Aug 21 '14 at 12:44
  • 1
    When you code sign your .ipa during archiving, you need to choose a Development certificate. This is what developers use to sign their apps when they run them on their phones during development. Difference between development and distribution certificates [here](http://stackoverflow.com/a/669068/3622606) – Jess Aug 24 '14 at 06:08
  • Right, but the certificate doesn't include any UDID. The provisioning profile does. Certificate only includes reference to the provisioning profile. I need to understand this part: "that includes the UDID of the target device" – mafonya Aug 25 '14 at 07:15
  • 1
    your development certificate needs to reference a mobile provisioning profile that allows you to build to the device you're trying to automate on. Test: Build and Run to that device via Xcode with the Code Signing identity you'll use when you archive the .ipa. If that Build and Run works, then the .ipa will work when you try and automate. – Jess Aug 25 '14 at 21:23
  • 1
    can you please update the answer wrt XCUITest from Instruments ? – vikramvi Aug 17 '17 at 14:06
  • This was the accepted answer in 2014, is it still true, since I was informed a colleague at work had managed to automate an app store app using appium? – Charlie S Jul 05 '18 at 08:19
  • I haven't worked with appium since 2014. iOS automation has moved forward a lot since then. My speculation is that this answer requires validation and editing. – Jess Jul 17 '18 at 20:32