Skip to main content
Participating Frequently
June 8, 2012
Answered

Multiple IOS Native Extension

  • June 8, 2012
  • 2 replies
  • 2152 views

Hi everyone,

ok, I'm trying to compile an IOS application in AIR and I have to use 2 differents native extension.

I use ANT to execute the ADT command line but I got an error message that don't seems to happen to anyone!

The console simply says : Conflict in filename : unpack/catalog.xml

I specify the -extdir twice because I use subfolder for each NativeExtension.


ANT look like this:

<target name="ipa">

                    <exec executable="${sdk.air}/bin/adt" failonerror="true">

            <arg value="-package"/>

            <arg value="-target"/>

            <arg value="ipa-debug-interpreter"/>

            <arg value="-provisioning-profile"/>

            <arg value="${provision.wildcard}"/>

            <arg value="-storetype"/>

            <arg value="pkcs12"/>

            <arg value="-keystore"/>

            <arg value="${keystore.file}"/>

            <arg value="-storepass"/>

            <arg value="${keystore.password}"/>

            <arg value="../${project.name}.ipa"/>

            <arg value="${project.name}-app.xml"/>

            <arg value="-extdir"/>

            <arg value="${extension.camera}"/>

            <arg value="-extdir"/>

            <arg value="${extension.p2p}"/>

            <arg value="${project.name}.swf"/>

            <arg value="-platformsdk"/>

            <arg value="${sdk.ios}"/>

        </exec>

    </target>

I think that it's because ADT unzip and move some stuff in the same directory. Does someone have a clue for me ?

Thanks! 

This topic has been closed for replies.
Correct answer Rajorshi Ghosh Choudhury

Hi Yannick,

Both the ANEs contain a file named catalog.xml. Sice resources are copied to the top level of the final IPA bundle the second catalog.xml to be copied there causes the problem. If both the ANEs depend on this file and expect the contents of the file to be different then removing one would lead to runtime errors. However, if you know that the contents of catalog.xml are the same in both ANEs or that the code does not depend on this file being present (included by mistake?), you can remove the file from one of the ANEs. Just unzip the ANE, remove the file and create the package using adt again.

~rajorshi

2 replies

Participant
June 11, 2012

Hi Yannick,

Both the ANEs contain a file named catalog.xml. Sice resources are copied to the top level of the final IPA bundle the second catalog.xml to be copied there causes the problem. If both the ANEs depend on this file and expect the contents of the file to be different then removing one would lead to runtime errors. However, if you know that the contents of catalog.xml are the same in both ANEs or that the code does not depend on this file being present (included by mistake?), you can remove the file from one of the ANEs. Just unzip the ANE, remove the file and create the package using adt again.

~rajorshi

June 11, 2012

Hi Yannick,

catalog.xml is created as a part of unzipping the SWC and doesn't need to be included in the ANE.

Participating Frequently
June 11, 2012

I made it work this morning with your cue.... Seems like adding library.swf path to the default platform options in the .ane package command line make it to be package without the catalog.xml. 

Thanks guys.

chris.campbell
Legend
June 8, 2012

Forwarding to our iOS team for their review.