Phonegap Application Loader No image found at the path referenced under key 'CFBundleIconFiles': 'icon.png' - phonegap-build

I have recently started to run into an issue with my cordova/phonegap project that is causing Apple's Application Loader to blow up when uploading an ipa file.
Log from Application Loader:
"Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'icon.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-36-ldpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-48-mdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-72-hdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-96-xhdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-144-xxhdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-192-xxxhdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-25.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-40.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-50.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-57.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22-3x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-72.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-25-3x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-76.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-80.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29-3x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-50-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-57-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-72-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-76-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-83.5-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60-3x.png'"
ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format for iOS versions >= 7.0."
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 7.0.
(1102)
[2017-12-12 11:56:38 EST] <main> DBG-X: parameter Success = false
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'icon.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-36-ldpi.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-48-mdpi.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-72-hdpi.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-96-xhdpi.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-144-xxhdpi.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-192-xxxhdpi.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-25.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-40.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-50.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-57.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22-3x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-72.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-25-3x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-76.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-80.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29-3x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-50-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-57-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-72-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-76-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-83.5-2x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60-3x.png'"
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format for iOS versions >= 7.0."
[2017-12-12 11:56:38 EST] <main> ERROR: ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 7.0."
[2017-12-12 11:56:38 EST] <main> DBG-X: The error code is: 1102
[2017-12-12 11:56:38 EST] <main> INFO: Done performing authentication.
[2017-12-12 11:56:38 EST] <main> DBG-X: Returning 1
Package Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/f6/6phqj0c95530gg9h8fwhqj1m0000gn/T/791FAC49-EA20-41B8-AEED-07A9016200BD/885130635.itmsp - Error Messages:
description length:259720
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'icon.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-36-ldpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-48-mdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-72-hdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-96-xhdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-144-xxhdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/android/icon-192-xxxhdpi.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-25.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-40.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-50.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-57.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-22-3x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-72.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-25-3x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-76.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-80.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-29-3x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-50-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-57-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-72-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-76-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-83.5-2x.png'"
ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'res/icon/ios/icon-60-3x.png'"
ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format for iOS versions >= 7.0."
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 7.0."
Config.xml file looks like such:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.myapp.app" version="1.4.12" versionCode="14112" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<content src="https://app.myapp.com/pg?app=com.myapp.app&version=1.4.12" />
<name>APP NAME</name>
<description>
LOREM IPSUM BLAH BLAH BLAH
</description>
<author email="zackherbert#gmail.com" href="http://MYAPP.com">
MYCOMPANY, LLC
</author>
<preference name="phonegap-version" value="cli-6.5.0" />
<preference name="pgb-builder-version" value="1" />
<preference name="orientation" value="portrait" />
<preference name="fullscreen" value="false" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="SplashScreenDelay" value="8000" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashMaintainAspectRatio" value="false" />
<preference name="FadeSplashScreen" value="true" />
<preference name="FadeSplashScreenDuration" value="500" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="23" />
<preference name="android-installLocation" value="auto" />
<preference name="android-build-tool" value="gradle" />
<preference name="android-windowSoftInputMode" value="adjustNothing" />
<icon src="icon.png" />
<icon qualifier="ldpi" src="res/icon/android/icon-36-ldpi.png" />
<icon qualifier="mdpi" src="res/icon/android/icon-48-mdpi.png" />
<icon qualifier="hdpi" src="res/icon/android/icon-72-hdpi.png" />
<icon qualifier="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
<icon qualifier="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
<icon qualifier="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />
<splash src="splash.png" />
<splash qualifier="port-ldpi" src="res/screen/android/drawable-ldpi/screen.9.png" />
<splash qualifier="port-mdpi" src="res/screen/android/drawable-mdpi/screen.9.png" />
<splash qualifier="port-hdpi" src="res/screen/android/drawable-hdpi/screen.9.png" />
<splash qualifier="port-xhdpi" src="res/screen/android/drawable-xhdpi/screen.9.png" />
<splash qualifier="port-xxhdpi" src="res/screen/android/drawable-xxhdpi/screen.9.png" />
<splash qualifier="port-xxxhdpi" src="res/screen/android/drawable-xxxhdpi/screen.9.png" />
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<preference name="target-device" value="universal" />
<preference name="prerendered-icon" value="true" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<icon height="22" src="res/icon/ios/icon-22.png" width="22" />
<icon height="25" src="res/icon/ios/icon-25.png" width="25" />
<icon height="29" src="res/icon/ios/icon-29.png" width="29" />
<icon height="40" src="res/icon/ios/icon-40.png" width="40" />
<icon height="44" src="res/icon/ios/icon-22-2x.png" width="44" />
<icon height="50" src="res/icon/ios/icon-50.png" width="50" />
<icon height="57" src="res/icon/ios/icon-57.png" width="57" />
<icon height="58" src="res/icon/ios/icon-29-2x.png" width="58" />
<icon height="60" src="res/icon/ios/icon-60.png" width="60" />
<icon height="66" src="res/icon/ios/icon-22-3x.png" width="66" />
<icon height="72" src="res/icon/ios/icon-72.png" width="72" />
<icon height="75" src="res/icon/ios/icon-25-3x.png" width="75" />
<icon height="76" src="res/icon/ios/icon-76.png" width="76" />
<icon height="80" src="res/icon/ios/icon-80.png" width="80" />
<icon height="87" src="res/icon/ios/icon-29-3x.png" width="87" />
<icon height="100" src="res/icon/ios/icon-50-2x.png" width="100" />
<icon height="114" src="res/icon/ios/icon-57-2x.png" width="114" />
<icon height="120" src="res/icon/ios/icon-60-2x.png" width="120" />
<icon height="144" src="res/icon/ios/icon-72-2x.png" width="144" />
<icon height="152" src="res/icon/ios/icon-76-2x.png" width="152" />
<icon height="167" src="res/icon/ios/icon-83.5-2x.png" width="167" />
<icon height="180" src="res/icon/ios/icon-60-3x.png" width="180" />
<splash height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
<splash height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />
<splash height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
<splash height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
<splash height="1136" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" />
<splash height="1242" src="res/screen/ios/screen-iphone-landscape-736h-2x.png" width="2208" />
<splash height="1334" src="res/screen/ios/screen-iphone-portrait-667h-2x.png" width="750" />
<splash height="1536" src="res/screen/ios/screen-ipad-landscape-2x.png" width="2048" />
<splash height="2208" src="res/screen/ios/screen-iphone-portrait-736h-2x.png" width="1242" />
<splash height="2048" src="res/screen/ios/screen-ipad-portrait-2x.png" width="1536" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<engine name="android" spec="6.0.0" />
<engine name="ios" spec="4.5.2" />
<plugin name="cordova-plugin-safariviewcontroller" spec="^1.5.2" />
<plugin name="cordova-plugin-splashscreen" spec="^4.1.0" />
<plugin name="cordova-plugin-statusbar" spec="^2.3.0" />
<plugin name="cordova-plugin-vibration" spec="^2.1.6" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-wkwebview-engine" spec="^1.1.4" />
<plugin name="phonegap-plugin-push" spec="^1.10.6">
<variable name="SENDER_ID" value="11149707591" />
</plugin>
<plugin name="bidwrangler-opentok-plugin" spec="^1.0.2" />
<plugin name="cordova-plugin-device" spec="^1.1.7" />
<plugin name="cordova-plugin-dialogs" spec="^1.3.4" />
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.2" />
<plugin name="cordova-plugin-network-information" spec="^1.3.4" />
</widget>
Any insight on to why this is occurring all of the sudden would be appreciated. If more information is desired please feel free to ask.

In order for me to get this problem to stop happening I upgrade to the latest xcode, rebuilt my coco-pods, and updated:
<preference name="phonegap-version" value="cli-6.5.0" /> to <preference name="phonegap-version" value="cli-7.0.1" />

Related

SVG image tag doesn't work on github README

I wrote sipmple server with golang witch should return a SVG with stats from stack-overflow. Everything works fine as long as it tests the response from my server in a browser or Postman, but when I try to pin this response as an image in the github README.md the image I provided from the Stack API does not display properly. This is a example how it's look like:
Via browser:
And result on README.md file (this red line is only for emphasize)
Does Github block images from other sources?
In my case the image URL indicates that the photo is hosted on a Facebook server
href="https://graph.facebook.com/1432867793574670/picture?type=large
But does it really matter?
Is there any way to get around this and display this image correctly? Maybe there is some svg image tag attribute that will help to fix this problem?
Link to the repository where this problem occurs: https://github.com/kubo550/stack-stats
This is the exact svg code i get in response from the server:
<svg data-testUserId="14513625" width="158" height="47" viewBox="0 0 158 47" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect width="158" height="47" fill="#2D2D2D"/>
<!-- this is the problematic line -->
<image x="16" y="10" href="https://graph.facebook.com/1432867793574670/picture?type=large" height="24" width="24"/>
<text x="64" y="23" font-weight="bold" fill="#C4CCBC" font-family="Arial" font-size="12"
text-anchor="middle" dominant-baseline="middle">1,707
</text>
<circle text-anchor="middle" dominant-baseline="middle" cx="90" cy="23" r="3" fill="#F0B400"/>
<text x="100" y="23" font-size="12" font-family="Arial" font-weight="bold"
text-anchor="middle" dominant-baseline="middle" fill="#F0B400">1
</text>
<circle text-anchor="middle" dominant-baseline="middle" cx="112" cy="23" r="3" fill="#999C9F"/>
<text x="122" y="23" font-size="12" font-family="Arial" font-weight="bold"
text-anchor="middle" dominant-baseline="middle" fill="#999C9F">7
</text>
<circle text-anchor="middle" dominant-baseline="middle" cx="134" cy="23" r="3" fill="#AB8A5F"/>
<text x="146" y="23" font-size="12" font-family="Arial" font-weight="bold"
text-anchor="middle" dominant-baseline="middle" fill="#AB8A5F">11
</text>
</svg>
GitHub serves your SVG through its own domain camo.githubusercontent.com and does not directly refer to your image.
<img src="https://camo.githubusercontent.com/f9e51abbda49dfb31243a3642e1f4a2f7b31371cf61e23c103c584c189a0791f/68747470733a2f2f737461636b2d73746174732e6865726f6b756170702e636f6d2f73746174733f69643d3134353133363235" alt="stack stats" data-canonical-src="https://stack-stats.herokuapp.com/stats?id=14513625" style="max-width: 100%;">
camo.githubusercontent.com gets served with the content-security-policy img-src data:. This tells your browser from which sources it is allowed to request additional resources, which are only inlined images.
When opening your image in the browser, it gives this error in the console:
Refused to load the image 'https://graph.facebook.com/1432867793574670/picture?type=large' because it violates the following Content Security Policy directive: "img-src data:".
You need to inline the image into the svg instead of referencing an external url.

Error when including an image with an https:// url in an exported PDF

We are trying to put an image on a report, and export to a pdf.
The url for getting image starts with https://
I'm able to view the image in Design & Preview modes.
When we go to export the pdf from Preview, we get an error:
net.sf.jasperreports.engine.JRException: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1
at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.processImageRetainShape(JRPdfExporter.java:1997)
at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.process(JRPdfExporter.java:1787)
at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.access$300(JRPdfExporter.java:1713)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1653)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1267)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:1210)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:1074)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:691)
at net.sf.jasperreports.engine.JasperExportManager.exportToPdf(JasperExportManager.java:217)
at net.sf.jasperreports.engine.JasperRunManager.runToPdf(JasperRunManager.java:460)
at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:852)
When we use an image url that is just http:// we do not get this error.
How do we include an image with an https:// url in our pdf?
Here is my jrxml:
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="ImageTest" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d9c79c9e-a45a-414b-bda2-6c1b6df28459">
<detail>
<band height="125" splitType="Stretch">
<image>
<reportElement x="250" y="40" width="50" height="50"/>
<imageExpression><![CDATA["https://s3.amazonaws.com/steelcase.productdata.mgm/PROD/Materials/Fabric/Buzz2/5F06/SWATCH/5F06_1_240.jpg"]]></imageExpression>
</image>
</band>
</detail>
</jasperReport>

jaxb-runtime-2.3.0 java.lang.NumberFormatException: Not a nā”‚ umber: undefined

While I've seen other very similar questions, I haven't found one that give me a proper solution.
I have XML coming in like this
<w id="103" start="0" duration="0" /> ā”‚
<w id="undefined" start="0" duration="0" />
The attribute "id" is defined as
<xs:attribute name="id" use="required" type="xs:int"/>
When the request is unmarshalled it crash with this message
java.lang.NumberFormatException: Not a number: undefined
at com.sun.xml.bind.DatatypeConverterImpl._parseInt(DatatypeConverterImpl.java:125) [jaxb-runtime-2.3.0.jar:2.3.0]
From other post I would need to create a XmlAdapter but I'm not sure on what class and how to put this in my existing code.
What I'd like to do is to simply ignore those line for which the id="undefined" without rejecting the entire request which lead to loosing data.

Chef fails to install Microsoft Office when I run Kitchen converge but completes without any errors

I have a MSOffice 2016 pro plus setup.exe in the chef node. I am trying to install it via PowerShell in my recipe. The kitchen converge succeeds but fails to install office. The test kitchen instance is windows2012. The install resource I used in the chef recipe is:
powershell_script 'Install_MSOffice' do
guard_interpreter :powershell_script
code <<-EOH
"some-fake-path/setup.exe /config #{node['msoffice']['temp_dir']}/config.xml"
EOH
timeout 600
only_if { File.exist?("#{node['msoffice']['temp_dir']}/config.xml") }
end
If I login to machine and manually run the command :
some-fake-path/setup.exe /config some-fake-path/config.xml
The installation kicks off and successfully completes. I don't know what I am doing wrong. Below is my config.xml:
<Configuration Product="ProPlus">
<Display Level="none" CompletionNotice="no" SupressModal="yes" NoCancel="yes" AcceptEula="yes" />
<USERNAME Value="ITS" />
<COMPANYNAME Value="some company" />
<Setting Id="AUTO_ACTIVATE" Value="1" />
<!-- <PIDKEY Value="YC7DKG2NP32QQC3J6H88GVGXT" /> -->
<Setting Id="SETUP_REBOOT" Value="IfNeeded" />
<INSTALLLOCATION Value="%ProgramFiles%\Microsoft Office" />
<Logging Type="Verbose" Path="c:/windows/temp/office_install.log" Template="office_install.log" />
<OptionState Id="ACCESSFiles" State="Local" Children="force" />
<OptionState Id="EXCELFiles" State="Local" Children="force" />
<OptionState Id="GrooveFiles" State="Absent" Children="force" />
<OptionState Id="GrooveFiles2" State="Local" Children="force" />
<OptionState Id="OneNoteFiles" State="Local" Children="force" />
<OptionState Id="OUTLOOKFiles" State="Local" Children="force" />
<OptionState Id="PPTFiles" State="Local" Children="force" />
<OptionState Id="PubPrimary" State="Local" Children="force" />
<OptionState Id="WORDFiles" State="Local" Children="force" />
<OptionState Id="XDOCSFiles" State="Absent" Children="force" />
<OptionState Id="LyncCoreFiles" State="Local" Children="force" />
<OptionState Id="SHAREDFiles" State="Local" Children="force" />
<OptionState Id="TOOLSFiles" State="Local" Children="force" />
</Configuration>
**
Below is the error log:
**
WER element [P2] is set to value [OSETUP.DLL]
WER element [P3] is set to value [16.0.4266.1001]
Catalyst execution began: 09/29/2017 14:09:25.
Parsing config.xml at: C:\Windows\Temp\s.xml
Preferred product specified in config.xml to be: PROPLUS
Parsed setting: AUTO_ACTIVATE with value: 1 in config.xml.
Parsed setting: SETUP_REBOOT with value: IfNeeded in config.xml.
Logging type verbose specified in config.xml.
Log directory: c:/windows/temp specified in config.xml
Log file template: office_install.log specified in config.xml
Display level none specified in config.xml.
Suppression of modal dialogs specified in config.xml.
Hide completion notice specified in config.xml.
Auto accept license specified in config.xml.
Disable of cancel button specified in config.xml.
COMPANYNAME specified in config.xml.
INSTALLLOCATION: "C:\Program Files\Microsoft Office" specified in config.xml.
USERNAME specified in config.xml.
Setupexe Resiliency Mode is set to [PerformIfApplicable]; thus Resiliency is [disabled] for the [InstallExecutionMode]
Searching for updated versions of resource files under the 'updates' folder [C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\updates].
Found [0] resource files under the update folder.
Searching for default versions of resource files under the folder [C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64].
Resource File Manager : Found (CultureTag=en-US) resource file at [C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\office.en-us\OSETUPUI.DLL].
Found [1] resource files under the default folder.
Resource File Manager : Current user's LCID is [1033].
Resource File Manager : Selecting resource file (File=C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\office.en-us\OSETUPUI.DLL) for CultureTag [en-US].
Setup temp folder set to [C:\Users\TESTWO~1\AppData\Local\Temp\Setup000011dc].
Running in [InstallExecutionMode]. Run from TEMP folder at Copying setup UI dll from "C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\office.en-us\OSETUPUI.DLL" to "C:\Users\TESTWO~1\AppData\Local\Temp\Setup000011dc\OSETUPUI.DLL"
Copying branding xml from "C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\office.en-us\BRANDING.XML" to "C:\Users\TESTWO~1\AppData\Local\Temp\Setup000011dc\BRANDING.XML"
Copying setup chm from "C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\office.en-us\SETUP.CHM" to "C:\Users\TESTWO~1\AppData\Local\Temp\Setup000011dc\SETUP.CHM"
Loaded resource file [C:\Users\TESTWO~1\AppData\Local\Temp\Setup000011dc\OSETUPUI.DLL] (CultureTag=en-US).
WER element [SuppressModal] is set to value [false]
WER element [P1] is set to value [16.0.4266.1001]
Initializing branding xml at path C:\Users\TESTWO~1\AppData\Local\Temp\Setup000011dc\BRANDING.XML
Loaded Dll : C:\Windows\Temp\OFFICE16\ProPlus\x64\MicrosoftOfficeProPlus2016_x64\proplus.ww\OSETUP.DLL.
Catalyst version is : 16.0.4266.1001
JobExecutionMode is InstallExecutionMode.
Error: Failed to check free space in drive "" ErrorCode: 3(0x3).
WER element [SuppressModal] is set to value [true]
WER element [P4] is set to value [3]
WER element [P7] is set to value [3]
WER element [P6] is set to value [Failed to check free space in drive "%s"]
WER element [P6] is converted to [556129D7]
Catalyst execution finished: 09/29/2017 14:09:25. Return code: 3. Exception caught: ErrorCodeOnly.
ERF: TickCount=60473734 Name=RunSetup Description=End function
Any suggestions?

Display image based on condition

Below code did not worked, I am getting an error.
<image>
<reportElement x="42" y="101" width="22" height="23"/>
<printWhenExpression>($F{booleanConditon} ? <![CDATA[$P{path} + "checkBox.png"]] : <![CDATA[$P{path} + "unCheckBox.png"]]>)</printWhenExpression>
</image>
And the error message is
Error loading the report template:
org.xml.sax.SAXParseException; lineNumber: 730; columnNumber: 22; cvc- complex-type.2.4.a: Invalid content was found starting with element 'printWhenExpression'. One of '{"http://jasperreports.sourceforge.net/jasperreports":box, "http://jasperreports.sourceforge.net/jasperreports":graphicElement, "http://jasperreports.sourceforge.net/jasperreports":imageExpression, "http://jasperreports.sourceforge.net/jasperreports":anchorNameExpression, "http://jasperreports.sourceforge.net/jasperreports":hyperlinkReferenceExpression, "http://jasperreports.sourceforge.net/jasperreports":hyperlinkWhenExpression, "http://jasperreports.sourceforge.net/jasperreports":hyperlinkAnchorExpression, "http://jasperreports.sourceforge.net/jasperreports":hyperlinkPageExpression, "http://jasperreports.sourceforge.net/jasperreports":hyperlinkTooltipExpression, "http://jasperreports.sourceforge.net/jasperreports":hyperlinkParameter}' is expected.
Use the Image Expression as below
Example :
<imageExpression><![CDATA[$V{PAGE_NUMBER}==1 ? "img/watermark_firstpage.png" : "img/watermark_otherpage.png"]]></imageExpression>
You need to mark all of the expression inside <![CDATA[..code...]]> so that the xml parser will interpret it purely as textual data, the evaluation of the expression will be done by the jasper report engine.
<printWhenExpression><![CDATA[($F{booleanConditon} ? $P{path} + "checkBox.png" : $P{path} + "unCheckBox.png")]]></printWhenExpression>
Hence the evaluation process, first parsing of xml (sax parser), then parsing of your expression (jasper report engine)
The problem is that your XML is invalid.
The element printWhenExpression cannot be a direct child of image. It should be a child of reportElement.
Example:
<image>
<reportElement x="42" y="101" width="22" height="23">
<printWhenExpression>($F{booleanConditon} ? <![CDATA[$P{path} + "checkBox.png"]] : <![CDATA[$P{path} + "unCheckBox.png"]]>)</printWhenExpression>
</reportElement>
</image>
I was facing same problem. Solution is as bellow. You can take one image but
I have two images checked.png and unchecked.png.
I have made query to database and fetched the value of the field 'checkAsIsFlag'. This field contains 'Y'(Checked) or 'N'(Unchecked) as a text value. I will show an image checked.png if checkAsIsFlag='Y' and unchecked.png if checkAsIsFlag='N'.
I have placed both images on design page one above the other (same location in pixels). And written expression in the 'Print When Expression' field, check Reference Image.
Short source code is as bellow:
<image>
<reportElement x="30" y="7" width="25" height="25" uuid="afe9a678-28a4-40d2-bc61-82b49fb904d9">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<printWhenExpression><![CDATA[$F{checkasisflag}.equals("Y")]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA["http://localhost:8080/studentreport/images/checked.png"]]></imageExpression>
</image>
<image>
<reportElement x="30" y="7" width="25" height="25" uuid="a993026c-430e-4f56-9531-3baaa0de11f4">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<printWhenExpression><![CDATA[$F{checkasisflag}.equals("N")]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA["http://localhost:8080/studentreport/images/unchecked.png"]]></imageExpression>
</image>
Reference Image Eclipse IDE Jasper Report Tool

Resources