Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-919

Cannot create mobile project from Appc CLI

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.0
    • Fix Version/s: Release 5.2.0
    • Component/s: Core
    • Labels:
    • Environment:

      Appc CLI NPM: 4.2.2
      Appc CLI Core: 5.2.0-215
      Arrow: 1.7.20
      SDK: 5.2.0.v20160111111831
      Node: v4.2.4
      OS: El Capitan (10.11.2)

    • Severity:
      Blocker
    • Sprint:
      2016 Sprint 01 Tooling

      Description

      Details: Cannot create mobile project from Appc CLI.

      Steps to reproduce:

      1. In terminal, run appc new -l trace
      2. Select Native App then Titanium SDK
      3. Then, go through the rest of the prompts

      Actual: Mobile project is not created and "Invalid selected Titanium SDK "undefined"" error is returned:

      ? What type of project are you creating? Native App (app)
      ? Which SDK would you like to use? Titanium SDK (JavaScript)
      ? What's the project name? monkeyFoo
      ? What's your application id (example: com.myapp)? com.appc.mo
      2016-01-13T22:25:09.430Z | DEBUG  | Handle ACS registration...
      2016-01-13T22:25:09.432Z | TRACE  | "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.2.0-215/package/node_modules/titanium/bin/titanium" sdk -o json
      2016-01-13T22:25:09.839Z | TRACE  | checking for titanium, result:
       { activeSDK: '5.2.0.v20160111111831',
        defaultInstallLocation: '/Users/wluu/Library/Application Support/Titanium',
        installLocations: 
         [ '/Users/wluu/Library/Application Support/Titanium',
           '/Library/Application Support/Titanium' ],
        installed: 
         { '5.2.0.v20160111111831': '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.v20160111111831',
           '5.1.2.GA': '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA' },
        sdks: 
         { '5.2.0.v20160111111831': 
            { name: '5.2.0.v20160111111831',
              manifest: [Object],
              path: '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.v20160111111831' },
           '5.1.2.GA': 
            { name: '5.1.2.GA',
              manifest: [Object],
              path: '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA' } } }
      2016-01-13T22:25:10.182Z | ERROR  | Invalid selected Titanium SDK "undefined"
       
      2016-01-13T22:25:10.189Z | TRACE  | done with plugin [Error: titanium exited with non-zero exit code (1)]
      2016-01-13T22:25:10.190Z | ERROR  | Error: titanium exited with non-zero exit code (1)
          at ChildProcess.<anonymous> (/Users/wluu/.appcelerator/install/5.2.0-215/package/node_modules/appc-cli-titanium/plugins/new.js:204:21)
          at emitTwo (events.js:87:13)
          at ChildProcess.emit (events.js:172:7)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
      

      Expected: Should be able to create a mobile project without any issues.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              wluu Wilson Luu (Inactive)
              Reviewer:
              Dawson Toth (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code