Skip to main content
Participating Frequently
November 9, 2011
Question

Creation of file ANE

  • November 9, 2011
  • 1 reply
  • 4995 views

Hi all,

I need to create a file ANE for IOS but receive this error:

Missing implementation for platform: iPhone-ARM

following the command that I used:

"/Applications/Adobe Flash Builder 4.5/sdks/4.5.1"/bin/adt -package -target ane debug/NativeAlert.ane extensions.xml -swc NativeAlert.swc -platform iPhone-ARM -C debug

can you help me??

thank you very much

Andrea

This topic has been closed for replies.

1 reply

November 9, 2011

Can you look for few things :

1. The command to use is

adt -target ane ext/inApp.ane extension.xml -swc AS.swc -platform iPhone-ARM library.swf -C <Path to folder containing libNative.a> libNative.a

Currently I can see you are missing library.swf (Which you get after rename the AS.swc to AS.zip and extracting it) and libNative.a which is the actual native library.

2. The contents of extensions.xml should be on the following lines.

<extension xmlns="http://ns.adobe.com/air/extension/2.5">

  <id>com.anything.anywhere</id>

  <versionNumber>1</versionNumber>

  <platforms>

    <platform name="iPhone-ARM">

            <applicationDeployment>

                <nativeLibrary>libNative.a</nativeLibrary>

                <initializer>ExtInitializer</initializer>

                <finalizer>ExtFinalizer</finalizer>

            </applicationDeployment>

        </platform>

  </platforms>

</extension>

ExtInitializer and ExtFinalizer are the actual names of the C functions in the native library.

Participating Frequently
November 9, 2011

Thank you very much,

for your reply, but I need still your help.

I have modified the command but receive this error:

No such directory: /Users/netwave/Documents/AdobeFlashBuilder4.5/NativeAlert/build/debug/NativeAlert.a

Following, the modified string:

"/Applications/Adobe Flash Builder 4.5/sdks/4.5.1"/bin/adt -package -target ane debug/NativeAlert.ane extensions.xml -swc NativeAlert.swc -platform iPhone-ARM  library.swf -C debug/NativeAlert.a

waiting your reply

Andrea

November 9, 2011

it should be -C debug<space>NativeAlert.a

because -C is to set current directory for resource. have value of -C is path of directory then a space and then actual file inside the folder set by -C