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

CLI: Build errors out if the SDK version in the tiapp.xml & the SDK selected in CLI are different

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: CLI
    • Labels:
    • Environment:

      Environment:
      Appc Studio : 3.5.1.201412091616
      Ti SDK : 4.0.0.v20150317234215
      CLI : 4.0.0-alpha
      Alloy : 1.6.0-alpha
      MAC Yosemite : 10.10.2

    • Story Points:
      3
    • Sprint:
      2015 Sprint 07 Tooling

      Description

      Steps to reproduce:

      1. Make sure the SDK version in your tiapp.xml & the SDK selected in CLI are different.
      2. Try to build the app.

      Actual Result:

      1. The build errors out after the "Forking correct SDK command".

      Lokeshs-MacBook-Pro:mapv2ModuleTest lokeshchoudhary$ ti build -p android -T emulator
      Titanium Command-Line Interface, CLI version 4.0.0-alpha, Titanium SDK version 4.0.0.v20150317234215
      Copyright (c) 2012-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      [WARN]   
      [WARN]  Android Build Tools 22 are too new and may or may not work with Titanium.
      [WARN]  If you encounter problems, select a supported version with:
      [WARN]     ti config android.buildTools.selectedVersion ##.##.##
      [WARN]   where ##.##.## is a version in /Users/lokeshchoudhary/Desktop/android-sdk-macosx/build-tools that is <=21.x
       
      [INFO]  tiapp.xml <sdk-version> set to 3.5.1.GA, but current Titanium SDK set to 4.0.0.v20150317234215
      [INFO]  Forking correct SDK command: "/usr/local/bin/node" "/usr/local/bin/ti" "build" "--sdk" "3.5.1.GA" "--config-file" "/Users/lokeshchoudhary/.titanium/config.json" "--platform" "android" "--project-dir" "/Users/lokeshchoudhary/Desktop/workspaces/new_workspace/mapv2ModuleTest" "--log-level" "trace" "--android-sdk" "/Users/lokeshchoudhary/Desktop/android-sdk-macosx" "--target" "emulator"
       
      [ERROR] Error
      
      

      Expected Result:

      1. The build should not fail & the app should build successfully.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Ashraf Abu (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code