Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24922

Windows: Unable to package with VS 2017

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: windowslib 0.4.29, Release 6.2.0
    • Fix Version/s: Release 6.2.0
    • Component/s: CLI, Tooling, Windows
    • Labels:
      None
    • Environment:

      Windows 10 Pro
      Visual Studio 2017
      Ti SDK: 6.2.0.v20170630062735 (custom build with titanium_mobile_windows#959 vs 2017 support)

    • Sprint:
      2017 Sprint 13 Tooling

      Description

      Description

      Packaging a Windows application with VS2017 errors out with the below on cert creation (added logging to show the error message), based off other changes in the VS2017 addition I swapped this (and other occurrences of vcvarsalll) to vsdevcmd and it worked

      'MakeCert' is not recognized as an internal or external command,
      operable program or batch file.
       
      [ERROR:~nx0] Error in script usage. The correct usage is:
      Syntax:
          vcvarsall.bat [arch]
        or
          vcvarsall.bat [arch] [version]
        or
          vcvarsall.bat [arch] [platform_type] [version]
      where :
          [arch]: x86 | amd64 | x86_amd64 | x86_arm | x86_arm64 | amd64_x86 | amd64_arm | amd64_arm64
          [platform_type]: {empty} | store | uwp
          [version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK.
       
      The store parameter sets environment variables to support Universal Windows Platform application
      development and is an alias for 'uwp'.
       
      For example:
          vcvarsall.bat x86_amd64
          vcvarsall.bat x86_amd64 10.0.10240.0
          vcvarsall.bat x86_arm uwp 10.0.10240.0
          vcvarsall.bat x86_arm onecore 10.0.10240.0
          vcvarsall.bat x64 8.1
          vcvarsall.bat x64 store 8.1
       
      Please make sure either Visual Studio or C++ Build SKU is installed.
      

      Steps to reproduce
      1. Create an app appc new -t titanium -n myawesomeapp --id com.foo --no-services
      2. Build the app using appc run -p windows -T dist-phonestore
      3. Follow the prompts
      Actual

      When creating a cert the process will error out

      Expected

      Process should not error out, cert should be created after prompting

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eharris Ewan Harris
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Kota Iguchi
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10859
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code