From 6b2639cbbb33f283a6f042c01cf7fa87f28a58ac Mon Sep 17 00:00:00 2001 From: EYHN Date: Mon, 30 Jun 2025 11:35:45 +0800 Subject: [PATCH] fix(ios): fix xcode marketing version (#12963) ## Summary by CodeRabbit * **Bug Fixes** * Improved version handling to ensure only the main version number is used, ignoring any suffixes after a hyphen when updating the iOS marketing version. --- scripts/set-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/set-version.sh b/scripts/set-version.sh index b1871098c..a86c636f3 100755 --- a/scripts/set-version.sh +++ b/scripts/set-version.sh @@ -73,7 +73,8 @@ update_app_stream_version() { update_ios_marketing_version() { local file_path=$1 - local new_version=$2 + # Remove everything after the "-" + local new_version=$(echo "$2" | sed -E 's/-.*$//') # Check if file exists if [ ! -f "$file_path" ]; then