2 Replies Latest reply on May 30, 2017 9:34 AM by AD_Tony

    Windows build Error

    AD_Tony
      App ID 2591160

      PhoneGap (iOS / Android / Windows) cli-6.5.0 (4.3.1 / 6.1.2 / 4.4.3)

       

      self signed certificate has been created whit OpenSSL

       

      ----------------------------------

       

      C:\OpenSSL-Win32\bin\openssl req -x509 -config code_signing -extensions code_signing -nodes -days 365 -newkey rsa:2048 -keyout windows.key -out windows.crt

       

      C:\OpenSSL-Win32\bin\openssl pkcs12 -export -out windows.pfx -inkey windows.key -in windows.crt

       

      -----------------------------------

       

      code_signing content

       

      [ req ]

      prompt             = no

      distinguished_name = my dn

       

       

      [ my dn ]

      commonName = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

      countryName = IT

      localityName = Brindisi

      organizationName = BrinLab

      organizationalUnitName = Developer

      stateOrProvinceName = Puglia

      emailAddress = xxxxxxxxxx@gmail.com

       

       

      [ code_signing ]

      extendedKeyUsage = 1.3.6.1.5.5.7.3.3

       

      ------------------------------------------------------

       

      BUILD LOG

       

       

      Build Date: 2017-05-29 11:14:08 +0000

      ================ Certificate 0 ================

      ================ Begin Nesting Level 1 ================

      Element 0:

      Serial Number: d179277efbf3c180

      Issuer: E=xxxxxxxxxx@gmail.com, S=Puglia, OU=Developer, O=BrinLab, L=Brindisi, C=IT, CN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

      NotBefore: 5/29/2017 10:17 AM

      NotAfter: 5/29/2018 10:17 AM

      Subject: E=xxxxxxxxxx@gmail.com, S=Puglia, OU=Developer, O=BrinLab, L=Brindisi, C=IT, CN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

      Signature matches Public Key

      Root Certificate: Subject matches Issuer

      Cert Hash(sha1): xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx

      ---------------- End Nesting Level 1 ----------------

        Provider = Microsoft Enhanced Cryptographic Provider v1.0

      Encryption test passed

      CertUtil: -dump command completed successfully.

      --------------------------------------------------------------------------------

      PLUGIN OUTPUT

      --------------------------------------------------------------------------------

      Fetching plugin "cc.fovea.cordova.purchase@6.1.2" via npm

      Installing "cc.fovea.cordova.purchase" at "6.1.2" for windows

      Fetching plugin "phonegap-plugin-push@1.8.1" via npm

      Installing "phonegap-plugin-push" at "1.8.1" for windows

      Fetching plugin "cordova-plugin-admob-simple@3.3.3" via npm

      Installing "cordova-plugin-admob-simple" at "3.3.3" for windows

      Fetching plugin "cordova-admob-sdklibs" via npm

      Installing "cordova-admob-sdklibs" at "2.1.4" for windows

      Fetching plugin "cordova-plugin-device@1.1.6" via npm

      Installing "cordova-plugin-device" at "1.1.6" for windows

      Fetching plugin "cordova-plugin-dialogs@1.3.3" via npm

      Installing "cordova-plugin-dialogs" at "1.3.3" for windows

      Fetching plugin "cordova-plugin-file-transfer@1.6.3" via npm

      Installing "cordova-plugin-file-transfer" at "1.6.3" for windows

      Fetching plugin "cordova-plugin-file" via npm

      Installing "cordova-plugin-file" at "4.3.3" for windows

      Fetching plugin "cordova-plugin-compat" via npm

      Installing "cordova-plugin-compat" at "1.1.0" for windows

      Fetching plugin "cordova-plugin-geolocation@2.4.3" via npm

      Installing "cordova-plugin-geolocation" at "2.4.3" for windows

      Dependent plugin "cordova-plugin-compat" already installed on windows.

      Fetching plugin "cordova-plugin-statusbar@2.2.3" via npm

      Installing "cordova-plugin-statusbar" at "2.2.3" for windows

      Fetching plugin "cordova-plugin-whitelist@1.3.2" via npm

      Installing "cordova-plugin-whitelist" at "1.3.2" for windows

      Fetching plugin "cordova-plugin-camera@2.4.1" via npm

      Installing "cordova-plugin-camera" at "2.4.1" for windows

      Dependent plugin "cordova-plugin-compat" already installed on windows.

      Fetching plugin "cordova-plugin-calendar@4.5.5" via npm

      Installing "cordova-plugin-calendar" at "4.5.5" for windows

      Fetching plugin "cordova-plugin-app-version@0.1.9" via npm

      Installing "cordova-plugin-app-version" at "0.1.9" for windows

      Fetching plugin "cordova-plugin-splashscreen@4.0.3" via npm

      Installing "cordova-plugin-splashscreen" at "4.0.3" for windows

      --------------------------------------------------------------------------------

      COMPILE OUTPUT

      --------------------------------------------------------------------------------

      Certificate "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" added to store.

       

      CertUtil: -importPFX command completed successfully.

      My "Personal"

      Deleting Certificate 1: E=xxxxxxxxxx@gmail.com, S=Puglia, OU=Developer, O=BrinLab, L=Brindisi, C=IT, CN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:2d161f66e4878fd1ecb39f2c9e847762342ccf82

      CertUtil: -delstore command completed successfully.

      Building project: C:\cygwin\tmp\gimlet\2591160\project\CordovaApp.Windows10.jsproj

      Configuration : release

      Platform : x86

        Patching 10 in prebuild event...

        Injected base.js reference to the www/index.html

        Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s *<\/script>)(\s*)/ from www/index.html

        Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base. js">\s*<\/script>)(\s*)/ from www/index.html

      C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1854 ,5): warning APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\cygwin\tmp\gimlet\2591160\project\CordovaApp.Windows10.jsproj]

        CordovaApp.Windows10 -> C:\cygwin\tmp\gimlet\2591160\project\AppPackages\CordovaApp.Windows10_1.1.7.0_x86_Test\Co rdovaApp.Windows10_1.1.7.0_x86.appx

      C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2465 ,5): error APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\cygwin\tmp\gimlet\2591160\project\CordovaApp.Windows10.jsproj]

       

       

      CONFIG XML

       

      <?xml version="1.0"?>

      <widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="com.xxxxxxxxxx.app" version="1.1.7" xmlns="http://www.w3.org/ns/widgets" defaultlocale="it-IT" android-versionCode="10117" windows-packageVersion="1.1.7.0" ios-CFBundleIdentifier="xxxxxxxx.com.xxxxxxxxxx.app">

       

       

        <name>xxxxxxxxxx</name>

        <description>xxxxxxxxxxx</description>

        <author href="http://www.xxxxxxxxxx.com" email="xxxxxxxxxx@gmail.com">BrinLab</author>

        <content src="index.html"/>

       

      <preference name="Windows.Universal" value="10.0.10240.0" />

      <preference name="WindowsDefaultUriPrefix" value="ms-appx://" />

      <preference name="Windows.Mobile-MaxVersionTested" value="10.0.10031.0" />

      <preference name="Windows.Universal-MinVersion" value="10.0.0.0" />

      <preference name="WindowsStoreIdentityName" value="xxxxxxxxx.xxxxxxxxx" />

      <preference name="WindowsStorePublisherName" value="CN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx, O=BrinLab, L=Brindisi, S=Puglia, C=IT" />

      <preference name="WindowsToastCapable" value="true" />

      <preference name="uap-target-min-version" value="10.0.10586.0" />

       

       

      <preference name="android-minSdkVersion" value="14" />

      <preference name="ShowSplashScreenSpinner" value="true"/>

      <preference name="SplashScreenDelay" value="3000" />

      <preference name="AutoHideSplashScreen" value="true" />

      <preference name="SplashScreen" value="screen" />

       

       

      <engine name="android" spec="6.1.2" />

      <engine name="ios" spec="4.3.1" />

      <engine name="windows" spec="4.4.3" />

       

       

      <plugin name="cc.fovea.cordova.purchase" spec="^6.1.2">

              <variable name="BILLING_KEY" value="xxxxxxxxxxx" />

          </plugin>

      <plugin name="phonegap-plugin-push" source="npm" spec="1.8.1">

          <param name="SENDER_ID" value="xxxxxxxxxx" />

        </plugin>

          <plugin name="cordova-plugin-admob-simple" spec="^3.3.3" />

          <plugin name="cordova-plugin-device" spec="^1.1.6" />

          <plugin name="cordova-plugin-dialogs" spec="^1.3.3" />

          <plugin name="cordova-plugin-file-transfer" spec="^1.6.3" />

          <plugin name="cordova-plugin-geolocation" spec="^2.4.3">

              <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="App would like to access the geolocation" />

          </plugin>

          <plugin name="cordova-plugin-statusbar" spec="^2.2.3" />

          <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />

          <plugin name="cordova-plugin-camera" spec="^2.4.1">

              <variable name="CAMERA_USAGE_DESCRIPTION" value="App would like to access the camera" />

              <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="App would like to access the library" />

          </plugin>

        <plugin name="cordova-plugin-calendar" spec="^4.5.5">

              <variable name="CALENDAR_USAGE_DESCRIPTION" value="App would like to access the calendar" />

          </plugin>

        <plugin name="cordova-plugin-app-version" spec="^0.1.9" />

          <plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />

       

        <icon src="icon.png"/>

        <splash src="splash.png" />

       

        <platform name="android">

          <allow-intent href="market:*"/>

          <icon src="/res/icon/android/ldpi.png" density="ldpi" />

          <icon src="/res/icon/android/mdpi.png" density="mdpi" />

          <icon src="/res/icon/android/hdpi.png" density="hdpi" />

          <icon src="/res/icon/android/xhdpi.png" density="xhdpi" />

          <icon src="/res/icon/android/xxhdpi.png" density="xxhdpi" />

          <icon src="/res/icon/android/xxxhdpi.png" density="xxxhdpi" />

        <splash src="/res/screen/android/screen-hdpi-landscape.png" density="land-hdpi" />

          <splash src="/res/screen/android/screen-ldpi-landscape.png" density="land-ldpi" />

          <splash src="/res/screen/android/screen-mdpi-landscape.png" density="land-mdpi" />

          <splash src="/res/screen/android/screen-xdpi-landscape.png" density="land-xhdpi" />

          <splash src="/res/screen/android/screen-hdpi-portrait.png" density="port-hdpi" />

          <splash src="/res/screen/android/screen-ldpi-portrait.png" density="port-ldpi" />

          <splash src="/res/screen/android/screen-mdpi-portrait.png" density="port-mdpi" />

          <splash src="/res/screen/android/screen-xdpi-portrait.png" density="port-xhdpi" />

        </platform>

       

        <platform name="ios">

          <allow-intent href="itms:*"/>

          <allow-intent href="itms-apps:*"/>

          <icon src="/res/icon/ios/icon.png" width="57" height="57" />

          <icon src="/res/icon/ios/icon@2x.png" width="114" height="114" />

          <icon src="/res/icon/ios/icon-40.png" width="40" height="40" />

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

          <icon src="/res/icon/ios/icon-50.png" width="50" height="50" />

          <icon src="/res/icon/ios/icon-50@2x.png" width="100" height="100" />

          <icon src="/res/icon/ios/icon-60.png" width="60" height="60" />

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

          <icon src="/res/icon/ios/icon-60@3x.png" width="180" height="180" />

          <icon src="/res/icon/ios/icon-72.png" width="72" height="72" />

          <icon src="/res/icon/ios/icon-72@2x.png" width="144" height="144" />

          <icon src="/res/icon/ios/icon-76.png" width="76" height="76" />

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

          <icon src="/res/icon/ios/icon-small.png" width="29" height="29" />

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

          <icon src="/res/icon/ios/icon-167.png" width="167" height="167" />

          <icon src="/res/icon/ios/icon-83.5@2x.png" width="167" height="167" />

        <splash src="/res/screen/ios/Default@2x~universal~anyany.png" />

          <splash src="/res/screen/ios/Default@2x~universal~comany.png" />

          <splash src="/res/screen/ios/Default@2x~universal~comcom.png" />

          <splash src="/res/screen/ios/Default@3x~universal~anyany.png" />

          <splash src="/res/screen/ios/Default@3x~universal~anycom.png" />

          <splash src="/res/screen/ios/Default@3x~universal~comany.png" />

        </platform>

       

        <platform name="windows">

          <icon src="/res/icon/windows/storelogo.png" target="StoreLogo" />

          <icon src="/res/icon/windows/smalllogo.png" target="smalllogo" />

          <icon src="/res/icon/windows/Square44x44Logo.png" target="Square44x44Logo" />

          <icon src="/res/icon/windows/Square70x70Logo.png" target="Square70x70Logo" />

          <icon src="/res/icon/windows/Square71x71Logo.png" target="Square71x71Logo" />

          <icon src="/res/icon/windows/Square150x150Logo.png" target="Square150x150Logo" />

          <icon src="/res/icon/windows/Square310x310Logo.png" target="Square310x310Logo" />

          <icon src="/res/icon/windows/Wide310x150Logo.png" target="Wide310x150Logo" />

          <splash src="/res/screen/windows/splashscreen.png" target="SplashScreen" />

          <splash src="/res/screen/windows/splashscreenphone.png" target="SplashScreenPhone" />

        </platform>

       

        <access origin="*"/>

        <allow-intent href="http://*/*"/>

        <allow-intent href="https://*/*"/>

        <allow-intent href="tel:*"/>

        <allow-intent href="sms:*"/>

        <allow-intent href="mailto:*"/>

        <allow-intent href="geo:*"/>

       

        <feature name="StatusBar">

          <param name="ios-package" onload="true" value="CDVStatusBar"/>

        </feature>

      </widget>