[TIMOB-27230] iOS: CLI prefers Xcode 11/iOS 13 even though Xcode 10.2.1 is selected
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-07-11T17:34:10.000+0000 |
Affected Version/s | Release 8.0.2 |
Fix Version/s | Release 8.0.3, Release 8.1.0 |
Components | CLI, iOS |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2019-07-09T18:55:50.000+0000 |
Updated | 2019-07-29T16:32:59.000+0000 |
Description
I have Xcode 11 beta2 and 10.2.1 installed. Xcode 10.2.1 is selected.
If I run
ti build -p ios
it will bomb out saying no Xcode's supporting iOS 13.0.
Ultimately, it looks the code to auto-select the iOS SDK version when unspecified is not always sorting the Xcode's to prefer to selected one. Specifically if a 2 member array, the custom sort only checks the second Xcode to see if it's selected, not the first. This can result in it not getting "priority" and Xcode's get sorted by version instead (preferring Xcode 11 and iOS 13)
master/8.2.0: https://github.com/appcelerator/titanium_mobile/pull/11037 8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11038
Thanks for this! I was to file the same ticket just now.
This fixed the issue for myself locally, and was a relatively small change so I merged to get past the issue. QE will likely want to double-confirm/FR it...
[~cwilliams] With Xcode 11 beta 3 installed and having Xcode 10.2.1 selected whenever I try build to iOS 13 I get the following error: (I get the same error if I have Xcode 11 beta 3 selected and try to run a iOS 12.2 emulator (all other emulators work fine)).
Is this intended or should it auto select the correct Xcode version? SDK Version
8.1.0.v20190715143102
,8.2.0.v20190712143331
and8.0.3.v20190711103731
.[~smohammed] sounds like a separate issue to me? It seems to be picking up that you have Xcode 10.2.1 selected as it reports trying to match iOS 12.2. But I'm guessing that sim ID must be from Xcode 11 beta 3/ iOS 13? We probably want to file a ticket for this - basically it looks to be auto-selecting an iOS 13 sim in your case to try and match. Presumably it should pick a sim from the selected Xcode to try and match up.