Skip to main content
December 13, 2011
Answered

Multiple Native Extensions in 1 project

  • December 13, 2011
  • 1 reply
  • 480 views

Hi, I've already found a couple of post about this subject but the solutions do not seem to work for me.

I too had a problem with duplicate initializer functions so I fixed it like this:

- first ANE:

ContextInitializer

ContextFinalizer

ExtInitializer

ExtFinalizer

- second ANE:

MapContextInitializer

MapContextFinalizer

MapExtInitializer

MapExtFinalizer

My extension.xml of the second one looks like this:

...

<platform name="iPhone-ARM">

<applicationDeployment>

<nativeLibrary>libMapKitNatExt.a</nativeLibrary>

<initializer>MapExtInitializer</initializer>

<finalizer>MapExtFinalizer</finalizer>

</applicationDeployment>

</platform>

...

Seperately the ANE's work like they should, but if I try to build my project with both ane's this generic error pops up immediately after hitting the build button:

Error occurred while packaging the application:

Conflict in file name : compile.bat

Has anyone encoutered this before or knows how to fix it?

Thanks in advance,

Nico

This topic has been closed for replies.
Correct answer

Ok so I changed all  filenames to be unique (extension.xml, library.swc, ... except for library.swf) and now it seems to be working...

1 reply

Correct answer
December 14, 2011

Ok so I changed all  filenames to be unique (extension.xml, library.swc, ... except for library.swf) and now it seems to be working...