Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11195

Windows platform - create windows 10 app packages - BOM error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 6.1.1
    • 6.1.1
    • cordova-windows

    Description

      When a windows cordova platform is added using:
      cordova platform add windows

      And the windows 10 project, inside visual studio 2015, is used to build the app package, the package validation fails, when it's validated using the "Windows App Certification Kit 10.0". The selected architectures are: x86 (release), x64(release) and ARM (release).

      UTF-8 file encoding
      Error Found: The UTF-8 file encoding test detected the following errors:
      
      File C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\cordova_plugins.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
      File C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\cordova-js-src\exec.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
      File C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\cordova-js-src\platform.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
      ...
      File C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\index.html is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
      
      Impact if not fixed: HTML, CSS, and JavaScript files must be encoded in UTF-8 form with a corresponding byte-order mark (BOM) in order to benefit from bytecode caching and to avoid other runtime error conditions.
      
      Bytecode generation
      Error Found: The bytecode generation test detected the following errors:
      
      File \\?\C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\plugins\cordova-plugin-splashscreen\www\windows\SplashScreenProxy.js has JavaScript syntax or other problems.
      File \\?\C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\plugins\cordova-plugin-splashscreen\www\splashscreen.js has JavaScript syntax or other problems.
      File \\?\C:\Program Files\WindowsApps\BECC1407.AppXPTO_1.4.0.0_x64__6hmvhj7j5fc1t\www\js\app.min.js has JavaScript syntax or other problems.
      ...
      Impact if not fixed: As a performance optimization to accelerate JavaScript execution time, JavaScript files ending in the ".js" extension generate bytecode when the app is deployed. This optimization significantly improves start-up and ongoing execution times for JavaScript.
      How to fix: You may need consider one or more of these steps to fix the issue:
      - Avoid deploying the app by pressing F5 in Visual Studio, create an appx package instead
      - Ensure that event logging is enabled
      -	All JavaScript files are syntactically valid; otherwise exclude the respective files from the package
      -	Please note that you should uninstall all previous versions of the app before deploying
      Otherwise exclude the respective files from the package.
      

      Can the app be submitted with this erros?

      Should not the cordova generate the project ready for publication?

      Attachments

        Activity

          People

            rakatyal Raghav Katyal
            napcat napcat
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: