Skip to main content
Participant
June 6, 2015
Question

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

  • June 6, 2015
  • 2 replies
  • 2690 views

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 has been closed for replies.

2 replies

Participant
July 29, 2015

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

doogoggAuthor
Participant
July 29, 2015

Yes I am.

Colin Holgate
Inspiring
June 6, 2015

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.

doogoggAuthor
Participant
June 6, 2015

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.

Colin Holgate
Inspiring
June 7, 2015

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.