use xcodes for Xcode version selection #14

Merged
ivan.smolin merged 1 commits from feature/xcode_version_selection_via_xcodes into master 2024-01-18 14:08:40 +03:00
Member

Теперь для выбора версии Xcode нужно добавить в проект файл .xcode-version с требуемой версией Xcode, например 15.1:

cd path/to/project

echo "15.1" > .xcode-version
Теперь для выбора версии Xcode нужно добавить в проект файл `.xcode-version` с требуемой версией Xcode, например `15.1`: ```sh cd path/to/project echo "15.1" > .xcode-version ```
ivan.smolin added 1 commit 2024-01-16 11:15:27 +03:00
vladimir.makarov reviewed 2024-01-17 10:19:10 +03:00
@ -168,3 +164,1 @@
sortedSPDeveloperToolsDataType = spdeveloperToolsDataType.sort_by { |hash| hash['spdevtools_version'].split(' ').first.to_i } # sort by increasing the version of xcode
default_xcode_version = sortedSPDeveloperToolsDataType.last['spdevtools_version'] # take the largest version in format: "13.0 (13A5212g)"
default_xcode_version_number = default_xcode_version.split(' ').first # take version number
xcodes(select_for_current_build_only: true)

А если файлика .xcode-version нет, то какую он версию достанет?

А если файлика `.xcode-version` нет, то какую он версию достанет?

[UPD] Выдаст ошибку

[UPD] Выдаст ошибку
vladimir.makarov marked this conversation as resolved
vladimir.makarov approved these changes 2024-01-18 13:46:17 +03:00
ivan.smolin merged commit 70c2899bf0 into master 2024-01-18 14:08:40 +03:00
ivan.smolin deleted branch feature/xcode_version_selection_via_xcodes 2024-01-18 14:08:51 +03:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TouchInstinct/BuildScripts#14
No description provided.