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

Cannot create Apple® Watch™ App from Appc CLI

    Details

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

      MacOS 10.11
      Studio 4.2.0.201507201802
      Ti SDK 4.2.0.v20150805163626
      Appc NPM 4.2.0-1
      Appc CLI 4.2.0-6
      Ti CLI 4.1.4
      Alloy 1.6.2
      Node v0.10.37
      Java 1.7.0_45
      preproduction

    • Severity:
      Blocker
    • Story Points:
      5

      Description

      I get a failure when trying to create an Apple Watch app in the Appc CLI.

      ? What type of project are you creating? Apple® Watch™ App
      ? What's the project name? watch
      ? What's your application id (example: com.myapp)? com.appc.watch
      Error: tiapp.xml file does not exist
          at Object.defineProperty.value (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/titanium-sdk/lib/tiappxml.js:720:11)
          at new tiapp (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/titanium-sdk/lib/tiappxml.js:794:19)
          at callback (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/cli/lib/creators/applewatch.js:123:18)
          at Context.<anonymous> (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/context.js:684:31)
          at Array.forEach (native)
          at Context.setArg (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/context.js:663:35)
          at Context.<anonymous> (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/context.js:762:9)
          at Context.parse (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/context.js:819:7)
          at async.eachSeries.subcmd (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/context.js:555:12)
          at iterate (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:134:13)
      ---------------------------------------------
          at /Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:270:35
          at /Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:44:16
          at async.eachSeries.cli.createHook.conf.flags.force.abbr (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/cli/commands/create.js:87:5)
          at /Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:182:20
          at iterate (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:260:13)
          at process._tickCallback (node.js:448:13)
      ---------------------------------------------
          at /Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:270:35
          at /Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:44:16
          at async.eachSeries.cli.createHook.conf.flags.force.abbr (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/cli/commands/create.js:87:5)
          at /Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:182:20
          at iterate (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:260:13)
          at async.forEachOfSeries.async.eachOfSeries (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:279:9)
          at async.forEachSeries.async.eachSeries (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/node_modules/async/lib/async.js:215:22)
          at CreateCommand.<anonymous> (/Users/ewieber/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150805163626/cli/commands/create.js:64:9)
      ---------------------------------------------
          at Object.run (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)
          at find (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)
          at q.process (/Users/ewieber/.appcelerator/install/4.2.0-6/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:806:21)
          at processImmediate (timers.js:354:15)
       
      ERROR  | titanium exited with non-zero exit code (1)
      

      Steps to reproduce issue
      1. Run appc new
      2. Select Apple® Watch™ App
      3. Create the project

      Actual Results
      The creation fails with the above error

      Expected Results
      The project can be created without error

      Notes
      In the above log, you can see that creating the Apple® Watch™ App asks for the project name and ID. Doing a ti create asks for the project directory. Why the difference?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                ewieber Eric Wieber
                Reviewer:
                Chee Kiat Ng (Inactive)
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code