4 Replies Latest reply on Aug 3, 2017 9:48 AM by dews

    Error occurred while packaging the application: 0

    dews Level 1

      Fast and Standard work without issue.  When I try to package an Ad Hoc release I get just the error: 0

       

      The logs reveal:

       

      !ENTRY com.adobe.flexbuilder.project 4 43 2017-06-06 17:05:17.949

      !MESSAGE 0

      !STACK 0

      java.lang.ArrayIndexOutOfBoundsException: 0

      at java.lang.ProcessBuilder.start(ProcessBuilder.java:443)

      at com.adobe.flexbuilder.project.air.export.MultiPlatformProcessBuilder.execute(MultiPlatfor mProcessBuilder.java:128)

      at com.adobe.flexbuilder.project.air.export.MultiPlatformProcessBuilder.executeJavaCommand(M ultiPlatformProcessBuilder.java:75)

      at com.adobe.flexide.multiplatform.ios.packaging.IPAPackager.create(IPAPackager.java:306)

      at com.adobe.flexide.multiplatform.ios.packaging.IPAPackager.create(IPAPackager.java:349)

      at com.adobe.flexide.multiplatform.ios.exportrelease.IOSExportReleaseHandler.createPackage(I OSExportReleaseHandler.java:396)

      at com.adobe.flexide.multiplatform.ios.exportrelease.IOSExportReleaseHandler.doPackage(IOSEx portReleaseHandler.java:310)

      at com.adobe.flashbuilder.project.multiplatform.ui.exportrelease.MultiPlatformExportReleaseV ersionManager.doExport(MultiPlatformExportReleaseVersionManager.java:317)

      at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard$1.run(Exp ortReleaseVersionWizard.java:221)

        • 1. Re: Error occurred while packaging the application: 0
          dews Level 1

          I need help with this please.  We're ready to distribute to the APP Stores and I'm getting the above error when packing Ad hoc or Final Release.

           

          Adobe Please respond..?

          • 2. Re: Error occurred while packaging the application: 0
            sudheerm3004048

            Hi,

             

            We tried reproducing this issue at our end but the issue is not reproducible. Could you please share the sample project in which you are facing this issue. Also please let us know the AIR SDK version you have used.

             

            Regards,

            Sudheer

            Adobe AIR Team

            • 3. Re: Error occurred while packaging the application: 0
              dews Level 1

              sudheerm3004048  wrote

               

              Hi,

               

              We tried reproducing this issue at our end but the issue is not reproducible. Could you please share the sample project in which you are facing this issue. Also please let us know the AIR SDK version you have used.

               

              Regards,

              Sudheer

              Adobe AIR Team

               

              Can you give me some indication what this might be from the error?

               

              I've commented out all ANEs, chunks of code and still getting this error.  Is there anything you can tell me?

               

              There's no way I can create a sample application - this is a large project.  How do I securely get this to you so you can figure out why it's breaking?  Can this be done remotely - is there anything you can suggest as to how I can proceed?

               

              I'm sure you can image how frustrating this is - Debug and Standard work without issue - but AD Hoc and Production builds fail.

               

              Thank you very much in advance for your time.

              • 4. Re: Error occurred while packaging the application: 0
                dews Level 1

                Ok, so the fix for me was simple, use the command line tool ADT to complete the build.  I'll post back again once we know exactly why FB fails to complete the build - Adobe Tech have been AMAZING btw - in the meantime, in case someone runs into a similar issue, here are a few things:

                 

                When you first package an Ad Hoc or Production build, FB creates a "bin-release-temp" folder.  ANEs are not included - so I manually copied them into a sub directory and ran ADT as per the docs found here: Adobe AIR * iOS packages

                 

                After the build was successful, I did have an issue installing the APP - it appeared to install on the device and then just disappeared.  To troubleshoot, I opened XCode / Devices - and installed the APP through this "Devices" popup window (you can also access crash logs for your APP here too btw).  XCode then revealed: "The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016)."  I'd simply forgotten to set the string: production for the key aps-environment.

                 

                Ok, time to test and push to the Stores!!