Skip to main content
January 25, 2012
Question

Errors for building ios static library in adobe air

  • January 25, 2012
  • 1 reply
  • 734 views

Hi

I am trying to add Twitter framework(MgTwitterEngine) in Native extension for adobe air. I added files and respective delegates in the same way like I did in making Native iPhone app using xcode. I added libxml2.dylib in xcode and added its path in “Header search path” and it builds with no error on xcode. When I try to compile static library in adobe air it gives me errors like Xmlfree.. referenced from etc which means we need to add options for libxml2 in adobe air too. Can you please tell me how can I add library path and itself if needed? thanx for your help in advance.

With my best,
Amir

This topic has been closed for replies.

1 reply

March 13, 2012

1) There are 2 steps for this: You need to use the -platformoptions switch while packaging your ANE, along with an xml file, which contains the linker options.

Details may be found at:http://help.adobe.com/en_US/flex/mobileapps/WSe4e4b720da9dedb5-4aefe03513238d8a1b8-8000.html

and http://blogs.adobe.com/rajorshi/2011/11/16/ios5-support-for-airusing-external-sdks-to-package-apps/

2) You need to use the -platformsdk switch of ADT while packaging your IPA, and provide the path to iOS SDK to the same.

-Neha