[TIMOB-11979] CLI: Add better error handling when xcode-select is set to invalid Xcode path
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-07T00:48:50.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.1.0, 2012 Sprint 25, 2012 Sprint 25 JS |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-12-06T12:30:47.000+0000 |
Updated | 2013-01-22T07:17:30.000+0000 |
Description
When xcode-select is pointing to an invalid Xcode path, the CLI has a bad day.
[ERROR] No Xcode version is currently selected
Use 'xcode-select' to select one of the Xcode versions:
[ERROR] TypeError: Cannot read property 'xcode' of undefined
When xcode path points to invalid xcode-sdk, error message comes as " [ERROR] No Xcode version is currently selected Use 'xcode-select' to select one of the Xcode versions: xcode-select -switch /Applications/Xcode4.5.1.app/Contents/Developer xcode-select -switch /Volumes/Mtn Lion/Applications/Xcode_4.4.1.app/Contents/Developer xcode-select -switch /Volumes/Mtn Lion/Applications/Xcode_4.5.app/Contents/Developer " Verified on : SDK version: 3.1.0.v20130111163212 CLI version : 3.0.23 OS : MAC OSX 10.7.5 XCode : 4.5.1