Skip to main content
Participant
Jun 6, 2015 5:13 AM UTC
Question

"input line is too long" error when including 10+ ANE's

I'm getting this error:

The input line is too long.

Compilation failed while executing : ld64

When trying to use ADT to package a SWF into IOS. This error seems to be resulting from including around more than ~14 ANE's in my app xml. If I stay under 10, it works fine. The amount of ANE's that will produce the error is not strict, and will depend on what ANE's are included. The error will eventually appear if you keep adding enough ANE's, but I find that 14 is usually when it starts to break.

I found this closed/fixed Bug#3689286 but it looks like this issue is still around.

This error happens with AIR SDK 16,17, and the beta 18.

Is there any way to get around or fix this? It is a huge road block since I cannot continue development with this error without removing big chunks of the project.

This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Participant
Jul 29, 2015 3:35 PM UTC

I'm having the same issue here. Are you using AIR SDK 18.0.0.180 too?

Translate
doogoggAuthor
Participant
Jul 29, 2015 9:38 PM UTC

Yes I am.

Translate
Colin Holgate
Inspiring
Jun 6, 2015 3:06 PM UTC

I wonder if it's the ADT line that is too long, because you're adding 14 full pathnames, plus whatever icons and other files you're using. Do you use -C in your input line at all? That changes the current working directory, and you can proceed by just using the file names, instead of the full pathname. That would dramatically shorten the ADT line.

Translate
doogoggAuthor
Participant
Jun 6, 2015 10:53 PM UTC

The ADT line is actually really short. It is as such:

adt.bat ^

-package ^

-target ipa-app-store ^

-useLegacyAOT no ^

-storetype pkcs12 ^

-storepass mypassword ^

-keystore ../../certs/ios/key.p12 -provisioning-profile ../../certs/ios/provision.mobileprovision ^

MyApp.ipa ^

MyApp-app.xml ^

MyApp.swf ^

Default-568h@2x.png ^

data ^

assets ^

icons ^

-extdir ../src/ane

This is ran inside directory containing the assets and swf so I'm not using full paths, only relative paths as you can see. Even so, I'm only pointing to a directory instead of individual files.

Translate
Colin Holgate
Inspiring
Jun 7, 2015 1:55 AM UTC

If the problem might relate to that bug report, why not try with the useLegacyAOT line removed? Recent versions of AIR default to 'no' anyway.

Translate