1 Reply Latest reply on Nov 9, 2017 10:49 AM by Chris W. Griffith

    Help with Error During Build

    okanel

      Hi, I'm rebuilding some apps after updates to PhoneGap and plugin movement etc and the build consistently failed on archive and I'm stumped.  Here's my config.xml

      with identifying items removed:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.appshed.icomputey" version="2.0.0">

        <name>App Name</name>

        <description>App Description</description>

        <author email="email address">Name</author>

        <preference name="webviewbounce" value="false"/>

        <preference name="detect-data-types" value="false"/>

        <preference name="stay-in-webview" value="true"/>

        <preference name="target-device" value="tablet" />

        <gap:config-file platform="ios" parent="CFBundleVersion"><string>2</string></gap:config-file>

        <preference name='phonegap-version' value='cli-6.5.0' />

        <access origin="*" uri="*"/>

        <plugin spec="https://github.com/ti8m/DocumentHandler.git" source="git" />

        <plugin spec="https://github.com/PolarCape/polarcape-cordova-plugin-document-handler.git" source="git" />

        <plugin spec="https://github.com/apache/cordova-plugin-camera.git" source="git" />

        <plugin spec="https://github.com/apache/cordova-plugin-dialogs.git" source="git" />

        <plugin name="cordova-plugin-file" source="npm" version="5.0.0"/>

        <plugin name="cordova-plugin-file-transfer" source="npm" version="1.6.3"/>

        <plugin name="cordova-plugin-media-capture" source="npm" version="1.4.3"/>

        <plugin spec="https://github.com/apache/cordova-plugin-geolocation.git" source="git" />

        <plugin spec="https://github.com/apache/cordova-plugin-media-capture.git" source="git" />

        <plugin spec="https://github.com/Paldom/SpinnerDialog.git" source="git" />

        <icon src="Icon2x.png" width="29" height="29" gap:platform="ios"/>

        <icon src="size_app_icon_iphone_settings_retina2x.png" width="58" height="58" gap:platform="ios"/>

        <icon src="icon_ipad_ios6_spotlight.png" width="50" height="50" gap:platform="ios"/>

        <icon src="icon_ipad_ios6_spotlight_retina.png" width="100" height="100" gap:platform="ios"/>

        <icon src="icon_app_spotlight.png" width="100" height="100" gap:platform="ios"/>

        <icon src="icon.png" gap:platform="ios" width="57" height="57" />

        <icon src="Icon72.png" width="72" height="72" gap:platform="ios"/>

        <icon src="Icon722x.png" width="144" height="144" gap:platform="ios"/>

        <icon src="icon_ipad_ios7.png" width="76" height="76" gap:platform="ios"/>

        <icon src="icon_ipad_ios7_x22x.png" width="152" height="152" gap:platform="ios"/>

        <icon src="icon_spotlight.png" width="152" height="152" gap:platform="ios"/>

        <icon src="icon_spotlight.png" width="152" height="152" gap:platform="ios"/>

        <icon src="size_app_icon_ipad_settings.png" width="100" height="100" gap:platform="ios"/>

        <icon src="size_app_icon_ipad_settings_retina2x.png" width="100" height="100" gap:platform="ios"/>

        <icon src="icon_ipad_spotlight.png" width="80" height="80" gap:platform="ios"/>

        <icon src="icon_ipad_spotlight_retina2x.png" width="80" height="80" gap:platform="ios"/>

        <gap:splash src="Default.png"/>

        <gap:splash src="DefaultLandscapeipad.png" width="1024" height="768" gap:platform="ios"/>

        <gap:splash src="DefaultLandscapeipad2x.png" width="2048" height="1536" gap:platform="ios"/>

        <gap:splash src="DefaultPortraitipad.png" width="768" height="1024" gap:platform="ios"/>

        <gap:splash src="DefaultPortraitipad2x.png" width="1536" height="2048" gap:platform="ios"/>

      </widget>

       

      It fails with:

       

      ** ARCHIVE FAILED **

       

       

      The following build commands failed:

      CompileAssetCatalog /Library/Developer/Xcode/DerivedData/iComputeY1-bibkaeaxpeyqbbffuvvxqyysfglu/Build/Interm ediates/ArchiveIntermediates/iComputeY1/InstallationBuildProductsLocation/Applications/iCo mputeY1.app iComputeY1/Images.xcassets

      (1 failure)

      Error code 65 for command: xcodebuild with args: -xcconfig,/private/project/cordova/build-release.xcconfig,-workspace,iComputeY1.xcworkspa ce,-scheme,iComputeY1,-configuration,Release,-destination,generic/platform=iOS,-archivePat h,iComputeY1.xcarchive,archive,CONFIGURATION_BUILD_DIR=/private/project/build/device,SHARE D_PRECOMPS_DIR=/private/project/build/sharedpch

      /gimlet/bin/system_ruby: line 22: shell_session_update: command not found

       

      It suggests a problem with images but I haven't changed any of them at all. Only updated Phonegap preference version and plugin locations to reflect the changes made by PhoneGap. Previous version if fine and available on AppStore. I'm just updating the plugins.

       

      If anyone could help it'd really help me out as I'm stumped!

        • 1. Re: Help with Error During Build
          Chris W. Griffith Adobe Community Professional

          When migrating from older config.xml files it is useful to migrate in steps. A lot has changed. You will want to bring up the documentation to ensure you have the right elements. PhoneGap Build is aligning itself much closer to Cordova.

           

          First, the syntax for both the icon and splash screen elements are different. You will want to update them. You also have some duplicates in your file. You also are missing several splash screen sizes as well.

           

          You should check that some of the general preferences you set are still valid and in the right format

           

          You can set the ios-CFBundleVersion="2" in the widget tag, so the element you have listed is not needed.

           

          Remove sections at a time, then rebuild. Then add back in elements to help identify the bad tag. Yes the actual app might not run, but you are only looking at the build process.

           

          Good luck,

          Chris