{ "id": "103558", "key": "TIMOB-11542", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14167", "description": "2012 Sprint 21 JS", "name": "2012 Sprint 21 JS", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-11T17:10:15.000+0000", "created": "2012-10-17T20:23:25.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "cli", "qe-ios100112", "qe-manualtest", "qe-nfc" ], "versions": [], "issuelinks": [ { "id": "22128", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103546", "key": "TISTUD-2549", "fields": { "summary": "Sync common preferences between Studio and titanium CLI", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-08-11T17:10:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "Titanium CLI does not honor the xcode-select path. I have both Xcode 4.4 and Xcode 4.5 installed and use the scode-select path to define which xcode I am using. With the xcode-select path set to Xcode 4.4, the CLI still only sees the path to the Xcode 4.5 install. This returns an error when the simulator is run: \r\n{code}[ERROR] Invalid --ios-version value '5.1'\r\nAccepted values:\r\n 6.0\r\n{code}\r\n\r\nSteps to reproduce:\r\n1. Install Xcode 4.4 and Xcode 4.5 on the same mac. (I have 4.4 in a folder and 4.5 sitting in Applications)\r\n2. Set the xcode select path to point to the Xcode 4.4 install\r\n3. Open a iOS Titanium Project.\r\n4. Run on Simulator.\r\n\r\nExpected results:\r\niOS 5.1 simulator should be opened and the project app run.\r\n\r\nActual results:\r\nThe above stated error.", "attachment": [], "flagged": false, "summary": "CLI: CLI does not honor xcode select path", "creator": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.2\r\nTitanium Studio, build: 3.1.0.201210162331\r\nTitanium CLI: 3.0.6", "comment": { "comments": [ { "id": "224112", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Work-around is to manually go in and change the Xcode location in the CLI.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T23:23:49.000+0000", "updated": "2012-10-17T23:23:49.000+0000" }, { "id": "224113", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "For starters, this is by design. We no longer care what xcode-select says. Second, Studio is only capable of launching the simulator for the iOS SDKs you have installed, not the iOS Simulators installed. This is a Studio bug.\r\n\r\nSay your Xcode 4.4 install has iOS SDK 5.1 and iOS Simulators 5.0 and 5.1. Your Xcode 4.5 install has iOS SDK 6.0 and iOS Simulators 5.0, 5.1, and 6.0. You can ONLY run the simulator via Studio for 5.1 -OR- 6.0.\r\n\r\nThe --ios-version selects the iOS SDK version and the --sim-version selects the iOS Simulator version.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-17T23:34:27.000+0000", "updated": "2012-10-17T23:34:27.000+0000" }, { "id": "224122", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Clayton, could you run \"titanium info\" from the command line and paste the output here? Thanks.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T00:17:58.000+0000", "updated": "2012-10-18T00:17:58.000+0000" }, { "id": "224487", "author": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T18:14:46.000+0000", "updated": "2012-10-19T18:14:46.000+0000" }, { "id": "224492", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I should have asked what did xcode-select return as the selected path. Based on the output from titanium info, you only have Xcode 4.5 and iOS SDK 6.0 installed. The error you received is correct based on what it was able to detect. You must have Xcode 4.4 installed in some other directory that it doesn't look for.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-19T18:27:55.000+0000", "updated": "2012-10-19T18:27:55.000+0000" }, { "id": "224494", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm seeing this error as well. I have Xcode 4.5.1 installed with iOS Simulators 5.0 and 5.1 included. The xcode select path is set to 4.5.1.\r\n\r\nUninstalling the CLI allowed me to run the 5.1 simulator from studio.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T18:31:58.000+0000", "updated": "2012-10-19T18:34:31.000+0000" }, { "id": "224495", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As Chris said, based on what \"titanium info\" returns, the error is correct, and Studio is passing in the correct iOS version for Xcode 4.4. There is a separate ticket where Studio needs to detect the list of SDKs along with the list of simulators, but it is unrelated to the issue here.", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T18:32:37.000+0000", "updated": "2012-10-19T18:32:37.000+0000" }, { "id": "224496", "author": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Chris:\n{code}\nxcode-select --print-path\n/Applications/xcode4.4/Xcode.app/Contents/Developer\n{code}", "updateAuthor": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T18:33:59.000+0000", "updated": "2012-10-19T18:33:59.000+0000" }, { "id": "224510", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have previously always allowed user to control which versions of xcode they used with xcode-select. We need to preserve that behavior.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T19:57:01.000+0000", "updated": "2012-10-19T19:57:01.000+0000" }, { "id": "234951", "author": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified this issue and when xcode 4.4 is selected and I try to run using iOS sdk: 5.1, it runs on xcode 4.4 as expected. But if I choose iOS sdk: 6.0, since xcode 4.4 does not support this version of sdk, xcode 4.5 will get selected automatically which is also expected. The user is able to select the desired xcode versions. So, closing this issue.\n\nVerified in:\nTitanium version: 3.0.22,\nMac OS: 10.8.2,\nxcode versions: 4.4.1, 4.5.2", "updateAuthor": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T13:13:08.000+0000", "updated": "2013-01-18T13:13:08.000+0000" }, { "id": "235296", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Added Release 3.0.2 to fix version.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-22T02:11:20.000+0000", "updated": "2013-01-22T02:11:20.000+0000" }, { "id": "308211", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~cbarber] same is happening again with Xcode5/6 like explained in http://www.tidev.io/2014/06/03/using-xcode-6-for-titanium/\r\n\r\nI'm using 3.3.0-beta CLI", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-06-10T06:53:29.000+0000", "updated": "2014-06-10T06:53:29.000+0000" }, { "id": "308218", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~fokke] Eh, Studio being Studio.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-10T07:54:09.000+0000", "updated": "2014-06-10T07:54:09.000+0000" }, { "id": "308222", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-10T08:02:36.000+0000", "updated": "2014-06-10T08:02:36.000+0000" }, { "id": "308225", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Yup, I think the expected behaviour is what Studio does. The CLI is confusing.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-06-10T08:25:31.000+0000", "updated": "2014-06-10T08:25:31.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }