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

CLI: --sdk argument doesn't override SDK version set in tiapp.xml

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 3.2.3, Release 3.3.0
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None

      Description

      Re-opening this as a feature request. I need to be able to specify the SDK version via the command line so that I can test various configurations and SDKs.

      As I read the CLI docs, I should be able to override the SDK version set in tiapp.xml by adding the --sdk argument to the ti build command. However, doing so has no effect.

      (~/Documents/Appcelerator_Studio_Workspace/zAlloyTest)--(3.2.3.GA‡1.4.0-dev)
      ≫ ti build -p ios --sdk 3.2.2.GA
      Titanium Command-Line Interface, CLI version 3.3.0-beta, Titanium SDK version 3.2.2.GA
      Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      [INFO]  tiapp.xml <sdk-version> set to 3.2.3.GA, but current Titanium SDK set to 3.2.2.GA
      [INFO]  Forking correct SDK command: "/usr/local/bin/node" "/usr/local/bin/ti" "build" "--sdk" "3.2.3.GA" "--config-file" "/Users/tpoulsen/.titanium/config.json" "--platform" "iphone" "--project-dir" "/Users/tpoulsen/Documents/Appcelerator_Studio_Workspace/zAlloyTest" "--log-level" "debug" "--developer-name" "Tim Poulsen (MGN4Q3SVW9)" "--distribution-name" "Skypanther Studios, Inc (C87X83HY9E)" "--target" "simulator"
      [DEBUG] Detecting plugins in /Users/tpoulsen/Documents/Appcelerator_Studio_Workspace/zAlloyTest/plugins
      [DEBUG] Detected plugin: ti.alloy @ /Users/tpoulsen/Documents/Appcelerator_Studio_Workspace/zAlloyTest/plugins/ti.alloy
      [DEBUG] Detecting plugins in /Users/tpoulsen/Library/Application Support/Titanium/plugins
      [DEBUG] Detected plugin: com.appcelerator.test @ /Users/tpoulsen/Library/Application Support/Titanium/plugins/com.appcelerator.test
      [DEBUG] Detecting plugins in /Library/Application Support/Titanium/plugins
      [DEBUG] Detected plugin: com.appcelerator.test @ /Library/Application Support/Titanium/plugins/com.appcelerator.test
      [DEBUG] Looking for Titanium plugin id=ti.alloy version=1.0
      [INFO]  Found Titanium plugin id=ti.alloy version=1.0 
      [DEBUG] Loaded plugin hooks:
      [DEBUG] /Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1391713432/node_modules/liveview/hook/lvhook.js
      [DEBUG] /usr/local/lib/node_modules/titanium/hooks/tisdk3fixes.js
      [DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/iphone/cli/hooks/install.js
      [DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/iphone/cli/hooks/package.js
      [DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/iphone/cli/hooks/run.js
      [DEBUG] /Users/tpoulsen/Documents/Appcelerator_Studio_Workspace/zAlloyTest/plugins/ti.alloy/hooks/alloy.js
      [DEBUG] Titanium SDK iOS directory: /Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/iphone
      

      Tested with CLI 3.2.3 (release) and 3.3.0-beta

      I've tried ti build -p ios --sdk 3.4.0 and it likewise has no effect. So, it doesn't seem to be that you can override only one way (ie. to force using a newer SDK). It doesn't override either way.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                skypanther Tim Poulsen
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration