10 Replies Latest reply on Jan 12, 2017 11:50 AM by kerrishotts

    Phonegap App iOS Build Fails - Android builds correctly

    danielem18727002 Level 1

      Hi,

       

      I have been looking into the answer of some of the other similar questions but I didn't manage to fix my problem.

      I am working on a Mobile App and I am trying to make the builds for Android and iOS, my index.html is at he same level as my config.xml as requested and although the Android builds correctly, the iOS build doesn't.

      This is what the log & error look like:

      Screenshot_3.png

      and this is my config.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <widget xmlns  = "http://www.w3.org/ns/widgets"
         xmlns:gap  = "http://phonegap.com/ns/1.0"
         id  = "my.private.id"
         version  ="3.0.13"
         android-versionCode  ="300289"
         ios-CFBundleVersion  ="3000015">

        <name>My Title</name>

        <description>
        My Description.

         </description>

        <author email=support@my.email href=http://my.email>
         My Author

         </author>

        <content src="index.html" />

        <preference name="AllowInlineMediaPlayback" value="false" />
        <preference name="BackupWebStorage" value="cloud" />
        <preference name="DisallowOverscroll" value="false" />
        <preference name="EnableViewportScale" value="false" />
        <preference name="KeyboardDisplayRequiresUserAction" value="true" />
        <preference name="MediaPlaybackRequiresUserAction" value="false" />
        <preference name="SuppressesIncrementalRendering" value="false" />
        <preference name="SuppressesLongPressGesture" value="false" />
        <preference name="Suppresses3DTouchGesture" value="false" />
        <preference name="GapBetweenPages" value="0" />
        <preference name="PageLength" value="0" />
        <preference name="PaginationBreakingMode" value="page" />
        <preference name="PaginationMode" value="unpaginated" />
        <preference name="StatusBarOverlaysWebView" value="true" />
        <preference name="SplashScreenDelay" value="5000" />
        <preference name="SplashScreen" value="screen" />
        <preference name="SplashMaintainAspectRatio" value="true" />
        <preference name="Orientation" value="default" />

        <plugin name="cordova-plugin-android-permissions" spec="0.10.0" />
        <plugin name="cordova-plugin-compat"  spec="1.1.0" />
        <plugin name="cordova-plugin-console"  spec="1.0.5" />
        <plugin name="cordova-plugin-crosswalk-webview"  spec="1.8.0" />
        <plugin name="cordova-plugin-geolocation"  spec="2.1.0" />
        <plugin name="cordova-plugin-google-analytics"  spec="0.8.1" />
        <plugin name="cordova-plugin-inappbrowser"  spec="1.3.0" />
        <plugin name="cordova-plugin-splashscreen"  spec="3.2.2" />
        <plugin name="cordova-plugin-whitelist"  spec="1.2.2" />
        <plugin name="phonegap-nfc"  spec="0.6.6" />
        <plugin name="phonegap-plugin-barcodescanner"  spec="4.1.0" />

        <feature name="LocalStorage">
        <param name="ios-package" value="CDVLocalStorage" />
        </feature>
        <feature name="HandleOpenUrl">
        <param name="ios-package" value="CDVHandleOpenURL" />
        <param name="onload" value="true" />
        </feature>
        <feature name="IntentAndNavigationFilter">
        <param name="ios-package" value="CDVIntentAndNavigationFilter" />
        <param name="onload" value="true" />
        </feature>
        <feature name="GestureHandler">
        <param name="ios-package" value="CDVGestureHandler" />
        <param name="onload" value="true" />
        </feature>
        <feature name="Console">
        <param name="ios-package" value="CDVLogger" />
        </feature>
        <feature name="Geolocation">
        <param name="ios-package" value="CDVLocation" />
        </feature>
        <feature name="UniversalAnalytics">
        <param name="ios-package" value="UniversalAnalyticsPlugin" />
        </feature>
        <feature name="SplashScreen">
        <param name="ios-package" value="CDVSplashScreen" />
        <param name="onload" value="true" />
        </feature>
        <feature name="BarcodeScanner">
        <param name="ios-package" value="CDVBarcodeScanner" />
        </feature>

        <platform name="ios">
        <icon height="180" src="res/iOS/icons/icon-60@3x.png" width="180" />
        <icon height="60" src="res/iOS/icons/icon-60.png" width="60" />
        <icon height="120" src="res/iOS/icons/icon-60@2x.png" width="120" />
        <icon height="180" src="res/iOS/icon/icon-60@3x.png" width="180" />
        <icon height="76" src="res/iOS/icons/Icon-76.png" width="76" />
        <icon height="152" src="res/iOS/icons/icon-76@2x.png" width="152" />
        <icon height="40" src="res/iOS/icons/Icon-Small-40.png" width="40" />
        <icon height="80" src="res/iOS/icons/Icon-Small-40@2x.png" width="80" />
        <icon height="120" src="res/iOS/icons/Icon-Small-40@3x.png" width="120" />
        <icon height="57" src="res/iOS/icons/icon.png" width="57" />
        <icon height="114" src="res/iOS/icons/icon@2x.png" width="114" />
        <icon height="72" src="res/iOS/icons/icon-72.png" width="72" />
        <icon height="144" src="res/iOS/icons/icon-72@2x.png" width="144" />
        <icon height="29" src="res/iOS/icons/icon-small.png" width="29" />
        <icon height="58" src="res/iOS/icons/icon-small@2x.png" width="58" />
        <icon height="87" src="res/iOS/icons/icon-small@3x.png" width="87" />
        <icon height="50" src="res/iOS/icons/Icon-Small-50.png" width="50" />
        <icon height="100" src="res/iOS/icons/Icon-Small-50@2x.png" width="100" />
        <splash height="480" src="res/iOS/screens/screen-iphone-portrait.png" width="320" />
        <splash height="960" src="res/iOS/screens/screen-iphone-portrait-2x.png" width="640" />
        <splash height="1024" src="res/iOS/screens/screen-ipad-portrait.png" width="768" />
        <splash height="2048" src="res/iOS/screens/screen-ipad-portrait-2x.png" width="1536" />
        <splash height="768" src="res/iOS/screens/screen-ipad-landscape.png" width="1024" />
        <splash height="1536" src="res/iOS/screens/screen-ipad-landscape-2x.png" width="2048" />
        <splash height="1136" src="res/iOS/screens/screen-iphone-568h-2x.png" width="640" />
        <splash height="1334" src="res/iOS/screens/screen-iphone-portrait-667h.png" width="750" />
        <splash height="2208" src="res/iOS/screens/screen-iphone-portrait-736h.png" width="1242" />
        <splash height="1242" src="res/iOS/screens/screen-iphone-landscape-736h.png" width="2208" />
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        </platform>
        <platform name="android">
        <icon density="ldpi" src="res/Android/icons/drawable-ldpi/icon.png" />
        <icon density="mdpi" src="res/Android/icons/drawable-mdpi/icon.png" />
        <icon density="hdpi" src="res/Android/icons/drawable-hdpi/icon.png" />
        <icon density="xhdpi" src="res/Android/icons/drawable-xhdpi/icon.png" />
        <icon density="xxhdpi" src="res/Android/icons/drawable-xxhdpi/icon.png" />
        <icon density="xxxhdpi" src="res/Android/icons/drawable-xxxhdpi/icon.png" />
        <splash density="land-hdpi" src="res/Android/screens/screen-hdpi-landscape.png" />
        <splash density="land-ldpi" src="res/Android/screens/screen-ldpi-landscape.png" />
        <splash density="land-mdpi" src="res/Android/screens/screen-mdpi-landscape.png" />
        <splash density="land-xhdpi" src="res/Android/screens/screen-xhdpi-landscape.png" />
        <splash density="port-hdpi" src="res/Android/screens/screen-hdpi-portrait.png" />
        <splash density="port-ldpi" src="res/Android/screens/screen-ldpi-portrait.png" />
        <splash density="port-mdpi" src="res/Android/screens/screen-mdpi-portrait.png" />
        <splash density="port-xhdpi" src="res/Android/screens/screen-xhdpi-portrait.png" />
        <allow-intent href="market:*" />
        </platform>
        <platform name="wp8">
        <icon height="170" width="170" src="res/WP8/Tiles/tile-170.png" />
        <icon height="99" width="99" src="res/WP8/Tiles/tile-99.png" />
        <icon height="71" width="71" src="res/WP8/Tiles/tile-71.png" />
        <icon height="360" width="360" src="res/WP8/Tiles/tile-360.png" />
        <icon height="210" width="210" src="res/WP8/Tiles/tile-210.png" />
        <icon height="150" width="150" src="res/WP8/Tiles/tile-150.png" />
        <icon height="360" width="744" src="res/WP8/Tiles/tile-744.png" />
        <icon height="210" width="434" src="res/WP8/Tiles/tile-434.png" />
        <icon height="150" width="310" src="res/WP8/Tiles/tile-310.png" />
        <icon height="106" width="106" src="res/WP8/Tiles/tile-106.png" />
        <icon height="62" width="62" src="res/WP8/Tiles/tile-62.png" />
        <icon height="44" width="44" src="res/WP8/Tiles/tile-44.png" />
        <icon height="120" width="120" src="res/WP8/Tiles/tile-120.png" />
        <icon height="70" width="70" src="res/WP8/Tiles/tile-70.png"  />
        <icon height="50" width="50" src="res/WP8/Tiles/tile-50.png" />
        <icon height="58" width="58" src="res/WP8/Tiles/tile-58.png" />
        <icon height="33" width="33" src="res/WP8/Tiles/tile-33.png" />
        <icon height="24" width="24" src="res/WP8/Tiles/tile-24.png" />
        <splash height="1920" width="1152" src="res/WP8/screens/wp8/SplashScreenPhone.scale-240.png" />
        <splash height="800" width="480" src="res/WP8/screens/wp8/SplashScreenPhone.scale-100.png" />
        <splash height="1120" width="672" src="res/WP8/screens/wp8/SplashScreenImage.screen-WVGA.png" />
        </platform>

        <access origin="*" />
        <access launch-external="yes" origin="comgooglemaps:*" />

        <allow-intent href="http://*/*" />
        <allow-intent href="https://*/*" />
        <allow-intent href="tel:*" />
        <allow-intent href="sms:*" />
        <allow-intent href="mailto:*" />
        <allow-intent href="geo:*" />
        <allow-intent href="comgooglemaps:*" />
        <allow-navigation href="comgooglemaps:*" />
      </widget>

       

      I am using Cordova 6.0 and the default PhoneGap (6.3). Also I am using the same config file for both builds.

      Please let me know if you need further info to help troubleshooting the issue.

      Can someone help me please? Thanks