Hello,
I'm trying to update my app (developed with Flash Builder4.6 SDK 4.6) from AIR 4 api for flex 3.3 to AIR 15 api for flex 3.7.
The app is set to show an initial message and then it loads a basemap.
While there is no problems on Android, IOS 8.1 crashes as soon as it starts loading the basemap.
After many tests i've noticed that the object that causes the issue is the map (com.esri.ags.Map.Map()), that drives up the memory usage up to 80% leading to an immediate crush of the app.
Removing the map object the app starts flawlessly.
Has anyone experienced the same issue? Any idea how to solve it?
Thanks in advance
Michele
Solved! Go to Solution.
Think this is same thing I experienced. If you are not already, try adding the "–useLegacyAOT" parameter with value of "yes" to the "Customize Launch Parameters". Place it before "-provisioning profile". Adobe rewrote the IOS compiler, this will set it back to the original version. It will take longer to build but not affect performance. I have never been able to successfully use the new compiler with the ArcGIS for Flex API without having what you described happen. Using the legacy compiler, I have no problems.
Hope that does the trick.
RAZ
Think this is same thing I experienced. If you are not already, try adding the "–useLegacyAOT" parameter with value of "yes" to the "Customize Launch Parameters". Place it before "-provisioning profile". Adobe rewrote the IOS compiler, this will set it back to the original version. It will take longer to build but not affect performance. I have never been able to successfully use the new compiler with the ArcGIS for Flex API without having what you described happen. Using the legacy compiler, I have no problems.
Hope that does the trick.
RAZ
Thanks Raz.
It worked !!! but only with flash builder flash 4.7 !
In Flash Builder 4.6 by interface you can not set the parameter.
Unfortunately Flash Builder 4.7 is not available for the interface design for mobile.
Thanks
Michele
Robert, after 01/02/2015 Apple don't will accept apps that not was compiled with 64 bits support.
To do this it's necessary to use a new compiler.
If the ArcGIS for Flex API don't compile with the new compiler, how to create new apps after this date?
Thanks
Fabiano
Fabiano,
There's the rub. We either (1) try to find a workaround with current SDK and the 64bit compiler or (2) report the problem to ESRI and hope they can come up with a workaround or fix or (3) report to Adobe and hope they fix the problem. For myself, I am choosing a forth option -- I am abandoning Flex development on IOS. Just too many headaches -- layout issues, performance issues and now this. It had to be done eventually, this just sped things up a bit.
Good luck!
RAZ
I believe Adobe fixed this bug in AIR 16.
Mr. Svensson,
Thanks for the heads up. Using the latest release, I did not encounter the problem.
RAZ
Yes, the problem was solved.
I have been compiling using flash builder 4.7 with apache flex 14.1, air 17, and ESRI flex api 3.7. App compiles without any issues using the new compiler, surprisingly the app performs well on IOS. I have tried an Iphone 4s, 5, 5c, and 6.