Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19284] xcode-select is not being respected by "appc run -p ios"

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2015-09-10T21:59:23.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-5.0.0
ReporterWilson Luu
AssigneeChris Barber
Created2015-07-29T22:09:51.000+0000
Updated2017-03-17T18:02:44.000+0000

Description

*Details:* If you have two Xcode versions in a single folder (e.g. /Applications) and have xcode-select -s pointing to the *older* version, then appc run -p ios will launch the latest iOS simulator from the *newer* Xcode. *Note:* To workaround this, you can specify the I flag to launch the simulator from Xcode 6.4: appc run -I 8.4 -p ios *Steps to reproduce:*

Have both Xcode 6.4 and Xcode 7 (beta 4) in one folder e.g. /Applications

Make xcode-select point to Xcode 6.4: sudo xcode-select -s <PATH_TO_XCODE_6.4>

Create a project with appc new

Then, run with appc run -p ios

Wait for simulator to launch

*Actual:* iOS simulator 9.0 from Xcode 7 (beta 4) is launched instead; see attachment. *Expected:* iOS simulator 8.4 from Xcode 6.4 should be launched.

Attachments

FileDateSize
not_honored.png2015-07-29T22:09:49.000+0000217812

Comments

  1. Tim Poulsen 2015-09-10

    I'm still seeing the opposite with CLI 5.0.2 and SDK 5.0.0.v20150908200706 (Sept 9 CI). I'm attempting to build to the iOS 9 simulator (or device) and have used xcode-select to point to the Xcode-beta.app. I'm using the ti build -p ios -T device command, not appc run. !https://dl.dropboxusercontent.com/u/5989721/timbob19284.png!
  2. Chris Barber 2015-09-10

    Titanium only uses xcode-select to locate Xcode installations. xcode-select does not directly influence which Xcode is going to be used. The \-\-ios-version selects which Xcode to use. It's been this way for a long time now. The only time xcode-select plays an influence is when you have multiple Xcodes with the same iOS SDK installed. For example, if you have Xcode 7 beta 5 and Xcode 7 beta 4 installed, beta 5 is the selected Xcode, and you're building using \-\-ios\-version 9.0, then Titanium will choose beta 5 over beta 4.
  3. Lee Morris 2017-03-17

    Closing ticket as invalid.

JSON Source