Copy link to clipboard
Copied
It seems that while exploring native extensions I am destined to stumble upon some annoying Adobe bugs. When running ADT from terminal I'm getting the following error message:
/path/to/my/build/folder/platformoptions.xml: error 102: Invalid namespace http://ns.adobe.com/air/extension/3.4
error running adt tool
Let me explain in details how I ended there. I am building a native extension for OSX (Xcode), Windows (MS VC++) and lately for the iOS platform (Xcode too). I created three AS3 projects in Flash Builder for that purpose:
I was doing more or less Ok with Flash Builder 4.6 with its out of the box AIR SDK 3.1, but I wanted to check how iOS USB debugging works so I installed Flash Builder 4.7 Beta. I also had some problems using AIR 3.1 runtime on desktop platforms (when exiting my Flex application was always crashing) so I had more than one motive to upgrade both IDE and runtime.
It turns out that platform options file is the main problem here; I get error for anything except 3.1 namespace. Here's how my ADT call from terminal looks like:
adt -package -target ane tmp.ane extension.xml -swc $extension_main_swc -platform iPhone-ARM -platformoptions "$extension_po_xml" -C "$extension_main" . -platform default -C "$extension_default" .
And here's how my platformoptions.xml file looks:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<platform xmlns="http://ns.adobe.com/air/extension/3.4">
<sdkVersion>6</sdkVersion>
<linkerOptions>
<option>-framework ImageIO</option>
</linkerOptions>
</platform>
If i change namespace in platformoptions.xml to 3.1 I get "Namespace of platformoptions.xml should match extension namespace." etc. It turned out that the only way for this all to work is to revert all namespaces to 3.1 and compile all components (except the test app) using AIR SDK 3.1 toolchain. I had to leave test app's SDK to 3.4 to be able to use USB debugging, right? If I didn't do that, I would all the same get "The iOS Debug Binary (IDB) component is not installed."
So, dear Adobe, when will there be ADT supporting native extensions' platformoptions for AIR SDKs higher than 3.1 available?
UPDATE1: Strange, it seems that Flash Builder 4.7 is not using AIR SDK from /Applications/Adobe Flash Builder 4.7/sdks/4.6.0 folder anymore, but from /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.345990/AIRSDK. So FB 4.7 comes with AIR SDK 3.4 after all.
Copy link to clipboard
Copied
Hi,
I have found info about this in this page:
http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-8000.html
Note: The platform.xml file reqires the ns.adobe.com/air/extension/3.1
namespace, so if you are using the -platformoptions
flag to package your ANE, you must specify ns.adobe.com/air/extension/3.1
and a SWC version less than or equal to 14.