Skip to main content
cybobear
Inspiring
February 2, 2018
Answered

ADT command line packaging of IPA

  • February 2, 2018
  • 1 reply
  • 1590 views

Hello,

I've been having trouble getting the command line ADT working for IPA publishing. I've been using Animate on a PC and IPA packaging using the IDE works fine. I need to package the IPA with a custom SWF. It doesn't look like you can do this with Animate, when publishing it always recompiles the swf.

Here is the command I'm using:

adt -package -target ipa-test -storetype pkcs12 -keystore mycert.p12 -storepass mypass provisioning-profile mypp.mobileprovision Build.ipa Build.xml Build.swf icons assets defaultimgs/Default-Landscape@2x~ipad.png defaultimgs/Default-Landscape~ipad.png

The error I get is:

no such file (fullpath here)Build.ipa

Since this is the target file to build, the error doesn't make much sense as this file isn't supposed to exist before ADT runs.

I tried adding, -useLegacyAOT no after the target parameter but this didn't work either.

Do I need to use OSX to run this command? It shouldn't be the case as Animate is publishing the IPA fine and I assume it's using that command under the hood.

Any help much appreciated!

This topic has been closed for replies.
Correct answer krgupta

Hi,

The command that you have mentioned here has a - missing before provisioning-profile. Can you please check once with below command

adt -package -target ipa-test -storetype pkcs12 -keystore mycert.p12 -storepass mypass -provisioning-profile mypp.mobileprovision Build.ipa Build.xml Build.swf icons assets defaultimgs/Default-Landscape@2x~ipad.png defaultimgs/Default-Landscape~ipad.png

Thanks,

Krati

Adobe AIR Engineering

1 reply

krguptaCommunity ManagerCorrect answer
Community Manager
February 2, 2018

Hi,

The command that you have mentioned here has a - missing before provisioning-profile. Can you please check once with below command

adt -package -target ipa-test -storetype pkcs12 -keystore mycert.p12 -storepass mypass -provisioning-profile mypp.mobileprovision Build.ipa Build.xml Build.swf icons assets defaultimgs/Default-Landscape@2x~ipad.png defaultimgs/Default-Landscape~ipad.png

Thanks,

Krati

Adobe AIR Engineering

cybobear
cybobearAuthor
Inspiring
February 2, 2018

Hi Krati,

Thanks for the prompt reply! That was the culprit. You rule! Great eye, these command lines get so long I start going cross-eyed!

Thanks again!

Colin Holgate
Inspiring
February 2, 2018

I don't know what the Windows equivalent is, but on Mac you can run Console while publishing an IPA from Animate (or Flash Pro). At some point you will see the ADT line that Animate uses, then copy the line, make any additions you need, and run the modified line from the command line. Saves a lot of time creating the full ADT line you're going to need.