Hi all,
I am stuck now on setting up appium with real iOS device.
- My environment is:
- Mac book (OS X El Capitan 10.11.6)
- Xcode 7.3.1
- appium 1.5.3
- iPad 2 iOS 9.3.2
- appium with iOS simulator works well so that I think basic setup around my test script, appium server and xcode looks fine.
- Now, I’m trying to setup real iPad 2 according to “MOBILE SAFARI ON A REAL IOS DEVICE” chapter in http://appium.io/slate/en/master/?ruby#mobile-safari-on-a-real-ios-device , but no luck. the iPad2 real device is not recognized.
The document says:
To create a profile for the launcher go into the Apple Developers Member Center and:
…
Step 5: Download the profile and open it with a text editor.
Now, I have some questions.
Q1. I wonder where the profile is used? I thought somewhere the profile is installed, but there is no step to do that in this document. If the profile is not used, why is generation step required?
Q2. Step6 says UUID in the profile is my identity code. I see the uuid in the profile which I created as the following format:
...
<key>UUID</key>
<string>f######-####-####-####-##########05</string>
...
However, where the UUID is used? The document continues as “Now simply include your UDID”. I am confused here. UDID is not UUID, right? UDID here is Device Identifier of the iPad 2. Am I correct?
Q3. The document continues:
Now simply include your UDID and device name in your desired capabilities:
{
"udid": '...',
"deviceName": '...',
"browserName": "Safari"
}
Where the deviceName above come from? It is Name of Device Information in Xcode > Window > Devices > My real iPad2 name, right? If yes, it can be renamed to any name other than “iPad 2” like “HelloWorld” at iPad 2 setting, right?
I run ios_webkit_debug_proxy with iPad2 UDID (not UUID created above) as follows:
$ ios_webkit_debug_proxy -c 9###########################d:27753
and run appium, but my iPad2 is not recognized so that the following error is displayed:
[iOS] Error: Could not find a device to launch. You requested ‘HelloWorld (9.3)’, but the available devices were: [“Apple TV 1080p (9.2) [] (Simulator)","iPad 2 (9.3) [] (Simulator)”,…]
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
Could you tell me how to setup real iOS device on appium?
Thank you and Best Regards,