3 Replies Latest reply on Dec 1, 2011 7:53 AM by MrGoldSun

    Help - Can not get more than one extension working in a single project.

    DaveGallant Level 1

      I created a small app to test extensions that I am creating.

      Now, I have 2 extensions in my project.

       


      #1 - AlertViewNativeExtension - this is an extension that shows an UIAlertview dialog based on a bunch of parameters and then fires an event when it closes to tell you what button was pressed. ( I wrote this one)

      #2 - ibatteryextension - this is the downloaded iOS battery sample extension from the adobe examples page.

       

      in my descriptor file I have the following:

       

        <extensions>

          <extensionID>com.custardbelly.ibattery</extensionID>

          <extensionID>com.GoldSunGames.NativeExtensions.AlertViewNativeExtension</extensionID>

        </extensions>

       

      The project has the SWC's for each added and linked externally.
      I have the ANE's in a folder called ext

       

      ./ext/AlertViewNativeExtension/AlertViewNativeExtension.ane

      ./ext/iBattery/ibatteryextension.ane

       


      I then build the project using ADT with the following command line:

       

       

      "D:\SDKs\AirSDK30\bin\adt" -package -target ipa-debug -connect -storetype pkcs12 -keystore "**************" -storepass *************** -provisioning-profile "**************" "Tester.ipa" "Tester-app.xml" "Tester.swf" -extdir ext/AlertViewNativeExtension -extdir ext/iBatter

       

       

      It builds without any errors.
      I put it on my device and fire it up.

       

      Now, the iBattery extension works just fine
      But the other one doesn't... I get Error #3500: The extension context does not have a method with the name showAlertView (which is the name of my method to call it)

       

      Now, if I remove the iBattery extension, the alert view extension suddenly starts working perfectly.

      if I use iBattery by itself, it works fine.

       

      if I add a 3RD extension or even more to the project, only 1 will work and the rest don't.

       

      Anyone have any idea why?