From 3a6f1bbdd8ab41a0923c84eefec86833ee3a6837 Mon Sep 17 00:00:00 2001 From: Kutesir Date: Mon, 13 Jul 2026 03:42:14 +0300 Subject: [PATCH] fix: build number 1 -> 2, and stop xcodegen silently resetting it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CFBundleVersion/CFBundleShortVersionString weren't declared in project.yml's properties block, so xcodegen defaulted them to "1"/"1.0" on every regenerate regardless of CURRENT_PROJECT_VERSION/ MARKETING_VERSION — bumping the build setting silently did nothing. Declared both explicitly (matching how CFBundleIdentifier and CFBundleExecutable already reference build settings), so version bumps now actually reach the compiled app. Verified: CFBundleVersion "2" in the built binary's Info.plist. Co-Authored-By: Claude Sonnet 4.6 --- Jarvis/Info.plist | 4 ++-- project.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Jarvis/Info.plist b/Jarvis/Info.plist index 87d542d..a5810fb 100644 --- a/Jarvis/Info.plist +++ b/Jarvis/Info.plist @@ -22,9 +22,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) LSApplicationQueriesSchemes tailscale diff --git a/project.yml b/project.yml index 8aaa219..b5ddc22 100644 --- a/project.yml +++ b/project.yml @@ -16,6 +16,8 @@ targets: path: Jarvis/Info.plist properties: CFBundleDisplayName: Jervis + CFBundleShortVersionString: $(MARKETING_VERSION) + CFBundleVersion: $(CURRENT_PROJECT_VERSION) UILaunchScreen: UIColorName: "" UISupportedInterfaceOrientations: @@ -38,7 +40,7 @@ targets: base: PRODUCT_BUNDLE_IDENTIFIER: com.kisani.jarvis MARKETING_VERSION: "1.0" - CURRENT_PROJECT_VERSION: "1" + CURRENT_PROJECT_VERSION: "2" TARGETED_DEVICE_FAMILY: "1" SWIFT_VERSION: "5.0" # Device builds: automatic signing. Change DEVELOPMENT_TEAM to your team