From 25e85e59b97114c64e8b78f4ef95c7dfea0eace3 Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Mon, 22 Sep 2025 23:41:42 +0800 Subject: [PATCH] fix: update build number to 28 and auto-increment for TestFlight - Set build number to 28 (higher than existing build 27) - Add automatic build number increment in Fastlane to avoid conflicts - This fixes ITMS-90186 and ITMS-90062 errors from Apple --- V2er.xcodeproj/project.pbxproj | 4 ++-- fastlane/Fastfile | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/V2er.xcodeproj/project.pbxproj b/V2er.xcodeproj/project.pbxproj index 5e2bbc2..0852e9c 100644 --- a/V2er.xcodeproj/project.pbxproj +++ b/V2er.xcodeproj/project.pbxproj @@ -1131,7 +1131,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 4; + CURRENT_PROJECT_VERSION = 28; DEVELOPMENT_ASSET_PATHS = "\"V2er/Preview Content\""; DEVELOPMENT_TEAM = DZCZQ4694Z; ENABLE_PREVIEWS = YES; @@ -1158,7 +1158,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 4; + CURRENT_PROJECT_VERSION = 28; DEVELOPMENT_ASSET_PATHS = "\"V2er/Preview Content\""; DEVELOPMENT_TEAM = DZCZQ4694Z; ENABLE_PREVIEWS = YES; diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c680417..9f8d481 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -47,6 +47,11 @@ platform :ios do # Get App Store Connect API key api_key = get_api_key + # Increment build number to avoid conflicts + increment_build_number( + build_number: latest_testflight_build_number(api_key: api_key) + 1 + ) + # Build the app build_ipa