Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11979] CLI: Add better error handling when xcode-select is set to invalid Xcode path

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-12-07T00:48:50.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2012 Sprint 25, 2012 Sprint 25 JS
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-12-06T12:30:47.000+0000
Updated2013-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

Comments

  1. Paras Mishra 2013-01-22

    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

JSON Source