Skip to main content
Inspiring
October 27, 2011
Question

Need help on how to package project using ADT

  • October 27, 2011
  • 3 replies
  • 1152 views

I've never used ADT as it hasn't been needed as I use Flash Pro, but now I wanted to try out some extensions and know that packaging the projects with ADT is now needed.

I've read some small guides here and there, like this one:http://help.adobe.com/en_US/air/build/WS597e5dadb9cc1e0253f7d2fc1311b491071-8000.html , but I still don't know how to do it.

I wanted to try this Native Alert for iOS extension . So, I've downloaded it, added the swc to the Library path, setting its linkage to external. Added the code from the readme.txt file:

import com.wolfknock.air.extensions.ios.NativeDialog;

private var dialog:NativeDialog;

dialog = new NativeDialog();

//dialog.addEventListener(NativeDialog.NATIVE_DIALOG_CLICKED, nativeDialogClickedHandler); // Optional. NE dipatches event after the Alert button has been clicked.

dialog.showNativeDialog("Native Alert Title", "Adobe Air Native Extensions", "YES"); // Titel, Message, Button text (optional)

....

dialog.dispose(); // best after receiving NativeDialog.NATIVE_DIALOG_CLICKED event

But when trying to publish it I just get a bunch of errors, so I tried to do like they said in one of the adobe pages on how to use ANE files, I made it into an .swc and imported that one instead, still errors. Then I found some info on the internet saying it will throw errors, but the swf file is still created, and yup, it was. So I moved on to the next part. I added the necessary stuff to the xml file:

<id>com.wolfknock.idialog</id>

and

<extensions><extensionID>com.wolfknock.idialog</extensionID></extensions>

Now I just need to run the ADT which I don't understand:

The following command creates an iOS package for an iPhone application:

adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore ../AppleDistribution.p12 -provisioning-profile AppleDistribution.mobileprofile myApp.ipa myApp-app.xml myApp.swf icons Default.png -extdir extensionsDir

Ok, I get the "adt -package", but not the rest. what's the ipa-ad-hoc? Is it a missing file I need or just the command of -target? When trying different combinations of this above command line I always got the same result, it wanting a password, and I couldn't enter anything, was only able to press enter so it all cancelled. It says "icons", now that doesn't even look like a switch, so what do they want with that? Name of the folder containing the icons or something? I've tried to find info on what all the switches do, but couldn't find anything.

So, can someone make me a proper command line out of these files, pls?:

extension.swf

extension-app.xml

extension.swf

cert.p12

provisioning.mobileprovision

I have no icons yet nor a Default.png, but if they are needed to produce this ipa package, just incude them in the command line and I'll make some.

Very grateful for any help.

This topic has been closed for replies.

3 replies

TenchyMyoAuthor
Inspiring
October 29, 2011

No one that can help me?

TenchyMyoAuthor
Inspiring
October 30, 2011

Solved, just took me ages to figure out.

Participant
May 16, 2012

I know it was long ago.  But how did you solve it?