mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 04:34:55 -06:00
[PM-16212] Fix: bootstrap version mismatch fails when multiple xcodes are installed (#1279)
This commit is contained in:
parent
8992edaf25
commit
2c01812198
@ -20,7 +20,8 @@ if [ ! -f "$xcode_version_file" ]; then
|
||||
fi
|
||||
|
||||
required_version=$(cat "$xcode_version_file")
|
||||
current_version=$(system_profiler SPDeveloperToolsDataType | grep "Xcode:" | awk '{print $2}')
|
||||
xcode_line=$(xcodebuild -version 2>/dev/null || system_profiler SPDeveloperToolsDataType | grep "Xcode:")
|
||||
current_version=$(echo "$xcode_line" | head -n 1 | awk '{print $2}')
|
||||
if [ -z "$current_version" ]; then
|
||||
echo "❌ Could not determine current Xcode version. Is Xcode installed?"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user