iOS-Defining the target device

Ibrahim Ammar's Avatar

Ibrahim Ammar

02 Feb, 2016 07:05 PM

Hello and thank you again for great product !

In GrandleFx Documentation, it is stated that :
Defining the target device
For iOS you have to define the target device. This should be the ios_simulator or handle of the iOS device.

airMobile {
            targetDevice 22
}
You can find the handle of the attached devices with the following command:

> adt -devices -platform ios

The problem is that I am not understanding what should i replace in place of 22 and how to find it.. Any help is appreciated ..

Thank you in advance

  1. Support Staff 1 Posted by Yennick Trevels on 02 Feb, 2016 07:16 PM

    Yennick Trevels's Avatar

    The output of the "adt -devices -platform ios" would be something as follows:

    adt -devices -platform ios
    List of attached devices:
    Handle  DeviceClass DeviceUUID                  DeviceName
       22   iPhone      24d9b6fd...................a861117a7866510  myiPhone
       23   iPod        24d9b6fd...................a861117a7866510
    

    So the handle ids are 22 and 23, these are the numbers you can specify to targetDevice.

  2. 2 Posted by Ibrahim Ammar on 02 Feb, 2016 07:18 PM

    Ibrahim Ammar's Avatar

    One last thing if you please, where can I run adt ? is it inside grandle ? or should locate adt inside AIR SDK ?

  3. Support Staff 3 Posted by Yennick Trevels on 02 Feb, 2016 07:25 PM

    Yennick Trevels's Avatar

    adt is located in the bin directory of the AIR SDK.

  4. 4 Posted by Ibrahim Ammar on 02 Feb, 2016 07:27 PM

    Ibrahim Ammar's Avatar

    ok thank you so much for great help .. Wish you all luck

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac