Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19340] Cannot create projects; invalid --platforms value

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-08-14T23:57:42.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsTooling
Labelsqe-5.0.0
ReporterEric Wieber
AssigneeChris Barber
Created2015-08-10T18:59:25.000+0000
Updated2015-08-24T05:07:21.000+0000

Description

When trying to create a project with the below command I get the error in the *Notes* section: Invalid "--platforms" value "android,ios,mobileweb"
"/usr/local/bin/appcelerator" "new" "--platforms" "android,ios,mobileweb" "--sdk" "4.2.0.v20150807112024" "--force" "--no-services"
*Steps to reproduce issue* 1. Set your active SDK to 4.2.0.v20150805163626 or later (I used 4.2.0.v20150807112024) 2. Run appc new --platforms "android,ios,mobileweb" 3. Create a Native App *Actual Results* The creation will fail with the below error *Expected Results* I can create projects without error *Notes* This blocks projects from being created in Studio. I encounter this with SDKs 4.2.0.v20150805163626 and later.
/usr/local/bin/node [ '/Users/ewieber/.appcelerator/install/4.2.0-24/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium',
  'create',
  '-t',
  'app',
  '--no-banner',
  '--no-prompt',
  '--platforms',
  'android,ios,mobileweb',
  '--workspace-dir',
  '/Users/ewieber/Documents/Appcelerator_Studio_Workspace',
  '--force',
  true,
  '--log-level',
  'trace',
  '--name',
  'createTest',
  '--id',
  'com.appc.createtest',
  '--project-dir',
  '/Users/ewieber/Documents/Appcelerator_Studio_Workspace/createTest',
  '--url',
  'unspecified' ]
Invalid "--platforms" value "android,ios,mobileweb"

done with plugin [Error: titanium exited with non-zero exit code (1)]
ERROR  | Error: titanium exited with non-zero exit code (1)
    at ChildProcess.<anonymous> (/Users/ewieber/.appcelerator/install/4.2.0-24/package/node_modules/appc-cli-titanium/plugins/new.js:191:21)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
  appc:run signal received +35s exit sending to { domain: null,
  _events: { close: [Function] },
  _maxListeners: 10,
  _closesNeeded: 1,
  _closesGot: 1,
  connected: false,
  signalCode: null,
  exitCode: 1,
  killed: false,
  _handle: null,
  pid: 27841,
  stdin: null,
  stdout: null,
  stderr: null,
  stdio: [ null, null, null ] }

Attachments

FileDateSize
Screen Shot 2015-08-10 at 10.15.21 AM.png2015-08-10T18:58:31.000+0000147505

Comments

  1. Feon Sua Xin Miao 2015-08-14

    PR: https://github.com/appcelerator/titanium/pull/231
  2. Chris Barber 2015-08-14

    PR: https://github.com/appcelerator/titanium_mobile/pull/7027
  3. Satyam Sekhri 2015-08-24

    Can create project successfully for multiple platforms. Verified on: Mac OS 10.10.4 Appc Studio: 5.0.0.201508181557 Ti SDK: 5.0.0.v20150823190425 Appc CLI NPM: 4.2.0-1 Appc CLI Core: 5.0.0-12 Node: 0.10.37 Xcode 7b5

JSON Source