Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17699] CLI: Running "ti build -p iOS -T simulator --no-prompt" command outside project directory throws error 'cannot read property deployment-targets of undefined'.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-09-26T23:37:32.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsCLI
Labelsqe-3.4.0, regression
ReporterKhushbu Agrawal
AssigneeChris Barber
Created2014-09-16T04:43:18.000+0000
Updated2014-11-21T20:26:20.000+0000

Description

Comments

  1. Ingo Muschenetz 2014-09-16

    I'm not sure the the original error message is correct either. Instead, I would suggest something like "Current directory is not a valid titanium project"
  2. Ewan Harris 2014-09-16

    Unable to reproduce issue on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.4.0.201409131030 Titanium SDK build: 3.4.0.v20140916124916 Titanium CLI, build: 3.4.0-rc3 Alloy: 1.5.0-rc2 Xcode6 GM Seed Created a new project and when not in the project directory attempted to build to an iOS simulator using the command *ti build -p ios -T simulator --no-prompt*. The build failed and the error below was printed out in the terminal.
       [ERROR] Invalid "--project-dir" value "."
       
       [ERROR] Missing required option: --device-id <udid>
       
  3. Khushbu Agrawal 2014-09-17

  4. Chris Barber 2014-09-17

    Note: A) this is an iOS related issue and B) you must have ios.autoSelectDevice set to true (which is the default).
  5. Khushbu Agrawal 2014-09-17

    Noted, I have set ios.autoSelectDevice to true.
  6. Chris Barber 2014-09-17

    Master: https://github.com/appcelerator/titanium_mobile/pull/6112 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6113
  7. Khushbu Agrawal 2014-09-19

    Tested on: 1. Mac OSX 10.9.4 2. Appcelerator Studio, build: 3.4.0.201409161950 3. Titanium SDK, build: 3.4.0.v20140918202513 4. Titanium CLI, build: 3.4.0-rc4 5. Alloy: 1.5.0-rc2 6. Xcode 6 GM seed 7. iOS SDK 8.0 Its workings as expected showing below error message. [ERROR] Invalid "--project-dir" value "."
  8. Chris Barber 2014-09-26

    Reopening to set story points.

JSON Source