3 Replies Latest reply on Aug 29, 2016 9:09 AM by Chris W. Griffith

    IOS build fails

    Tankegang a-s

      I am trying to rebuild a IOS app which contained deprecated plugins so I have tried to update them.

      But when build.phonegap.com gets the fil it returns the following error:


      Error - The following 3rd-party plugin is causing the build to fail and may need to be updated to a newer version: cordova-plugin-inappbrowser


      I have updated this plugin to version 1.4.0, which seams to be the newest version available.

      Below are a list of the plugins that I have installed. I am not using all of them.


      cordova-plugin-battery-status 1.1.2 "Battery"

      cordova-plugin-camera 2.1.1 "Camera"

      cordova-plugin-compat 1.0.0 "Compat"

      cordova-plugin-console 1.0.3 "Console"

      cordova-plugin-contacts 2.0.1 "Contacts"

      cordova-plugin-device 1.1.2 "Device"

      cordova-plugin-device-motion 1.2.1 "Device Motion"

      cordova-plugin-device-orientation 1.0.3 "Device Orientation"

      cordova-plugin-dialogs 1.2.1 "Notification"

      cordova-plugin-file 4.1.1 "File"

      cordova-plugin-file-transfer 1.5.1 "File Transfer"

      cordova-plugin-geolocation 2.2.0 "Geolocation"

      cordova-plugin-globalization 1.0.3 "Globalization"

      cordova-plugin-inappbrowser 1.4.0 "InAppBrowser"

      cordova-plugin-media 2.2.0 "Media"

      cordova-plugin-media-capture 1.2.0 "Capture"

      cordova-plugin-network-information 1.2.1 "Network Information"

      cordova-plugin-splashscreen 3.2.2 "Splashscreen"

      cordova-plugin-statusbar 2.1.3 "StatusBar"

      cordova-plugin-vibration 2.1.1 "Vibration"

      cordova-plugin-whitelist 1.2.2 "Whitelist"


      What could be the problem?

        • 1. Re: IOS build fails
          Chris W. Griffith Adobe Community Professional

          First, if you are not using them all, remove them from the config.xml file. Your app will load faster and be smaller.


          What is the source for the plugins? npm or other?


          Do you mind posting the actual config.xml (removing sensitive data).



          • 2. Re: IOS build fails
            Tankegang a-s Level 1

            My xml looks like this


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

                <widget xmlns = "http://www.w3.org/ns/widgets"

                    xmlns:gap = "http://phonegap.com/ns/1.0"

                    id        = "dk.energi2020.appv2"

                    versionCode = "9"

                    version   = "1.0.9">



                <!-- versionCode is optional and Android only -->



                <name>Energy Tour</name>




                    Energy tours guides you to exciting places


                <access origin="*" />

                <author href="https://www.energi2020.dk" email="post@rksk.dk">

                   Ringkøbing - Skjern Kommune


              <plugin name="cordova-plugin-file" />

              <plugin name="cordova-plugin-geolocation"/>

              <plugin name="cordova-plugin-inappbrowser"/>

              <!-- iPhone and iPod touch -->

            <gap:config-file platform="ios" parent="CFBundleShortVersionString">




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

              <!-- iPhone and iPod touch -->

            <gap:splash src="Default.png" gap:platform="ios" width="320" height="480" />

            <gap:splash src="Default@2x.png" gap:platform="ios" width="640" height="960" />



            <!-- iPhone 5 / iPod Touch (5th Generation) -->



            <gap:splash src="Default-568h@2x.png" gap:platform="ios" width="640" height="1136" />


              <gap:splash src="images/ldpi.png" gap:platform="android" gap:qualifier="ldpi" />

              <gap:splash src="images/small.png" gap:platform="android" gap:qualifier="mdpi" />

              <gap:splash src="images/hdpi.png" gap:platform="android" gap:qualifier="hdpi" />

              <gap:splash src="images/xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />



              <gap:platform name="ios" />

              <gap:platform name="android" />


              <preference name="orientation" value="portrait" />

              <preference name="AndroidPersistentFileLocation" value="Compatibility" />


              <feature name="http://api.phonegap.com/1.0/file"/>


              <feature name="http://api.phonegap.com/1.0/network"/>



              <feature name="http://api.phonegap.com/1.0/geolocation"/>

              <icon src="icon.png" />



              <icon src="images/icon/ldpi.png" gap:platform="android" gap:qualifier="ldpi" />

              <icon src="images/icon/mdpi.png" gap:platform="android" gap:qualifier="mdpi" />

              <icon src="images/icon/hdpi.png" gap:platform="android" gap:qualifier="hdpi" />

              <icon src="images/icon/xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />

              <icon src="images/icon/xxhdpi.png" gap:platform="android" gap:qualifier="xxhdpi" />


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

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


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

              <icon src="icon-60@2x.png" gap:platform="ios" width="120" height="120" />



              <!-- iPad -->

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

              <icon src="icon-76@2x.png" gap:platform="ios" width="152" height="152" />



              <!-- Settings Icon -->

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

              <icon src="icon-small@2x.png" gap:platform="ios" width="58" height="58" />



              <!-- Spotlight Icon -->

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

              <icon src="icon-40@2x.png" gap:platform="ios" width="80" height="80" />



            I am new to phonegap and this app were made be a former colleague.


            Hope this can help.



            • 3. Re: IOS build fails
              Chris W. Griffith Adobe Community Professional

              The format of the config.xml reflects the style from an earlier version. My recommendation would be to rebuild it with the newer syntax. See Configuring | PhoneGap Docs


              For example, the feature tag has been deprecated, and <gap:> style is being phased out as well. You will need to supply additional icons and splash screens for valid app store submissions.


              There is also no 'default' splash screen item, so that can be removed.