[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 Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-09-26T23:37:32.000+0000 |
Affected Version/s | Release 3.4.0 |
Fix Version/s | Release 3.4.0, Release 3.5.0 |
Components | CLI |
Labels | qe-3.4.0, regression |
Reporter | Khushbu Agrawal |
Assignee | Chris Barber |
Created | 2014-09-16T04:43:18.000+0000 |
Updated | 2014-11-21T20:26:20.000+0000 |
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"
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.
Note: A) this is an iOS related issue and B) you must have ios.autoSelectDevice set to true (which is the default).
Noted, I have set ios.autoSelectDevice to true.
Master: https://github.com/appcelerator/titanium_mobile/pull/6112 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6113
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 "."
Reopening to set story points.