Skip to main content
Legend
December 11, 2013
Answered

unknown configuration variable 'useLegacyAOT'

  • December 11, 2013
  • 2 replies
  • 4952 views

Hi,

I just downloaded the latest SDK as I saw a thread stating that Windows issues with useLegacyAOT had been fixed, but I can't test as I am seeing the error "unknown configuration variable 'useLegacyAOT'" whenever I try setting "useLegacyAOT".

Is it possible to do this from Flash Builder, or do I need to attempt a command line based on Flash Builder project?

Thanks,
G

This topic has been closed for replies.
Correct answer Colin Childs

You can set it in Project -> Properties -> Flex Build Packaging -> Apple iOS -> Customize Launch. The only place I can seem to put it is before -provisioning-profile.

2 replies

Colin ChildsCorrect answer
Inspiring
December 11, 2013

You can set it in Project -> Properties -> Flex Build Packaging -> Apple iOS -> Customize Launch. The only place I can seem to put it is before -provisioning-profile.

Jeff__Ward
Inspiring
December 11, 2013

Gaius, I'm unsure about the Flash Builder flow, but you'd need to do something like:

1) overlay the new SDK over your existing one (there are threads describing how to do this.)

2) somehow add the "-useLegacyAOT no" into packaging options (for the adt command) - I don't know if/where this is in the GUI.

In my commandline workflow, it works like this:

>wine java -jar $AIR_HOME/lib/adt.jar -version

4.0.0.1320

Ensure the "-useLegacyAOT no" switch is right after "-target ipa-test" in the command:

>wine java -jar $AIR_HOME/lib/adt.jar -package -target ipa-test -useLegacyAOT no  -storetype pkcs12 -storepass *** -keystore cert.p12 -provisioning-profile dev.mobileprovision bin-debug/Main.ipa bin-debug/Main-app.xml -e bin-debug/Main.swf Main.swf -C src assets

Good luck!

Jeff

Legend
December 11, 2013

Thanks, Jeff,

I've got the SDK overlaid already, and there is no issue there, but the compiler command itself _is_ an issue (see screenshot).

You say it is important to specify the argument after -target ipa-test but I don't have access to the command order to see where in the flow it is placed! Equally, Flash Builder simply blocks me using the compiler directive anyway as it is checking for invalid values and won't allow me to proceed with it set.

That said, I can see how to try it with command line from your example (thanks! ), so I'll give it another go now.

G

Inspiring
December 11, 2013

Did you not read the first part of my response? Judging by that screenshot, you are not anywhere near the correct screen. It is not a compiler argument. It is a packaging argument.