Skip to main content
Inspiring
January 18, 2014
Question

AIR4 Bug: "-useLegacyAOT no" socket connection problem

  • January 18, 2014
  • 1 reply
  • 740 views

I just noticed a clear bug in AIR 4.0 when the iOS package is compiled with "-useLegacyAOT no"

I have an app that uses socket & http connections. It uses Union Platform for that (http://www.unionplatform.com)

Compiling with -target ipa-test-interpreter works.

Compiling with -target ipa-ad-hoc works.

Compiling with -target ipa-ad-hoc -useLegacyAOT no the app can no longer connect to the server either by socket or http.

Tested on iPad 3, iOS 7.0.4, AIR4 player version 12.0.0.38

I just discovered the issue so I don't have any test suite.

This topic has been closed for replies.

1 reply

ArmandNAuthor
Inspiring
January 20, 2014

I now have a test file.

I made a simple SWF that uses the Union Reactor library for connection.

It simply connects to tryunion.com on port 80 and shows some debugging info in a text field.

If I do an AIR4 iOS package with "-target ipa-ad-hoc", it works (shows "Reactor now connected and ready" and closes the connection a minute after).

If I do the same ut with "-target ipa-ad-hoc -useLegacyAOT no", it can no longer connect.

Somehow I suspect a sandbox/policy file issue.

I uploaded the file here (115Kb)

http://www.fileswap.com/dl/N1wSe90WZO/

(I don't know how I can attach the file to this post instead).

ArmandNAuthor
Inspiring
January 24, 2014

So, no one can either confirm or deny this behaviour? Should I submit this as a bug?

January 24, 2014

Hi,

We are able to reproduce the issue and currently investigating it.

Thanks for Reporting,

-Ankit